summaryrefslogtreecommitdiffstats
path: root/src/lib/cache
diff options
context:
space:
mode:
authorchenzhengzhang <jerry.zzpku@gmail.com>2011-04-12 09:26:09 +0200
committerchenzhengzhang <jerry.zzpku@gmail.com>2011-04-12 09:26:09 +0200
commit36dd3d4b0bdd8c40695ac186955196bd268db586 (patch)
treebcd88e70a9909b36b970f5979ae5723024517c51 /src/lib/cache
parent[trac749] refactor C++ utility library (diff)
downloadkea-36dd3d4b0bdd8c40695ac186955196bd268db586.tar.xz
kea-36dd3d4b0bdd8c40695ac186955196bd268db586.zip
[trac749] refactor more C++ utility code
Diffstat (limited to 'src/lib/cache')
-rw-r--r--src/lib/cache/tests/cache_test_messagefromfile.h4
-rw-r--r--src/lib/cache/tests/cache_test_sectioncount.h2
-rw-r--r--src/lib/cache/tests/message_cache_unittest.cc4
-rw-r--r--src/lib/cache/tests/message_entry_unittest.cc2
4 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/cache/tests/cache_test_messagefromfile.h b/src/lib/cache/tests/cache_test_messagefromfile.h
index 7d55f08c71..611386c999 100644
--- a/src/lib/cache/tests/cache_test_messagefromfile.h
+++ b/src/lib/cache/tests/cache_test_messagefromfile.h
@@ -14,7 +14,7 @@
#include <vector>
#include <dns/tests/unittest_util.h>
-#include <util/buffer.h>
+#include <util/io/buffer.h>
#include <dns/message.h>
using namespace isc;
@@ -31,7 +31,7 @@ messageFromFile(Message& message, const char* datafile) {
std::vector<unsigned char> data;
UnitTestUtil::readWireData(datafile, data);
- isc::util::InputBuffer buffer(&data[0], data.size());
+ isc::util::io::InputBuffer buffer(&data[0], data.size());
message.fromWire(buffer);
}
diff --git a/src/lib/cache/tests/cache_test_sectioncount.h b/src/lib/cache/tests/cache_test_sectioncount.h
index df7cb5258d..6cb37a54af 100644
--- a/src/lib/cache/tests/cache_test_sectioncount.h
+++ b/src/lib/cache/tests/cache_test_sectioncount.h
@@ -14,7 +14,7 @@
#include <vector>
#include <dns/tests/unittest_util.h>
-#include <util/buffer.h>
+#include <util/io/buffer.h>
#include <dns/message.h>
using namespace isc;
diff --git a/src/lib/cache/tests/message_cache_unittest.cc b/src/lib/cache/tests/message_cache_unittest.cc
index 60ae0371a2..c9f816f393 100644
--- a/src/lib/cache/tests/message_cache_unittest.cc
+++ b/src/lib/cache/tests/message_cache_unittest.cc
@@ -16,7 +16,7 @@
#include <string>
#include <gtest/gtest.h>
#include <dns/tests/unittest_util.h>
-#include <util/buffer.h>
+#include <util/io/buffer.h>
#include "../message_cache.h"
#include "../rrset_cache.h"
#include "../resolver_cache.h"
@@ -25,7 +25,7 @@
using namespace isc::cache;
using namespace isc;
using namespace isc::dns;
-using namespace isc::util;
+using namespace isc::util::io;
using namespace std;
namespace {
diff --git a/src/lib/cache/tests/message_entry_unittest.cc b/src/lib/cache/tests/message_entry_unittest.cc
index d9709ed298..cb6df760b4 100644
--- a/src/lib/cache/tests/message_entry_unittest.cc
+++ b/src/lib/cache/tests/message_entry_unittest.cc
@@ -15,7 +15,7 @@
#include <gtest/gtest.h>
#include <dns/tests/unittest_util.h>
#include <dns/message.h>
-#include <util/buffer.h>
+#include <util/io/buffer.h>
#include "../message_entry.h"
#include "../rrset_cache.h"
#include "../resolver_cache.h"