/freebsd/contrib/googletest/googlemock/test/ |
H A D | gmock-function-mocker_test.cc | 143 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 D | gmock-nice-strict_test.cc | 74 MOCK_METHOD(void, OnDestroy, ());
|
H A D | gmock-more-actions_test.cc | 595 MOCK_METHOD(void, Func, (), (override)); 836 MOCK_METHOD(bool, MockMethod, in TEST()
|
H A D | gmock-matchers-containers_test.cc | 2804 MOCK_METHOD(void, Helper, (int* array, int size));
|
/freebsd/contrib/googletest/docs/ |
H A D | gmock_cheat_sheet.md | 27 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 D | gmock_cook_book.md | 15 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 D | gmock_for_dummies.md | 151 * 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 D | gmock_faq.md | 38 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 D | mocking.md | 10 ### 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 D | gmock-function-mocker.h | 112 #define MOCK_METHOD(...) \ macro
|