Salome HOME
Disable sketch input fields unconditionally.
[modules/shaper.git] / src / ModelHighAPI / Mock / MockModelAPI_Data.h
1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
2
3 #ifndef MockModelAPI_Data_H_
4 #define MockModelAPI_Data_H_
5
6 #include <gmock/gmock.h>
7
8 #include <ModelAPI_Data.h>
9
10 class MockModelAPI_Data : public ModelAPI_Data {
11  public:
12   MOCK_METHOD0(name,
13       std::string());
14   MOCK_METHOD1(setName,
15       void(const std::string& theName));
16   MOCK_METHOD1(document,
17       std::shared_ptr<ModelAPI_AttributeDocRef>(const std::string& theID));
18   MOCK_METHOD1(real,
19       std::shared_ptr<ModelAPI_AttributeDouble>(const std::string& theID));
20   MOCK_METHOD1(integer,
21       std::shared_ptr<ModelAPI_AttributeInteger>(const std::string& theID));
22   MOCK_METHOD1(reference,
23       std::shared_ptr<ModelAPI_AttributeReference>(const std::string& theID));
24   MOCK_METHOD1(selection,
25       std::shared_ptr<ModelAPI_AttributeSelection>(const std::string& theID));
26   MOCK_METHOD1(selectionList,
27       std::shared_ptr<ModelAPI_AttributeSelectionList>(const std::string& theID));
28   MOCK_METHOD1(refattr,
29       std::shared_ptr<ModelAPI_AttributeRefAttr>(const std::string& theID));
30   MOCK_METHOD1(reflist,
31       std::shared_ptr<ModelAPI_AttributeRefList>(const std::string& theID));
32   MOCK_METHOD1(refattrlist,
33       std::shared_ptr<ModelAPI_AttributeRefAttrList>(const std::string& theID));
34   MOCK_METHOD1(boolean,
35       std::shared_ptr<ModelAPI_AttributeBoolean>(const std::string& theID));
36   MOCK_METHOD1(string,
37       std::shared_ptr<ModelAPI_AttributeString>(const std::string& theID));
38   MOCK_METHOD1(intArray,
39       std::shared_ptr<ModelAPI_AttributeIntArray>(const std::string& theID));
40   MOCK_METHOD1(attribute,
41       std::shared_ptr<ModelAPI_Attribute>(const std::string& theID));
42   MOCK_METHOD1(attributes,
43       std::list<std::shared_ptr<ModelAPI_Attribute> >(const std::string& theType));
44   MOCK_METHOD1(attributesIDs,
45       std::list<std::string>(const std::string& theType));
46   MOCK_METHOD1(id,
47       const std::string&(const std::shared_ptr<ModelAPI_Attribute>& theAttr));
48   MOCK_METHOD1(isEqual,
49       bool(const std::shared_ptr<ModelAPI_Data>& theData));
50   MOCK_METHOD0(isValid,
51       bool());
52   MOCK_METHOD2(addAttribute,
53       std::shared_ptr<ModelAPI_Attribute>(const std::string& theID, const std::string theAttrType));
54   MOCK_METHOD1(sendAttributeUpdated,
55       void(ModelAPI_Attribute* theAttr));
56   MOCK_METHOD1(blockSendAttributeUpdated,
57       void(const bool theBlock));
58   MOCK_METHOD0(erase,
59       void());
60   MOCK_METHOD1(execState,
61       void(const ModelAPI_ExecState theState));
62   MOCK_METHOD0(execState,
63       ModelAPI_ExecState());
64   MOCK_METHOD2(setError,
65       void(const std::string& theError, bool theSend));
66   MOCK_CONST_METHOD0(error,
67       std::string());
68   MOCK_CONST_METHOD0(featureId,
69       int());
70   MOCK_METHOD0(refsToMe,
71       const std::set<std::shared_ptr<ModelAPI_Attribute> >&());
72   MOCK_METHOD1(referencesToObjects,
73       void(std::list<std::pair<std::string, std::list<std::shared_ptr<ModelAPI_Object> > > >& theRefs));
74   MOCK_METHOD1(copyTo,
75       void(std::shared_ptr<ModelAPI_Data> theTarget));
76   MOCK_METHOD0(invalidPtr,
77       std::shared_ptr<ModelAPI_Data>());
78   MOCK_METHOD0(updateID,
79       int());
80   MOCK_METHOD1(setUpdateID,
81       void(const int theID));
82   MOCK_METHOD0(owner,
83       std::shared_ptr<ModelAPI_Object>());
84   MOCK_METHOD0(isDeleted,
85       bool());
86   MOCK_METHOD1(setIsDeleted,
87       void(const bool theFlag));
88   MOCK_METHOD0(isInHistory,
89       bool());
90   MOCK_METHOD1(setIsInHistory,
91       void(const bool theFlag));
92   MOCK_METHOD0(isDisplayed,
93       bool());
94   MOCK_METHOD1(setDisplayed,
95       void(const bool theDisplay));
96 };
97
98 #endif // MockModelAPI_Data_H_