Home
last modified time | relevance | path

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

12

/freebsd-13.1/contrib/googletest/googlemock/test/
H A Dgmock_link_test.h212 Mock() {} in Mock() function
248 Mock mock; in TEST()
256 Mock mock; in TEST()
265 Mock mock; in TEST()
273 Mock mock; in TEST()
282 Mock mock; in TEST()
291 Mock mock; in TEST()
300 Mock mock; in TEST()
313 Mock mock; in TEST()
325 Mock mock; in TEST()
[all …]
H A Dgmock-nice-strict_test.cc41 class Mock { class
43 Mock() {} in Mock() function in Mock
48 GTEST_DISALLOW_COPY_AND_ASSIGN_(Mock);
283 Mock::AllowLeak(leaked);
306 NiceMock< ::Mock> nice;
391 Mock::AllowLeak(leaked);
414 NaggyMock< ::Mock> naggy;
480 Mock::AllowLeak(leaked);
503 StrictMock< ::Mock> strict;
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:
49 Google Mock tried the following 1 expectation, but it didn't match:
67 Mock function called more times than expected - returning directly.
93 Google Mock tried the following 2 expectations, but none matched:
114 Google Mock tried the following 2 expectations, but none matched:
135 Google Mock tried the following 2 expectations, but none matched:
174 Google Mock tried the following 1 expectation, but it didn't match:
190 Google Mock tried the following 1 expectation, but it didn't match:
[all …]
H A Dgmock-spec-builders_test.cc87 using testing::Mock;
2293 Mock::AllowLeak(a); in TEST()
2298 Mock::AllowLeak(a); in TEST()
2306 Mock::AllowLeak(a); in TEST()
2311 Mock::AllowLeak(a); in TEST()
2319 Mock::AllowLeak(a); in TEST()
2326 Mock::AllowLeak(a); in TEST()
2438 Mock::VerifyAndClear(&b); in TEST()
2449 Mock::VerifyAndClear(&b); in TEST()
2464 Mock::VerifyAndClear(&b); in TEST()
[all …]
/freebsd-13.1/contrib/googletest/googlemock/include/gmock/
H A Dgmock-generated-nice-strict.h79 ::testing::Mock::AllowUninterestingCalls( in NiceMock()
93 ::testing::Mock::AllowUninterestingCalls( in NiceMock()
101 ::testing::Mock::AllowUninterestingCalls( in NiceMock()
109 ::testing::Mock::AllowUninterestingCalls( in NiceMock()
114 ::testing::Mock::AllowUninterestingCalls( in NiceMock()
120 ::testing::Mock::AllowUninterestingCalls( in NiceMock()
127 ::testing::Mock::AllowUninterestingCalls( in NiceMock()
185 ::testing::Mock::UnregisterCallReaction( in ~NiceMock()
197 ::testing::Mock::WarnUninterestingCalls( in NaggyMock()
211 ::testing::Mock::WarnUninterestingCalls( in NaggyMock()
[all …]
H A Dgmock-generated-nice-strict.h.pump38 // Given a mock class MockFoo that is created using Google Mock,
91 ::testing::Mock::$method(
105 ::testing::Mock::$method(
113 ::testing::Mock::$method(
121 ::testing::Mock::$method(
130 ::testing::Mock::$method(
139 ::testing::Mock::UnregisterCallReaction(
H A Dgmock-spec-builders.h380 class GTEST_API_ Mock {
1484 Mock::UnregisterLocked(this); in ~FunctionMockerBase()
1612 Mock::RegisterUseByOnCallOrExpectCall(MockObject(), file, line); in AddNewOnCallSpec()
1623 Mock::RegisterUseByOnCallOrExpectCall(MockObject(), file, line); in AddNewExpectation()
/freebsd-13.1/contrib/googletest/googlemock/
H A DREADME.md1 ## Google Mock ##
59 * Read the instructions below on how to build Google Mock.
77 ### Using Google Mock Without Google Test ###
86 Google Mock is implemented on top of [Google Test](
126 ### Building Google Mock ###
134 If are using Google Mock with an
138 To make it work for Google Mock you will need to change
205 Mock's own tests. Instead, it just builds the Google Mock library and
236 ### Tweaking Google Mock ###
254 subset of TR1 tuple that's enough for Google Mock's need. Google Mock
[all …]
H A DCHANGES8 * Improvement: Google Mock can now be built as a DLL.
26 * Improvement: the Google Mock Generator can now generate mocks for
30 * Improvement: Google Mock Doctor works better with newer Clang and
45 * Google Mock doctor understands Clang error messages now.
63 * New feature: Google Mock can be safely used in multi-threaded tests
75 * Added GCC 4.0 support for Google Mock Doctor.
76 * Added gmock_all_test.cc for compiling most Google Mock tests
106 * New feature: a script for fusing all Google Mock and Google Test
108 * Improved the Google Mock doctor to diagnose more diseases.
109 * Improved the Google Mock generator script.
[all …]
H A DCMakeLists.txt2 # CMake build script for Google Mock.
4 # To run the tests for Google Mock itself on Linux, use 'make test' or
8 option(gmock_build_tests "Build all of Google Mock's own tests." OFF)
69 # Adds Google Mock's and Google Test's header directories to the search path.
95 # Google Mock libraries. We build them using more strict warnings than what
96 # are used for other targets, to ensure that Google Mock can be compiled by
134 # Google Mock's own tests.
137 # Google Mock itself.
214 # Tests that a binary can be built with Google Mock as a shared library. On
/freebsd-13.1/contrib/googletest/googlemock/docs/
H A DDocumentation.md1 This page lists all documentation markdown files for Google Mock **(the
3 -- **if you use a former version of Google Mock, please read the
7 * [ForDummies](ForDummies.md) -- start here if you are new to Google Mock.
9 * [CookBook](CookBook.md) -- recipes for doing various tasks using Google Mock.
12 To contribute code to Google Mock, read:
15 …* [Pump Manual](../../googletest/docs/PumpManual.md) -- how we generate some of Google Mock's sour…
H A DKnownIssues.md1 As any non-trivial software system, Google Mock has some known limitations and problems. We are wo…
5 ## README contains outdated information on Google Mock's compatibility with other testing framework…
7 …n release 1.1.0 still says that Google Mock only works with Google Test. Actually, you can config…
11 …y issues with these tests, and is not an indication of problems in Google Mock itself. You can sa…
15 This only applies if you manually built and installed Google Test, and then built a Google Mock aga…
H A DFrequentlyAskedQuestions.md14 After version 1.4.0 of Google Mock was released, we had an idea on how
32 // Google Mock.
48 // New matcher definition that works with the latest Google Mock.
70 // Google Mock.
95 // New matcher definition that works with the latest Google Mock.
115 // Google Mock.
134 // New matcher definition that works with the latest Google Mock.
155 // Google Mock.
238 (`...`) arguments) directly in Google Mock.
331 Mock will do the same, including printing the state of relevant
[all …]
H A DForDummies.md17 Using Google Mock involves three basic steps:
23 # Why Google Mock? #
41 We encourage you to use Google Mock as:
49 # A Case for Mock Turtles #
72 # Writing the Mock Class #
87 #include "gmock/gmock.h" // Brings in Google Mock.
145 // The following line must be executed to initialize Google Mock
171 ## Using Google Mock with Any Testing Framework ##
184 This approach has a catch: it makes Google Mock throw an exception
196 Google Test, which works with Google Mock seamlessly (in fact, it is
[all …]
H A DCookBook.md13 # Creating Mock Classes #
1528 from Mock Methods"). However, Google Mock doesn't let you use
2228 # Misc Recipes on Using Google Mock #
2489 using ::testing::Mock;
2501 Mock::VerifyAndClearExpectations(foo);
2628 ## Using Google Mock and Threads ##
2724 ## Gaining Super Vision into Mock Calls ##
2726 You have a test using Google Mock. It fails: Google Mock tells you
2806 ## Fusing Google Mock Source Files ##
2827 # Extending Google Mock #
[all …]
H A DCheatSheet.md3 # Defining a Mock Class #
61 ## Specifying Calling Conventions for Mock Functions ##
76 …1. Import the Google Mock names you need to use. All Google Mock names are in the `testing` namesp…
105 Google Mock has a **built-in default action** for any function that
527 # Verifying and Resetting a Mock #
531 using ::testing::Mock;
535 Mock::VerifyAndClearExpectations(&mock_obj);
540 Mock::VerifyAndClear(&mock_obj);
546 Mock::AllowLeak(&mock_obj);
549 # Mock Classes #
[all …]
H A DDesignDoc.md1 This page discusses the design of new Google Mock features.
10 non-trivial effort to define a custom action in Google Mock. For
138 Google-Mock-defined symbol `param_type` to refer to the type of the
234 …* They are non-standard and not widely installed. Google Mock only depends on standard libraries …
/freebsd-13.1/contrib/googletest/googlemock/src/
H A Dgmock-spec-builders.cc318 Mock::Register(mock_obj, this); in RegisterOwner()
384 Mock::GetReactionOnUninterestingCalls(MockObject()); in UntypedInvokeWith()
670 void Mock::AllowUninterestingCalls(const void* mock_obj) in AllowUninterestingCalls()
677 void Mock::WarnUninterestingCalls(const void* mock_obj) in WarnUninterestingCalls()
684 void Mock::FailUninterestingCalls(const void* mock_obj) in FailUninterestingCalls()
691 void Mock::UnregisterCallReaction(const void* mock_obj) in UnregisterCallReaction()
710 void Mock::AllowLeak(const void* mock_obj) in AllowLeak()
719 bool Mock::VerifyAndClearExpectations(void* mock_obj) in VerifyAndClearExpectations()
728 bool Mock::VerifyAndClear(void* mock_obj) in VerifyAndClear()
764 void Mock::Register(const void* mock_obj, in Register()
[all …]
/freebsd-13.1/contrib/llvm-project/lldb/docs/_lldb/
H A D__init__.py1 from unittest.mock import Mock
9 sys.modules[module_name] = Mock()
/freebsd-13.1/contrib/googletest/
H A DCONTRIBUTING.md46 ## The Google Test and Google Mock Communities ##
51 Likewise, the Google Mock community exists primarily through their own
86 Google Mock, and their own tests from a git checkout, which has
138 ## Developing Google Mock ###
140 This section discusses how to make your own changes to Google Mock.
142 #### Testing Google Mock Itself #### argument
147 the instructions above to configure Google Mock.
152 Once you have successfully configured Google Mock, the build steps are
158 Note that when building your project against Google Mock, you are building
H A DREADME.md27 **Google Mock** is an extension to Google Test for writing and using C++ mock
28 classes. See the separate [Google Mock documentation](googlemock/README.md).
/freebsd-13.1/contrib/googletest/googlemock/scripts/generator/
H A DREADME2 The Google Mock class generator is an application that is part of cppclean.
9 To use the Google Mock class generator, you need to call it
11 to generate a Google Mock class.
/freebsd-13.1/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
51 # Google Mock. You can tweak these definitions to suit your need. A
/freebsd-13.1/contrib/googletest/googlemock/include/gmock/internal/
H A Dgmock-generated-internal-utils.h.pump36 // Google Mock - a framework for writing C++ mock classes.
39 // for implementing Google Mock.
/freebsd-13.1/tests/sys/fs/fusefs/
H A Daccess.cc51 Mock::VerifyAndClearExpectations(m_mock); in SetUp()

12