#include <testutils/io_utils.h>
using namespace isc::data;
+using namespace isc::test;
using namespace std;
namespace isc {
using namespace isc::dhcp::test;
using namespace isc::hooks;
using namespace isc::stats;
+using namespace isc::test;
namespace {
#include <testutils/io_utils.h>
using namespace isc::data;
+using namespace isc::test;
using namespace std;
namespace isc {
using namespace isc::dhcp::test;
using namespace isc::hooks;
using namespace isc::stats;
+using namespace isc::test;
namespace {
using namespace isc::data;
using namespace std;
+using namespace isc::test;
namespace isc {
namespace dhcp {
std::string
DUIDFactoryTest::readDefaultFile() const {
- return (dhcp::test::readFile(absolutePath(DEFAULT_DUID_FILE)));
+ return (isc::test::readFile(absolutePath(DEFAULT_DUID_FILE)));
}
std::vector<uint8_t>
duid->toText());
// Verify that the DUID file has been created.
- EXPECT_TRUE(dhcp::test::fileExists(absolutePath(DUID_FILE_NAME)));
+ EXPECT_TRUE(isc::test::fileExists(absolutePath(DUID_FILE_NAME)));
}
// This method checks that the DUID-EN can be created from the
EXPECT_EQ("00:02:00:00:10:10:25:0f:3e:26:a7:62", duid->toText());
// Verify that the DUID file has been created.
- EXPECT_TRUE(dhcp::test::fileExists(absolutePath(DUID_FILE_NAME)));
+ EXPECT_TRUE(isc::test::fileExists(absolutePath(DUID_FILE_NAME)));
}
// This method checks that the DUID-LL can be created from the
EXPECT_EQ("00:03:00:02:12:41:34:a4:b3:67", duid->toText());
// Verify that the DUID file has been created.
- EXPECT_TRUE(dhcp::test::fileExists(absolutePath(DUID_FILE_NAME)));
+ EXPECT_TRUE(isc::test::fileExists(absolutePath(DUID_FILE_NAME)));
}
// This test verifies that it is possible to disable storing
EXPECT_EQ("00:02:00:00:10:10:25:0f:3e:26:a7:62", duid->toText());
// DUID persistence is disabled so there should be no DUID file.
- EXPECT_FALSE(dhcp::test::fileExists(absolutePath(DUID_FILE_NAME)));
+ EXPECT_FALSE(isc::test::fileExists(absolutePath(DUID_FILE_NAME)));
}
} // end of anonymous namespace
#include <string>
namespace isc {
-namespace dhcp {
namespace test {
bool fileExists(const std::string& file_path) {
return (outfile);
}
-}; // end of isc::dhcp::test namespace
-}; // end of isc::dhcp namespace
+}; // end of isc::test namespace
}; // end of isc namespace
#include <sys/stat.h>
namespace isc {
-namespace dhcp {
namespace test {
/// @brief Checks if specified file exists.
/// @throw BadValue if the input file cannot be opened
std::string decommentJSONfile(const std::string& input_file);
-}; // end of isc::dhcp::test namespace
-}; // end of isc::dhcp namespace
+}; // end of isc::test namespace
}; // end of isc namespace
#endif // TEST_IO_UTILS_H