Home
last modified time | relevance | path

Searched refs:MOCK_METHOD (Results 1 – 10 of 10) sorted by relevance

/freebsd/contrib/googletest/googlemock/test/
H A Dgmock-function-mocker_test.cc143 MOCK_METHOD(void, VoidReturning, (int n)); // NOLINT
145 MOCK_METHOD(int, Nullary, ()); // NOLINT
148 MOCK_METHOD(bool, Unary, (int)); // NOLINT
149 MOCK_METHOD(long, Binary, (short, int)); // NOLINT
150 MOCK_METHOD(int, Decimal,
155 MOCK_METHOD(bool, TakesNonConstReference, (int&)); // NOLINT
156 MOCK_METHOD(std::string, TakesConstReference, (const int&));
157 MOCK_METHOD(bool, TakesConst, (const int)); // NOLINT
160 MOCK_METHOD((std::map<int, std::string>), ReturnTypeWithComma, (), ());
161 MOCK_METHOD((std::map<int, std::string>), ReturnTypeWithComma, (int),
[all …]
H A Dgmock-nice-strict_test.cc74 MOCK_METHOD(void, OnDestroy, ());
H A Dgmock-more-actions_test.cc595 MOCK_METHOD(void, Func, (), (override));
836 MOCK_METHOD(bool, MockMethod, in TEST()
H A Dgmock-matchers-containers_test.cc2804 MOCK_METHOD(void, Helper, (int* array, int size));
/freebsd/contrib/googletest/docs/
H A Dgmock_cheat_sheet.md27 MOCK_METHOD(int, GetSize, (), (const, override));
28 MOCK_METHOD(string, Describe, (const char* name), (override));
29 MOCK_METHOD(string, Describe, (int type), (override));
30 MOCK_METHOD(bool, Process, (Bar elem, int count), (override));
75 MOCK_METHOD(int, GetSize, (), (const, override));
76 MOCK_METHOD(void, Push, (const Elem& x), (override));
83 specify it by adding `Calltype(convention)` to `MOCK_METHOD`'s 4th parameter.
87 MOCK_METHOD(bool, Foo, (int n), (Calltype(STDMETHODCALLTYPE)));
88 MOCK_METHOD(int, Bar, (double x, double y),
229 MOCK_METHOD(R, Call, (A1, ..., An));
H A Dgmock_cook_book.md15 Mock classes are defined as normal classes, using the `MOCK_METHOD` macro to
21 MOCK_METHOD(ReturnType, MethodName, (Args...));
22 MOCK_METHOD(ReturnType, MethodName, (Args...), (Specs...));
45 `MOCK_METHOD` from parsing its arguments correctly:
51 MOCK_METHOD(std::pair<bool, int>, GetPair, ()); // Won't compile!
52 MOCK_METHOD(bool, CheckMap, (std::map<int, double>, bool)); // Won't compile!
62 MOCK_METHOD((std::pair<bool, int>), GetPair, ());
63 MOCK_METHOD(bool, CheckMap, ((std::map<int, double>), bool));
68 invalid C++. `MOCK_METHOD` removes the parentheses.
77 MOCK_METHOD(BoolAndInt, GetPair, ());
[all …]
H A Dgmock_for_dummies.md151 * In the `public:` section of the child class, write `MOCK_METHOD();`
172 MOCK_METHOD(void, PenUp, (), (override));
173 MOCK_METHOD(void, PenDown, (), (override));
174 MOCK_METHOD(void, Forward, (int distance), (override));
175 MOCK_METHOD(void, Turn, (int degrees), (override));
176 MOCK_METHOD(void, GoTo, (int x, int y), (override));
177 MOCK_METHOD(int, GetX, (), (const, override));
178 MOCK_METHOD(int, GetY, (), (const, override));
182 You don't need to define these mock methods somewhere else - the `MOCK_METHOD`
H A Dgmock_faq.md38 MOCK_METHOD(void, Bar, (const int i), (override));
281 MOCK_METHOD(void, Bar, (X* x, const Y& y));
299 MOCK_METHOD(void, Bar, (X* p));
/freebsd/contrib/googletest/docs/reference/
H A Dmocking.md10 ### MOCK_METHOD {#MOCK_METHOD}
12 `MOCK_METHOD(`*`return_type`*`,`*`method_name`*`, (`*`args...`*`));` \
13 `MOCK_METHOD(`*`return_type`*`,`*`method_name`*`, (`*`args...`*`),
19 The parameters of `MOCK_METHOD` mirror the method declaration. The optional
31 Note that commas in arguments prevent `MOCK_METHOD` from parsing the arguments
39 MOCK_METHOD(std::pair<bool, int>, GetPair, ()); // Error!
40 MOCK_METHOD(bool, CheckMap, (std::map<int, double>, bool)); // Error!
43 MOCK_METHOD((std::pair<bool, int>), GetPair, ());
44 MOCK_METHOD(bool, CheckMap, ((std::map<int, double>), bool));
48 MOCK_METHOD(BoolAndInt, GetPair, ());
[all …]
/freebsd/contrib/googletest/googlemock/include/gmock/
H A Dgmock-function-mocker.h112 #define MOCK_METHOD(...) \ macro