face: Make default transport configurable
This commit also removes support for the ndnd-tlv-0.7
protocol's default socket location from UnixTransport.
Test HOME environment changing has also been centralized
into a single fixture (util/test-home-environment-fixture.hpp)
refs #2189
Change-Id: Iac1a6c88d7a2d9fcfb91a20356ac21b75daf7d17
diff --git a/tests/unit-tests/util/test-config-file.cpp b/tests/unit-tests/util/test-config-file.cpp
index 06316bb..2f6650e 100644
--- a/tests/unit-tests/util/test-config-file.cpp
+++ b/tests/unit-tests/util/test-config-file.cpp
@@ -20,6 +20,7 @@
*/
#include "util/config-file.hpp"
+#include "../util/test-home-environment-fixture.hpp"
#include <cstdlib>
@@ -28,25 +29,7 @@
namespace ndn {
namespace tests {
-class ConfigFileFixture
-{
-public:
- ConfigFileFixture()
- {
- m_HOME = std::getenv("TEST_HOME");
- }
-
- ~ConfigFileFixture()
- {
- setenv("TEST_HOME", m_HOME.c_str(), 1);
- // std::cerr << "restoring home = " << m_HOME << std::endl;
- }
-
-protected:
- std::string m_HOME;
-};
-
-BOOST_FIXTURE_TEST_SUITE(UtilTestConfigFile, ConfigFileFixture)
+BOOST_FIXTURE_TEST_SUITE(UtilTestConfigFile, util::TestHomeEnvironmentFixture)
BOOST_AUTO_TEST_CASE(TestParse)
{