Searched refs:NiceMock (Results 1 – 13 of 13) sorted by relevance
/third_party/googletest/googlemock/test/ |
D | gmock-nice-strict_test.cc | 57 using testing::NiceMock; 202 NiceMock<MockFoo> nice_foo; in TEST() 213 NiceMock<MockFoo>* const nice_foo = new NiceMock<MockFoo>; in TEST() 226 NiceMock<MockFoo> nice_foo; in TEST() 242 NiceMock<MockFoo> nice_foo; in TEST() 252 NiceMock<MockFoo> nice_foo; in TEST() 267 NiceMock<MockFoo> nice_foo; in TEST() 276 NiceMock<MockBar> nice_bar("hi"); in TEST() 286 NiceMock<MockBar> nice_bar('a', 'b', "c", "d", 'e', 'f', "g", "h", true, in TEST() 295 NiceMock<MockFoo>* leaked = new NiceMock<MockFoo>; in TEST() [all …]
|
/third_party/googletest/googlemock/include/gmock/ |
D | gmock-nice-strict.h | 74 class NiceMock; variable 82 std::true_type StrictnessModifierProbe(const NiceMock<T>&); 149 class GTEST_INTERNAL_EMPTY_BASE_CLASS NiceMock 158 NiceMock() : MockClass() { in NiceMock() function 171 explicit NiceMock(A&& arg) : MockClass(std::forward<A>(arg)) { in NiceMock() function 177 NiceMock(TArg1&& arg1, TArg2&& arg2, An&&... args) in NiceMock() function 185 NiceMock(const NiceMock&) = delete; 186 NiceMock& operator=(const NiceMock&) = delete;
|
/third_party/skia/third_party/externals/angle2/src/libANGLE/ |
D | Image_unittest.cpp | 21 using ::testing::NiceMock; 34 NiceMock<rx::MockGLFactory> mockGLFactory; in TEST() 35 NiceMock<rx::MockEGLFactory> mockEGLFactory; in TEST() 103 NiceMock<rx::MockGLFactory> mockGLFactory; in TEST() 104 NiceMock<rx::MockEGLFactory> mockEGLFactory; in TEST()
|
D | Fence_unittest.cpp | 51 NiceMock<rx::MockGLFactory> factory; 108 NiceMock<rx::MockGLFactory> factory;
|
D | Surface_unittest.cpp | 62 NiceMock<MockEGLFactory> factory; in TEST()
|
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/ |
D | FramebufferImpl_mock.h | 66 inline ::testing::NiceMock<MockFramebufferImpl> *MakeFramebufferMock() in MakeFramebufferMock() 68 ::testing::NiceMock<MockFramebufferImpl> *framebufferImpl = in MakeFramebufferMock() 69 new ::testing::NiceMock<MockFramebufferImpl>(); in MakeFramebufferMock()
|
D | ProgramImpl_mock.h | 75 inline ::testing::NiceMock<MockProgramImpl> *MakeProgramMock() in MakeProgramMock() 77 ::testing::NiceMock<MockProgramImpl> *programImpl = new ::testing::NiceMock<MockProgramImpl>(); in MakeProgramMock()
|
/third_party/googletest/docs/reference/ |
D | mocking.md | 437 ### NiceMock {#NiceMock} 439 `::testing::NiceMock<T>` 443 template parameter `T` is any mock class, except for another `NiceMock`, 446 Usage of `NiceMock<T>` is analogous to usage of `T`. `NiceMock<T>` is a subclass 448 addition, `NiceMock<T>` can be constructed with any arguments that a constructor 455 using ::testing::NiceMock; 457 NiceMock<MockClass> my_mock("some", "args"); 462 `NiceMock<T>` only works for mock methods defined using the `MOCK_METHOD` macro 466 `NiceMock<T>` might not work correctly if the destructor of `T` is not virtual. 474 template parameter `T` is any mock class, except for another `NiceMock`, [all …]
|
/third_party/skia/third_party/externals/abseil-cpp/absl/random/ |
D | mocking_bit_gen.h | 186 std::is_same<SelfT, ::testing::NiceMock<absl::MockingBitGen>>::value, 187 ::testing::NiceMock<MockFnType>,
|
D | mocking_bit_gen_test.cc | 351 TEST(MockingBitGen, NiceMock) { in TEST() argument 352 ::testing::NiceMock<absl::MockingBitGen> gen; in TEST()
|
/third_party/googletest/docs/ |
D | gmock_cheat_sheet.md | 39 using ::testing::NiceMock; 43 NiceMock<MockFoo> nice_foo; // The type is a subclass of MockFoo.
|
D | gmock_cook_book.md | 412 warning. However, if you rewrite your test to use `NiceMock<MockFoo>` instead, 416 using ::testing::NiceMock; 419 NiceMock<MockFoo> mock_foo; 425 `NiceMock<MockFoo>` is a subclass of `MockFoo`, so it can be used wherever 429 `NiceMock<MockFoo>` "inherits" `MockFoo`'s constructors: 432 using ::testing::NiceMock; 435 NiceMock<MockFoo> mock_foo(5, "hi"); // Calls MockFoo(5, "hi"). 458 NOTE: `NiceMock` and `StrictMock` only affects *uninteresting* calls (calls of 466 1. `NiceMock<MockFoo>` and `StrictMock<MockFoo>` only work for mock methods 470 particular, nesting `NiceMock` and `StrictMock` (e.g. [all …]
|
/third_party/protobuf/src/google/protobuf/util/internal/ |
D | protostream_objectsource_test.cc | 284 ::testing::NiceMock<MockObjectWriter> mock_;
|