diff options
Diffstat (limited to 'documentapi/src/tests/messages/messages60test.cpp')
-rw-r--r-- | documentapi/src/tests/messages/messages60test.cpp | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/documentapi/src/tests/messages/messages60test.cpp b/documentapi/src/tests/messages/messages60test.cpp index 99ecb3644a5..281e1123e54 100644 --- a/documentapi/src/tests/messages/messages60test.cpp +++ b/documentapi/src/tests/messages/messages60test.cpp @@ -751,7 +751,7 @@ Messages60Test::testVisitorInfoMessage() bool Messages60Test::testDestroyVisitorReply() { - return tryDocumentReply("DestroyVisitorReply", DocumentProtocol::REPLY_DESTROYVISITOR); + return tryVisitorReply("DestroyVisitorReply", DocumentProtocol::REPLY_DESTROYVISITOR); } bool @@ -922,23 +922,6 @@ Messages60Test::testRemoveLocationReply() //////////////////////////////////////////////////////////////////////////////// bool -Messages60Test::tryDocumentReply(const string &filename, uint32_t type) -{ - DocumentReply tmp(type); - - EXPECT_EQUAL((uint32_t)5, serialize(filename, tmp)); - - for (uint32_t lang = 0; lang < NUM_LANGUAGES; ++lang) { - mbus::Routable::UP obj = deserialize(filename, type, lang); - if (EXPECT_TRUE(obj)) { - DocumentReply *ref = dynamic_cast<DocumentReply*>(obj.get()); - EXPECT_TRUE(ref != NULL); - } - } - return true; -} - -bool Messages60Test::tryVisitorReply(const string &filename, uint32_t type) { VisitorReply tmp(type); |