Home
last modified time | relevance | path

Searched refs:Mock (Results 1 – 21 of 21) sorted by relevance

/freebsd/contrib/googletest/googlemock/test/
H A Dgmock_link_test.h210 class Mock : public Interface {
212 Mock() = default;
225 Mock(const Mock&) = delete;
226 Mock& operator=(const Mock&) = delete;
249 Mock mock; in TEST()
257 Mock mock; in TEST()
266 Mock mock; in TEST()
274 Mock mock; in TEST()
283 Mock mock; in TEST()
292 Mock mock; in TEST()
[all …]
H A Dgmock-nice-strict_test.cc41 class Mock { class
43 Mock() = default;
48 Mock(const Mock&) = delete;
49 Mock& operator=(const Mock&) = delete;
195 EXPECT_TRUE(Mock::IsNaggy(&raw_foo)); in TEST()
196 EXPECT_FALSE(Mock::IsNice(&raw_foo)); in TEST()
197 EXPECT_FALSE(Mock::IsStrict(&raw_foo)); in TEST()
296 Mock::AllowLeak(leaked); in TEST()
308 NiceMock< ::Mock> nice; in TEST()
322 EXPECT_FALSE(Mock::IsNaggy(&nice_foo)); in TEST()
[all …]
H A Dgmock_output_test_golden.txt6 FILE:#: Mock function call matches EXPECT_CALL(foo_, Bar2(0, _))...
16 FILE:#: Mock function call matches EXPECT_CALL(foo_, Bar3(0, _))...
36 Google Mock tried the following 1 expectation, but it didn't match:
50 Google Mock tried the following 1 expectation, but it didn't match:
61 Mock function called more times than expected - returning default value.
70 Mock function called more times than expected - returning directly.
97 Google Mock tried the following 2 expectations, but none matched:
119 Google Mock tried the following 2 expectations, but none matched:
141 Google Mock tried the following 2 expectations, but none matched:
184 Google Mock tried the following 1 expectation, but it didn't match:
[all …]
H A Dgmock-spec-builders_test.cc2162 Mock::AllowLeak(a); in TEST()
2167 Mock::AllowLeak(a); in TEST()
2175 Mock::AllowLeak(a); in TEST()
2180 Mock::AllowLeak(a); in TEST()
2188 Mock::AllowLeak(a); in TEST()
2195 Mock::AllowLeak(a); in TEST()
2202 ASSERT_TRUE(Mock::VerifyAndClearExpectations(&b)); in TEST()
2217 ASSERT_TRUE(Mock::VerifyAndClearExpectations(&b)); in TEST()
2232 EXPECT_NONFATAL_FAILURE(result = Mock::VerifyAndClearExpectations(&b), in TEST()
2250 ASSERT_TRUE(Mock::VerifyAndClearExpectations(&b)); in TEST()
[all …]
/freebsd/contrib/googletest/googlemock/src/
H A Dgmock-spec-builders.cc324 Mock::Register(mock_obj, this); in RegisterOwner()
570 void Mock::AllowUninterestingCalls(uintptr_t mock_obj) in AllowUninterestingCalls()
577 void Mock::WarnUninterestingCalls(uintptr_t mock_obj) in WarnUninterestingCalls()
584 void Mock::FailUninterestingCalls(uintptr_t mock_obj) in FailUninterestingCalls()
591 void Mock::UnregisterCallReaction(uintptr_t mock_obj) in UnregisterCallReaction()
599 internal::CallReaction Mock::GetReactionOnUninterestingCalls( in GetReactionOnUninterestingCalls()
612 void Mock::AllowLeak(const void* mock_obj) in AllowLeak()
621 bool Mock::VerifyAndClearExpectations(void* mock_obj) in VerifyAndClearExpectations()
630 bool Mock::VerifyAndClear(void* mock_obj) in VerifyAndClear()
640 bool Mock::VerifyAndClearExpectationsLocked(void* mock_obj) in VerifyAndClearExpectationsLocked()
[all …]
/freebsd/contrib/googletest/googlemock/include/gmock/
H A Dgmock-nice-strict.h114 ::testing::Mock::AllowUninterestingCalls(reinterpret_cast<uintptr_t>(this)); in NiceMockImpl()
118 ::testing::Mock::UnregisterCallReaction(reinterpret_cast<uintptr_t>(this)); in ~NiceMockImpl()
126 ::testing::Mock::WarnUninterestingCalls(reinterpret_cast<uintptr_t>(this)); in NaggyMockImpl()
130 ::testing::Mock::UnregisterCallReaction(reinterpret_cast<uintptr_t>(this)); in ~NaggyMockImpl()
138 ::testing::Mock::FailUninterestingCalls(reinterpret_cast<uintptr_t>(this)); in StrictMockImpl()
142 ::testing::Mock::UnregisterCallReaction(reinterpret_cast<uintptr_t>(this)); in ~StrictMockImpl()
H A Dgmock-spec-builders.h364 class GTEST_API_ Mock {
1472 Mock::UnregisterLocked(this); in ~FunctionMocker()
1563 Mock::RegisterUseByOnCallOrExpectCall(MockObject(), file, line); in AddNewOnCallSpec()
1574 Mock::RegisterUseByOnCallOrExpectCall(MockObject(), file, line); in AddNewExpectation()
1802 Mock::GetReactionOnUninterestingCalls(MockObject()); in InvokeWith()
/freebsd/contrib/googletest/googlemock/
H A DCMakeLists.txt5 # CMake build script for Google Mock.
7 # To run the tests for Google Mock itself on Linux, use 'make test' or
11 option(gmock_build_tests "Build all of Google Mock's own tests." OFF)
67 # Adds Google Mock's and Google Test's header directories to the search path.
82 # Google Mock libraries. We build them using more strict warnings than what
83 # are used for other targets, to ensure that Google Mock can be compiled by
120 # Google Mock's own tests.
123 # Google Mock itself.
191 # Tests that a binary can be built with Google Mock as a shared library. On
/freebsd/contrib/googletest/docs/
H A Dgmock_cheat_sheet.md3 ## Defining a Mock Class
80 ### Specifying Calling Conventions for Mock Functions
192 ## Verifying and Resetting a Mock
198 using ::testing::Mock;
202 Mock::VerifyAndClearExpectations(&mock_obj);
207 Mock::VerifyAndClear(&mock_obj);
219 Mock::AllowLeak(&mock_obj);
222 ## Mock Classes
241 …EVEL` | Sets the default verbosity level (`info`, `warning`, or `error`) of Google Mock messages. |
H A Dgmock_cook_book.md13 ## Creating Mock Classes
15 Mock classes are defined as normal classes, using the `MOCK_METHOD` macro to
1827 ### Returning References from Mock Methods
1847 ### Returning Live Values from Mock Methods
1856 `ReturnRef(x)`, as shown in the previous recipe ("Returning References from Mock
2057 ### Changing a Mock Object's Behavior Based on the State
2146 ### Setting the Default Actions for a Mock Method
2334 ### Invoking an Argument of the Mock Function
2961 with `Mock::VerifyAndClearExpectations(&mock_object)`:
2965 using ::testing::Mock;
[all …]
H A Dgmock_for_dummies.md90 ## A Case for Mock Turtles
136 ## Writing the Mock Class
/freebsd/contrib/llvm-project/lldb/docs/_lldb/
H A D__init__.py1 from unittest.mock import Mock
9 sys.modules[module_name] = Mock()
/freebsd/contrib/googletest/
H A DCONTRIBUTING.md47 ## The Google Test and Google Mock Communities
51 GitHub repository. Likewise, the Google Mock community exists primarily through
88 If you plan to contribute a patch, you need to build Google Test, Google Mock,
95 ## Developing Google Test and Google Mock
99 ### Testing Google Test and Google Mock Themselves argument
111 To choose between building only Google Test or Google Mock, you may modify your
116 cmake -Dgmock_build_tests=ON ${GMOCK_DIR} # sets up Google Mock tests
128 Next, you can build Google Test and / or Google Mock and all desired tests. On
H A DBUILD.bazel85 # Google Test including Google Mock
/freebsd/contrib/googletest/googletest/cmake/
H A Dinternal_utils.cmake2 # Google Mock.
6 # - This file will be run twice when building Google Mock (once via
7 # Google Test's CMakeLists.txt, and once via Google Mock's).
12 # Test and Google Mock's option() definitions, and thus must be
58 # Google Mock. You can tweak these definitions to suit your need. A
/freebsd/crypto/openssl/test/recipes/80-test_cmp_http_data/Mock/
H A Dtest.cnf17 [Mock] # the built-in OpenSSL CMP mock server
/freebsd/tests/sys/fs/fusefs/
H A Daccess.cc49 Mock::VerifyAndClearExpectations(m_mock); in SetUp()
/freebsd/share/misc/
H A Dcommitters-doc.dot48 jim [label="Jim Mock\njim@FreeBSD.org\n1999/08/11\n2003/12/15"]
/freebsd/contrib/googletest/docs/reference/
H A Dmocking.md492 Mock objects of type `T` by default behave the same way as `NaggyMock<T>`.
/freebsd/crypto/openssl/doc/man1/
H A Dopenssl-cmp.pod.in115 Mock server options:
966 =head2 Mock server options
/freebsd/usr.bin/calendar/calendars/
H A Dcalendar.freebsd317 07/28 Jim Mock <jim@FreeBSD.org> born in Bethlehem, Pennsylvania, United States, 1974