Commit 0c97558e authored by Jelte Jansen's avatar Jelte Jansen
Browse files

[trac497] move to namespace

parent 8cce1250
...@@ -26,6 +26,9 @@ ...@@ -26,6 +26,9 @@
using namespace isc::dns; using namespace isc::dns;
using namespace std; using namespace std;
namespace isc {
namespace resolve {
// Classify the response in the "message" object. // Classify the response in the "message" object.
ResponseClassifier::Category ResponseClassifier::classify( ResponseClassifier::Category ResponseClassifier::classify(
...@@ -257,3 +260,6 @@ ResponseClassifier::Category ResponseClassifier::cnameChase( ...@@ -257,3 +260,6 @@ ResponseClassifier::Category ResponseClassifier::cnameChase(
return (EXTRADATA); return (EXTRADATA);
} }
} // namespace resolve
} // namespace isc
...@@ -23,6 +23,9 @@ ...@@ -23,6 +23,9 @@
#include <dns/message.h> #include <dns/message.h>
#include <dns/question.h> #include <dns/question.h>
namespace isc {
namespace resolve {
/// \brief Classify Server Response /// \brief Classify Server Response
/// ///
/// This class is used in the recursive server. It is passed an answer received /// This class is used in the recursive server. It is passed an answer received
...@@ -136,3 +139,6 @@ private: ...@@ -136,3 +139,6 @@ private:
}; };
#endif // __RESPONSE_CLASSIFIER_H #endif // __RESPONSE_CLASSIFIER_H
} // namespace resolve
} // namespace isc
...@@ -35,6 +35,8 @@ using namespace isc::dns; ...@@ -35,6 +35,8 @@ using namespace isc::dns;
using namespace rdata; using namespace rdata;
using namespace isc::dns::rdata::generic; using namespace isc::dns::rdata::generic;
using namespace isc::dns::rdata::in; using namespace isc::dns::rdata::in;
using namespace isc::resolve;
namespace { namespace {
class ResponseClassifierTest : public ::testing::Test { class ResponseClassifierTest : public ::testing::Test {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment