From 9ff4bdb407ed8d855a3f86a17c99906ff738177b Mon Sep 17 00:00:00 2001 From: Arne H Juul Date: Mon, 24 Apr 2017 12:10:42 +0200 Subject: Revert "Balder/enforce override 2" --- .../src/tests/mbusprot/storageprotocoltest.cpp | 20 +++++++++++--------- storageapi/src/tests/testrunner.cpp | 4 ++-- 2 files changed, 13 insertions(+), 11 deletions(-) (limited to 'storageapi/src/tests') diff --git a/storageapi/src/tests/mbusprot/storageprotocoltest.cpp b/storageapi/src/tests/mbusprot/storageprotocoltest.cpp index ed59b49ff04..bc71429032e 100644 --- a/storageapi/src/tests/mbusprot/storageprotocoltest.cpp +++ b/storageapi/src/tests/mbusprot/storageprotocoltest.cpp @@ -1,5 +1,11 @@ // Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. +#include +#include +#include +#include +#include +#include #include #include #include @@ -10,16 +16,10 @@ #include #include #include -#include -#include -#include -#include -#include #include #include +#include #include -#include -#include using std::shared_ptr; using document::ByteBuffer; @@ -837,7 +837,8 @@ namespace { api::StorageReply::UP makeReply() override; - void print(std::ostream& out, bool verbose, const std::string& indent) const override { + virtual void print(std::ostream& out, bool verbose, const std::string& indent) const override + { out << "MyCommand()"; if (verbose) { out << " : "; @@ -849,7 +850,8 @@ namespace { struct MyReply : public api::InternalReply { MyReply(const MyCommand& cmd) : InternalReply(102, cmd) {} - void print(std::ostream& out, bool verbose, const std::string& indent) const override { + virtual void print(std::ostream& out, bool verbose, const std::string& indent) const override + { out << "MyReply()"; if (verbose) { out << " : "; diff --git a/storageapi/src/tests/testrunner.cpp b/storageapi/src/tests/testrunner.cpp index 05fb3184c04..9a07796a3f4 100644 --- a/storageapi/src/tests/testrunner.cpp +++ b/storageapi/src/tests/testrunner.cpp @@ -1,12 +1,12 @@ // Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. +#include #include -#include LOG_SETUP("storageapicppunittestrunner"); int -main(int argc, const char *argv[]) +main(int argc, char **argv) { vdstestlib::CppUnitTestRunner testRunner; return testRunner.run(argc, argv); -- cgit v1.2.3