From c8c69b2a7b47c67655985c506a6467acbc471a05 Mon Sep 17 00:00:00 2001 From: JINMEI Tatuya Date: Fri, 16 Mar 2012 14:05:49 -0700 Subject: [PATCH] [1784] cleanup: put testuil mockups in a separate namespace to avoid pollution. --- src/bin/auth/tests/command_unittest.cc | 1 + src/bin/auth/tests/config_unittest.cc | 1 + src/lib/testutils/mockups.h | 9 +++++++++ 3 files changed, 11 insertions(+) diff --git a/src/bin/auth/tests/command_unittest.cc b/src/bin/auth/tests/command_unittest.cc index 093afda374..376087bffb 100644 --- a/src/bin/auth/tests/command_unittest.cc +++ b/src/bin/auth/tests/command_unittest.cc @@ -49,6 +49,7 @@ using namespace isc::dns; using namespace isc::data; using namespace isc::datasrc; using namespace isc::config; +using namespace isc::testutils; namespace { class AuthCommandTest : public ::testing::Test { diff --git a/src/bin/auth/tests/config_unittest.cc b/src/bin/auth/tests/config_unittest.cc index fcf88b15af..78245e6a84 100644 --- a/src/bin/auth/tests/config_unittest.cc +++ b/src/bin/auth/tests/config_unittest.cc @@ -38,6 +38,7 @@ using namespace isc::data; using namespace isc::datasrc; using namespace isc::asiodns; using namespace isc::asiolink; +using namespace isc::testutils; namespace { class AuthConfigTest : public ::testing::Test { diff --git a/src/lib/testutils/mockups.h b/src/lib/testutils/mockups.h index 2441ad798b..5f2b06251f 100644 --- a/src/lib/testutils/mockups.h +++ b/src/lib/testutils/mockups.h @@ -21,6 +21,9 @@ #include +namespace isc { +namespace testutils { + // A minimal mock configuration session. Most the methods are // stubbed out, except for a very basic group_sendmsg() and // group_recvmsg(). hasQueuedMessages() always returns false. @@ -149,3 +152,9 @@ private: bool disconnect_ok_; }; +} // end of testutils +} // end of isc + +// Local Variables: +// mode: c++ +// End: