tests: Extending Face test cases
Add previously removed test cases to check if config-file based
transport customization works.
Change-Id: I7e2235494f2ba7011423e743ab8e437c74d56d1f
diff --git a/tests/unit-tests/security/key-chain.t.cpp b/tests/unit-tests/security/key-chain.t.cpp
index 797ce01..eda972b 100644
--- a/tests/unit-tests/security/key-chain.t.cpp
+++ b/tests/unit-tests/security/key-chain.t.cpp
@@ -42,31 +42,14 @@
BOOST_FIXTURE_TEST_SUITE(SecurityKeyChain, util::TestHomeEnvironmentFixture)
template<class Path>
-class TestHomeAndPibFixture : public PibDirFixture<Path>
+class TestHomeAndPibFixture : public TestHomeFixture<Path>
{
public:
TestHomeAndPibFixture()
{
- setenv("TEST_HOME", this->m_pibDir.c_str(), true);
unsetenv("NDN_CLIENT_PIB");
unsetenv("NDN_CLIENT_TPM");
}
-
- ~TestHomeAndPibFixture()
- {
- unsetenv("TEST_HOME");
- }
-
- void
- createClientConf(std::initializer_list<std::string> lines)
- {
- boost::filesystem::create_directories(boost::filesystem::path(this->m_pibDir) / ".ndn");
- std::ofstream of((boost::filesystem::path(this->m_pibDir) / ".ndn" / "client.conf").c_str());
- for (auto line : lines) {
- boost::replace_all(line, "%PATH%", this->m_pibDir);
- of << line << std::endl;
- }
- }
};
struct PibPathSqlite3File