RTXI  2.4
The Real-Time eXperiment Interface Documentation
settings_tests.h
Go to the documentation of this file.
1 /*
2  The Real-Time eXperiment Interface (RTXI)
3  Copyright (C) 2011 Georgia Institute of Technology, University of Utah, Weill Cornell Medical College
4 
5  This program is free software: you can redistribute it and/or modify
6  it under the terms of the GNU General Public License as published by
7  the Free Software Foundation, either version 3 of the License, or
8  (at your option) any later version.
9 
10  This program is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU General Public License for more details.
14 
15  You should have received a copy of the GNU General Public License
16  along with this program. If not, see <http://www.gnu.org/licenses/>.
17 
18  */
19 
20 #ifndef SETTINGS_TESTS_H
21 #define SETTINGS_tESTS_H
22 
23 #include <gtest/gtest.h>
24 #include <gmock/gmock.h>
25 #include <settings.h>
26 
27 class SettingsManagerTest : public ::testing::Test
28 {
29 protected:
32 
34 };
35 
36 class SettingsObjectTest : public ::testing::Test
37 {
38 protected:
41 
43 };
44 
46 {
47 public:
48  //MOCK_METHOD(Settings::Object::ID, getID, (), (const));
50  MOCK_METHOD(void, load, (const State &), (const));
51  MOCK_METHOD(void, deferred, (const State &), (const));
52 };
53 #endif
SettingsObjectTest::object
Settings::Object * object
Definition: settings_tests.h:42
settings.h
SettingsManagerTest
Definition: settings_tests.h:27
SettingsManagerTest::manager
Settings::Manager * manager
Definition: settings_tests.h:33
SettingsObjectTest
Definition: settings_tests.h:36
Settings::Object::deferred
void deferred(const State &)
Definition: settings.cpp:207
Settings::Manager
Definition: settings.h:173
MockSettingsObject::MOCK_METHOD
MOCK_METHOD(Settings::Object::State, save,(),(const))
Settings::Object::save
State save(void) const
Definition: settings.cpp:188
SettingsManagerTest::SettingsManagerTest
SettingsManagerTest()
Definition: settings_tests.h:30
SettingsObjectTest::SettingsObjectTest
SettingsObjectTest()
Definition: settings_tests.h:39
Settings::Object
Definition: settings.h:43
Settings::Object::State
Definition: settings.h:62
SettingsObjectTest::~SettingsObjectTest
~SettingsObjectTest()
Definition: settings_tests.h:40
SettingsManagerTest::~SettingsManagerTest
~SettingsManagerTest()
Definition: settings_tests.h:31
MockSettingsObject
Definition: settings_tests.h:45
Settings::Object::load
void load(const State &)
Definition: settings.cpp:195