diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2016-10-21 14:18:08 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2016-10-21 14:18:08 +0000 |
commit | d593d1b4a18375475af9a685a9181023aa8e2642 (patch) | |
tree | 1b699e2a5d5901c6b07fe79212b1586cb477f0a7 /messagebus/src/tests | |
parent | c202f27ac730619ca99ac5d75fd04f4942563ca0 (diff) |
We only need one vtag
Diffstat (limited to 'messagebus/src/tests')
-rw-r--r-- | messagebus/src/tests/routing/routing.cpp | 10 | ||||
-rw-r--r-- | messagebus/src/tests/simpleprotocol/simpleprotocol.cpp | 10 | ||||
-rw-r--r-- | messagebus/src/tests/targetpool/targetpool.cpp | 7 |
3 files changed, 13 insertions, 14 deletions
diff --git a/messagebus/src/tests/routing/routing.cpp b/messagebus/src/tests/routing/routing.cpp index b9c673263b5..23698279137 100644 --- a/messagebus/src/tests/routing/routing.cpp +++ b/messagebus/src/tests/routing/routing.cpp @@ -1,8 +1,5 @@ // Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include <vespa/fastos/fastos.h> -#include <vespa/log/log.h> -LOG_SETUP("routing_test"); - #include <vespa/messagebus/emptyreply.h> #include <vespa/messagebus/errorcode.h> #include <vespa/messagebus/messagebus.h> @@ -16,8 +13,11 @@ LOG_SETUP("routing_test"); #include <vespa/messagebus/testlib/simplereply.h> #include <vespa/messagebus/testlib/slobrok.h> #include <vespa/messagebus/testlib/testserver.h> -#include <vespa/messagebus/vtag.h> +#include <vespa/vespalib/component/vtag.h> #include <vespa/vespalib/testkit/testapp.h> +#include <vespa/log/log.h> + +LOG_SETUP("routing_test"); using namespace mbus; @@ -650,7 +650,7 @@ Test::testTrace(TestData &data, const std::vector<string> &expected) bool Test::testTrace(const std::vector<string> &expected, const Trace &trace) { - string version = Vtag::currentVersion.toString(); + string version = vespalib::Vtag::currentVersion.toString(); string actual = trace.toString(); size_t pos = 0; for (uint32_t i = 0; i < expected.size(); ++i) { diff --git a/messagebus/src/tests/simpleprotocol/simpleprotocol.cpp b/messagebus/src/tests/simpleprotocol/simpleprotocol.cpp index eaf609a2be1..c4268e5108d 100644 --- a/messagebus/src/tests/simpleprotocol/simpleprotocol.cpp +++ b/messagebus/src/tests/simpleprotocol/simpleprotocol.cpp @@ -1,9 +1,7 @@ // Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include <vespa/fastos/fastos.h> -#include <vespa/log/log.h> -LOG_SETUP("simpleprotocol_test"); - #include <vespa/vespalib/testkit/testapp.h> +#include <vespa/vespalib/component/vtag.h> #include <vespa/messagebus/errorcode.h> #include <vespa/messagebus/ireplyhandler.h> #include <vespa/messagebus/network/identity.h> @@ -14,7 +12,9 @@ LOG_SETUP("simpleprotocol_test"); #include <vespa/messagebus/testlib/simplereply.h> #include <vespa/messagebus/testlib/slobrok.h> #include <vespa/messagebus/testlib/testserver.h> -#include <vespa/messagebus/vtag.h> +#include <vespa/log/log.h> + +LOG_SETUP("simpleprotocol_test"); using namespace mbus; @@ -25,7 +25,7 @@ Test::Main() { TEST_INIT("simpleprotocol_test"); - vespalib::Version version = Vtag::currentVersion; + vespalib::Version version = vespalib::Vtag::currentVersion; SimpleProtocol protocol; EXPECT_TRUE(protocol.getName() == "Simple"); diff --git a/messagebus/src/tests/targetpool/targetpool.cpp b/messagebus/src/tests/targetpool/targetpool.cpp index 0e63be19547..855784ec557 100644 --- a/messagebus/src/tests/targetpool/targetpool.cpp +++ b/messagebus/src/tests/targetpool/targetpool.cpp @@ -1,13 +1,12 @@ // Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include <vespa/fastos/fastos.h> -#include <vespa/log/log.h> -LOG_SETUP("targetpool_test"); - -#include <vespa/messagebus/vtag.h> #include <vespa/messagebus/network/rpctargetpool.h> #include <vespa/messagebus/testlib/slobrok.h> #include <vespa/messagebus/testlib/testserver.h> #include <vespa/vespalib/testkit/testapp.h> +#include <vespa/log/log.h> + +LOG_SETUP("targetpool_test"); using namespace mbus; |