Salome HOME
Formatting CMakeLists.txt for ConstructionAPI & ModelHighAPI. Move set(CMAKE_SWIG_FLA...
[modules/shaper.git] / src / ConstructionAPI / Test / MockModelAPI_Feature.h
1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
2
3 #ifndef MockModelAPI_Feature_H_
4 #define MockModelAPI_Feature_H_
5
6 #include <gmock/gmock.h>
7
8 #include <ModelAPI_Feature.h>
9
10 class MockModelAPI_Feature : public ModelAPI_Feature {
11   // ModelAPI_Object
12  public:
13   MOCK_METHOD0(groupName,
14       std::string());
15   MOCK_METHOD0(initAttributes,
16       void());
17   MOCK_METHOD0(isDisabled,
18       bool());
19   MOCK_METHOD3(colorConfigInfo,
20       void(std::string& theSection, std::string& theName, std::string& theDefault));
21   MOCK_METHOD0(init,
22       void());
23   MOCK_CONST_METHOD0(data,
24       std::shared_ptr<ModelAPI_Data>());
25
26   // ModelAPI_Feature
27  public:
28   MOCK_METHOD0(getKind,
29       const std::string&());
30   MOCK_CONST_METHOD0(document,
31       std::shared_ptr<ModelAPI_Document>());
32   MOCK_METHOD0(execute,
33       void());
34   MOCK_METHOD1(compute,
35       bool(const std::string& theAttributeId));
36   MOCK_METHOD2(setError,
37       void(std::string, bool));
38   MOCK_CONST_METHOD0(error,
39       std::string());
40   MOCK_METHOD0(isPersistentResult,
41       bool());
42   MOCK_METHOD0(isAction,
43       bool());
44 };
45
46 #endif // MockModelAPI_Feature_H_