diff options
Diffstat (limited to 'src/lib/cc')
-rw-r--r-- | src/lib/cc/tests/session_unittests.cc | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/src/lib/cc/tests/session_unittests.cc b/src/lib/cc/tests/session_unittests.cc index 0e47d2fa23..8859bfb03b 100644 --- a/src/lib/cc/tests/session_unittests.cc +++ b/src/lib/cc/tests/session_unittests.cc @@ -174,20 +174,12 @@ protected: } // Check two elements are equal - void elementsEqual(const ConstElementPtr& expected, - const ConstElementPtr& actual) - { - EXPECT_TRUE(expected->equals(*actual)) << - "Elements differ, expected: " << expected->toWire() << - ", got: " << actual->toWire(); - } - - // The same, but with one specified as string void elementsEqual(const string& expected, const ConstElementPtr& actual) { - const ConstElementPtr expected_el(Element::fromJSON(expected)); - elementsEqual(expected_el, actual); + 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 |