From: JINMEI Tatuya Date: Thu, 7 Feb 2013 20:24:52 +0000 (-0800) Subject: [1924] prioritize a method where possible. X-Git-Tag: bind10-1.1.0beta1-release~104^2~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e931cdc9d86861eb9ca96a4bdd3bdf407f2e897f;p=thirdparty%2Fkea.git [1924] prioritize a method where possible. --- diff --git a/src/lib/cc/tests/session_unittests.cc b/src/lib/cc/tests/session_unittests.cc index c218c76387..1f66157ef7 100644 --- a/src/lib/cc/tests/session_unittests.cc +++ b/src/lib/cc/tests/session_unittests.cc @@ -173,15 +173,6 @@ protected: delete tds; } - // Check two elements are equal - void elementsEqual(const string& expected, - const ConstElementPtr& actual) const - { - EXPECT_TRUE(Element::fromJSON(expected)->equals(*actual)) << - "Elements differ, expected: " << expected << - ", got: " << actual->toWire(); - } - // Check the session sent a message with the given header. The // message is hardcoded. void checkSentMessage(const string& expected_hdr, const char* description) @@ -192,6 +183,16 @@ protected: elementsEqual("{\"test\": 42}", msg.second); } +private: + // Check two elements are equal + void elementsEqual(const string& expected, + const ConstElementPtr& actual) const + { + EXPECT_TRUE(Element::fromJSON(expected)->equals(*actual)) << + "Elements differ, expected: " << expected << + ", got: " << actual->toWire(); + } + public: // used in the handler test // This handler first reads (and ignores) whatever message caused