// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include #include #include #include class BaseTest { private: BaseTest(const BaseTest&); BaseTest &operator=(const BaseTest&); int totallen; bool _allOkFlag; public: int _argc; char **_argv; const char *okString; const char *failString; BaseTest () : totallen(70), _allOkFlag(true), _argc(0), _argv(nullptr), okString("SUCCESS"), failString("FAILURE") { } virtual int Main() = 0; int Entry(int argc, char **argv) { _argc = argc; _argv = argv; return Main(); } virtual ~BaseTest() {}; bool allWasOk() const { return _allOkFlag; } void PrintSeparator () { for(int i=0; i