]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2275] use const char* for test globals
authorJelte Jansen <jelte@isc.org>
Thu, 4 Oct 2012 09:44:46 +0000 (11:44 +0200)
committerJelte Jansen <jelte@isc.org>
Thu, 4 Oct 2012 09:44:46 +0000 (11:44 +0200)
src/lib/resolve/tests/recursive_query_unittest_2.cc
src/lib/resolve/tests/recursive_query_unittest_3.cc

index 2b3d12979b79c9ae79c154a42c1277944f2bdd9a..85e2c384fe193d3ec98d42f854e534cc8f87802e 100644 (file)
@@ -79,10 +79,10 @@ using namespace std;
 namespace isc {
 namespace asiodns {
 
-const std::string TEST_ADDRESS = "127.0.0.1";   ///< Servers are on this address
-const uint16_t TEST_PORT = 5301;                ///< ... and this port
-const size_t BUFFER_SIZE = 1024;                ///< For all buffers
-const char* WWW_EXAMPLE_ORG = "192.0.2.254";    ///< Address of www.example.org
+const char* TEST_ADDRESS = "127.0.0.1";       ///< Servers are on this address
+const uint16_t TEST_PORT = 5301;              ///< ... and this port
+const size_t BUFFER_SIZE = 1024;              ///< For all buffers
+const char* WWW_EXAMPLE_ORG = "192.0.2.254";  ///< Address of www.example.org
 
 // As the test is fairly long and complex, debugging "print" statements have
 // been left in although they are disabled.  Set the following to "true" to
index 168ec80d6b387e16198df1595327b62d08a2f4d9..fdbae7ba1076044e80023f87a35cedca80c8cefd 100644 (file)
@@ -72,12 +72,11 @@ using namespace std;
 namespace isc {
 namespace asiodns {
 
-const std::string TEST_ADDRESS3 = "127.0.0.1"; 
-                                               ///< Servers are on this address
-const uint16_t TEST_PORT3 = 5303;              ///< ... and this port
+const char* TEST_ADDRESS3 = "127.0.0.1";      ///< Servers are on this address
+const uint16_t TEST_PORT3 = 5303;             ///< ... and this port
 const size_t BUFFER_SIZE = 1024;              ///< For all buffers
 
-const std::string DUMMY_ADDR3 = "1.2.3.4";     ///< address to return as A
+const char* DUMMY_ADDR3 = "1.2.3.4";          ///< address to return as A
 
 class MockResolver3 : public isc::resolve::ResolverInterface {
 public: