Home
last modified time | relevance | path

Searched refs:WillByDefault (Results 1 – 25 of 31) sorted by relevance

12

/third_party/googletest/googlemock/test/
Dgmock_link_test.h398 ON_CALL(mock, VoidFromString(_)).WillByDefault(Return()); in TEST()
479 ON_CALL(mock, VoidFromString(_)).WillByDefault(Return()); in TEST()
486 ON_CALL(mock, VoidFromString(A<char*>())).WillByDefault(Return()); in TEST()
494 ON_CALL(mock, VoidFromString(Eq(p))).WillByDefault(Return()); in TEST()
496 .WillByDefault(Return()); in TEST()
503 ON_CALL(mock, VoidFromFloat(Lt(1.0f))).WillByDefault(Return()); in TEST()
504 ON_CALL(mock, VoidFromFloat(Gt(1.0f))).WillByDefault(Return()); in TEST()
505 ON_CALL(mock, VoidFromFloat(Le(1.0f))).WillByDefault(Return()); in TEST()
506 ON_CALL(mock, VoidFromFloat(Ge(1.0f))).WillByDefault(Return()); in TEST()
507 ON_CALL(mock, VoidFromFloat(Ne(1.0f))).WillByDefault(Return()); in TEST()
[all …]
Dgmock-spec-builders_test.cc214 ON_CALL(cc, Method()).WillByDefault(Return(42)); in TEST()
258 .WillByDefault(Return()); in TEST()
261 .WillByDefault(Return()); in TEST()
271 .WillByDefault(Return(Result())); in TEST()
289 .WillByDefault(Return()) in TEST()
290 .WillByDefault(Return()); in TEST()
770 .WillByDefault(Return(1)); in TEST()
780 .WillByDefault(Return(3)); in TEST()
782 .WillByDefault(Return(2)); in TEST()
784 .WillByDefault(Return(1)); in TEST()
[all …]
Dgmock_output_test_.cc214 .WillByDefault(Return(true)); // Default action #1 in TEST_F()
216 .WillByDefault(Return(false)); // Default action #2 in TEST_F()
226 .WillByDefault(Return(true)); // Default action #1 in TEST_F()
228 .WillByDefault(Return(false)); // Default action #2 in TEST_F()
241 .WillByDefault(Return(true)); // Default action #1 in TEST_F()
243 .WillByDefault(Return(false)); // Default action #2 in TEST_F()
251 .WillByDefault(Return(true)); // Default action #1 in TEST_F()
265 ON_CALL(*foo1, Bar(_, _, _)).WillByDefault(Return('a')); in TEST_F()
Dgmock_stress_test.cc72 .WillByDefault(Return(1)); in TestConcurrentMockObjects()
74 .WillByDefault(Return('b')); in TestConcurrentMockObjects()
76 .WillByDefault(Return('a')); in TestConcurrentMockObjects()
123 .WillByDefault(Return(1)); in TestConcurrentCallsOnSameObject()
Dgmock_leak_test_.cc74 ON_CALL(*foo, DoThis()).WillByDefault(Return()); in TEST()
87 ON_CALL(*foo1, DoThis()).WillByDefault(Return()); in TEST()
Dgmock-nice-strict_test.cc166 .WillByDefault(Invoke(raw_foo, &MockFoo::Delete)); in TEST()
214 .WillByDefault(Invoke(nice_foo, &MockFoo::Delete)); in TEST()
352 .WillByDefault(Invoke(naggy_foo, &MockFoo::Delete)); in TEST()
475 .WillByDefault(Invoke(strict_foo, &MockFoo::Delete)); in TEST()
/third_party/skia/third_party/externals/abseil-cpp/absl/random/
Dmocking_bit_gen_test.cc83 .WillByDefault(Return(20)); in TEST()
88 .WillByDefault(Return(5.0)); in TEST()
93 .WillByDefault(Return(42)); in TEST()
97 ON_CALL(absl::MockPoisson<int>(), Call(gen, 1.0)).WillByDefault(Return(500)); in TEST()
102 .WillByDefault(Return(true)); in TEST()
107 .WillByDefault(Return(1221)); in TEST()
112 .WillByDefault(Return(0.001)); in TEST()
117 .WillByDefault(Return(2040)); in TEST()
126 .WillByDefault(Return(1221)); in TEST()
146 .WillByDefault(Return(200)); in TEST()
[all …]
/third_party/skia/third_party/externals/dawn/src/tests/unittests/native/mocks/
DBindGroupMock.h28 ON_CALL(*this, DestroyImpl).WillByDefault([this]() { in BindGroupMock()
DCommandBufferMock.h28 ON_CALL(*this, DestroyImpl).WillByDefault([this]() { in CommandBufferMock()
DPipelineLayoutMock.h28 ON_CALL(*this, DestroyImpl).WillByDefault([this]() { in PipelineLayoutMock()
DSamplerMock.h28 ON_CALL(*this, DestroyImpl).WillByDefault([this]() { in SamplerMock()
DQuerySetMock.h28 ON_CALL(*this, DestroyImpl).WillByDefault([this]() { in QuerySetMock()
DExternalTextureMock.h28 ON_CALL(*this, DestroyImpl).WillByDefault([this]() { in ExternalTextureMock()
DBindGroupLayoutMock.h28 ON_CALL(*this, DestroyImpl).WillByDefault([this]() { in BindGroupLayoutMock()
DComputePipelineMock.h28 ON_CALL(*this, DestroyImpl).WillByDefault([this]() { in ComputePipelineMock()
DRenderPipelineMock.h28 ON_CALL(*this, DestroyImpl).WillByDefault([this]() { in RenderPipelineMock()
DSwapChainMock.h28 ON_CALL(*this, DestroyImpl).WillByDefault([this]() { in SwapChainMock()
DTextureMock.h29 ON_CALL(*this, DestroyImpl).WillByDefault([this]() { in TextureMock()
DShaderModuleMock.cpp20 ON_CALL(*this, DestroyImpl).WillByDefault([this]() { in ShaderModuleMock()
DBufferMock.h28 ON_CALL(*this, DestroyImpl).WillByDefault([this]() { in BufferMock()
/third_party/googletest/docs/reference/
Dmocking.md342 .WillByDefault(action); // Required
370 .WillByDefault(Return(true));
378 #### WillByDefault {#ON_CALL.WillByDefault}
380 `.WillByDefault(`*`action`*`)`
396 .WillByDefault(Return("hello"));
399 The action specified by `WillByDefault` is superseded by the actions specified
404 The `WillByDefault` clause must be used exactly once with each `ON_CALL`
/third_party/skia/third_party/externals/dawn/src/tests/unittests/native/
DDestroyObjectTests.cpp258 ON_CALL(*computePipelineMock, ComputeContentHash).WillByDefault(Return(hash)); in TEST_F()
365 ON_CALL(*renderPipelineMock, ComputeContentHash).WillByDefault(Return(hash)); in TEST_F()
623 ON_CALL(*computePipelineMock, ComputeContentHash).WillByDefault(Return(hash)); in TEST_F()
670 ON_CALL(*renderPipelineMock, ComputeContentHash).WillByDefault(Return(hash)); in TEST_F()
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/
DFramebufferImpl_mock.h72 .WillByDefault(::testing::Return(gl::FramebufferStatus::Complete())); in MakeFramebufferMock()
/third_party/flutter/skia/third_party/externals/angle2/src/libANGLE/renderer/
DFramebufferImpl_mock.h63 ON_CALL(*framebufferImpl, checkStatus(testing::_)).WillByDefault(::testing::Return(true)); in MakeFramebufferMock()
/third_party/googletest/docs/
Dgmock_cheat_sheet.md118 .WillByDefault(Return(1));

12