adding the test files - nothing really there for now. sync_test_refactor
authorKrista 'DarthMama' Bennett <krista@pep.foundation>
Mon, 25 Feb 2019 16:48:01 +0100
branchsync_test_refactor
changeset 33178b62a114d2f2
parent 3316 a63e2fb38bee
child 3318 0d482a4f1d18
adding the test files - nothing really there for now.
test/include/SyncDeviceTests.h
test/src/engine_tests/SyncDeviceTests.cc
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/test/include/SyncDeviceTests.h	Mon Feb 25 16:48:01 2019 +0100
     1.3 @@ -0,0 +1,20 @@
     1.4 +// This file is under GNU General Public License 3.0
     1.5 +// see LICENSE.txt
     1.6 +
     1.7 +#ifndef SYNC_DEVICE_H
     1.8 +#define SYNC_DEVICE_H
     1.9 +
    1.10 +#include <string>
    1.11 +#include "EngineTestIndividualSuite.h"
    1.12 +
    1.13 +using namespace std;
    1.14 +
    1.15 +class SyncDeviceTests : public EngineTestIndividualSuite {
    1.16 +    public:
    1.17 +        SyncDeviceTests(string test_suite, string test_home_dir);
    1.18 +                
    1.19 +    private:
    1.20 +        void check_sync_device();
    1.21 +};
    1.22 +
    1.23 +#endif
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/test/src/engine_tests/SyncDeviceTests.cc	Mon Feb 25 16:48:01 2019 +0100
     2.3 @@ -0,0 +1,31 @@
     2.4 +// This file is under GNU General Public License 3.0
     2.5 +// see LICENSE.txt
     2.6 +
     2.7 +#include <stdlib.h>
     2.8 +#include <string>
     2.9 +
    2.10 +#include <cpptest.h>
    2.11 +
    2.12 +#include <cstring>
    2.13 +
    2.14 +#include "pEpEngine.h"
    2.15 +
    2.16 +#include "TestUtils.h"
    2.17 +
    2.18 +#include "pEpTestDevice.h"
    2.19 +
    2.20 +#include "EngineTestIndividualSuite.h"
    2.21 +#include "SyncDeviceTests.h"
    2.22 +
    2.23 +using namespace std;
    2.24 +
    2.25 +SyncDeviceTests::SyncDeviceTests(string suitename, string test_home_dir) :
    2.26 +    EngineTestIndividualSuite::EngineTestIndividualSuite(suitename, test_home_dir) {
    2.27 +    add_test_to_suite(std::pair<std::string, void (Test::Suite::*)()>(string("SyncDeviceTests::check_sync_device"),
    2.28 +                                                                      static_cast<Func>(&SyncDeviceTests::check_sync_device)));
    2.29 +}
    2.30 +
    2.31 +void SyncDeviceTests::check_sync_device() {
    2.32 +    TEST_ASSERT(true);
    2.33 +}
    2.34 +