Home
last modified time | relevance | path

Searched refs:ON_CALL (Results 1 – 25 of 43) sorted by relevance

12

/external/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()
495 ON_CALL(mock, VoidFromString(const_cast<char*>("y"))) 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.cc207 ON_CALL(cc, Method()); in TEST()
214 ON_CALL(cc, Method()).WillByDefault(Return(42)); in TEST()
240 ON_CALL(*pa++, DoA(_)); in TEST()
248 ON_CALL(a, DoA(n++)); in TEST()
257 ON_CALL(a, DoA(5)) in TEST()
259 ON_CALL(a, DoA(_)) in TEST()
268 ON_CALL(a, ReturnResult(_)) in TEST()
279 ON_CALL(a, DoA(5)); in TEST()
288 ON_CALL(a, DoA(5)) in TEST()
769 ON_CALL(b, DoB(1)) in TEST()
[all …]
Dgmock_output_test_.cc213 ON_CALL(foo_, Bar2(_, _)) in TEST_F()
215 ON_CALL(foo_, Bar2(1, _)) in TEST_F()
225 ON_CALL(foo_, Bar2(_, _)) in TEST_F()
227 ON_CALL(foo_, Bar2(1, _)) in TEST_F()
240 ON_CALL(foo_, Bar2(_, _)) in TEST_F()
242 ON_CALL(foo_, Bar2(1, _)) in TEST_F()
250 ON_CALL(foo_, Bar2(_, _)) in TEST_F()
265 ON_CALL(*foo1, Bar(_, _, _)).WillByDefault(Return('a')); in TEST_F()
Dgmock_stress_test.cc71 ON_CALL(foo, Bar(_)) in TestConcurrentMockObjects()
73 ON_CALL(foo, Baz(_, _)) in TestConcurrentMockObjects()
75 ON_CALL(foo, Baz(_, "you")) in TestConcurrentMockObjects()
122 ON_CALL(foo, Bar(_)) 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.cc159 ON_CALL(*raw_foo, DoThis()) in TEST()
207 ON_CALL(*nice_foo, DoThis()) in TEST()
338 ON_CALL(*naggy_foo, DoThis()) in TEST()
445 ON_CALL(*strict_foo, DoThis()) in TEST()
/external/google-breakpad/src/testing/test/
Dgmock_link_test.h393 ON_CALL(mock, VoidFromString(_)).WillByDefault(Return()); in TEST()
474 ON_CALL(mock, VoidFromString(_)).WillByDefault(Return()); in TEST()
481 ON_CALL(mock, VoidFromString(A<char*>())).WillByDefault(Return()); in TEST()
489 ON_CALL(mock, VoidFromString(Eq(p))).WillByDefault(Return()); in TEST()
490 ON_CALL(mock, VoidFromString(const_cast<char*>("y"))) in TEST()
498 ON_CALL(mock, VoidFromFloat(Lt(1.0f))).WillByDefault(Return()); in TEST()
499 ON_CALL(mock, VoidFromFloat(Gt(1.0f))).WillByDefault(Return()); in TEST()
500 ON_CALL(mock, VoidFromFloat(Le(1.0f))).WillByDefault(Return()); in TEST()
501 ON_CALL(mock, VoidFromFloat(Ge(1.0f))).WillByDefault(Return()); in TEST()
502 ON_CALL(mock, VoidFromFloat(Ne(1.0f))).WillByDefault(Return()); in TEST()
[all …]
Dgmock_output_test_.cc206 ON_CALL(foo_, Bar2(_, _)) in TEST_F()
208 ON_CALL(foo_, Bar2(1, _)) in TEST_F()
218 ON_CALL(foo_, Bar2(_, _)) in TEST_F()
220 ON_CALL(foo_, Bar2(1, _)) in TEST_F()
233 ON_CALL(foo_, Bar2(_, _)) in TEST_F()
235 ON_CALL(foo_, Bar2(1, _)) in TEST_F()
243 ON_CALL(foo_, Bar2(_, _)) in TEST_F()
258 ON_CALL(*foo1, Bar(_, _, _)).WillByDefault(Return('a')); in TEST_F()
Dgmock-spec-builders_test.cc196 ON_CALL(cc, Method()); in TEST()
203 ON_CALL(cc, Method()).WillByDefault(Return(42)); in TEST()
229 ON_CALL(*pa++, DoA(_)); in TEST()
237 ON_CALL(a, DoA(n++)); in TEST()
246 ON_CALL(a, DoA(5)) in TEST()
248 ON_CALL(a, DoA(_)) in TEST()
257 ON_CALL(a, ReturnResult(_)) in TEST()
268 ON_CALL(a, DoA(5)); in TEST()
277 ON_CALL(a, DoA(5)) in TEST()
704 ON_CALL(b, DoB(1)) in TEST()
[all …]
Dgmock_leak_test_.cc75 ON_CALL(*foo, DoThis()).WillByDefault(Return()); in TEST()
88 ON_CALL(*foo1, DoThis()).WillByDefault(Return()); in TEST()
Dgmock_stress_test.cc151 ON_CALL(foo, Bar(_)) in TestConcurrentMockObjects()
153 ON_CALL(foo, Baz(_, _)) in TestConcurrentMockObjects()
155 ON_CALL(foo, Baz(_, "you")) in TestConcurrentMockObjects()
202 ON_CALL(foo, Bar(_)) in TestConcurrentCallsOnSameObject()
Dgmock-nice-strict_test.cc127 ON_CALL(*nice_foo, DoThis()) in TEST()
239 ON_CALL(*strict_foo, DoThis()) in TEST()
/external/perfetto/src/traced/probes/ftrace/
Dftrace_config_muxer_unittest.cc45 ON_CALL(*this, NumberOfCpus()).WillByDefault(Return(1)); in MockFtraceProcfs()
46 ON_CALL(*this, WriteToFile(_, _)).WillByDefault(Return(true)); in MockFtraceProcfs()
47 ON_CALL(*this, ClearFile(_)).WillByDefault(Return(true)); in MockFtraceProcfs()
192 ON_CALL(ftrace, ReadFileIntoString("/root/trace_clock")) in TEST_F()
212 ON_CALL(*mock_table, GetOrCreateEvent(GroupAndName("power", "cpu_frequency"))) in TEST_F()
236 ON_CALL(*mock_table, GetOrCreateEvent(GroupAndName("group_one", "foo"))) in TEST_F()
244 ON_CALL(*mock_table, GetOrCreateEvent(GroupAndName("group_two", "foo"))) in TEST_F()
262 ON_CALL(ftrace, ReadFileIntoString("/root/trace_clock")) in TEST_F()
280 ON_CALL(ftrace, GetEventNamesForGroup("events/sched")) in TEST_F()
288 ON_CALL(*mock_table, GetOrCreateEvent(GroupAndName("sched", "sched_switch"))) in TEST_F()
[all …]
Dftrace_controller_unittest.cc63 ON_CALL(*this, PostTask(_)) in MockTaskRunner()
65 ON_CALL(*this, PostDelayedTask(_, _)) in MockTaskRunner()
139 ON_CALL(*this, NumberOfCpus()).WillByDefault(Return(cpu_count)); in MockFtraceProcfs()
142 ON_CALL(*this, ReadFileIntoString("/root/trace_clock")) in MockFtraceProcfs()
147 ON_CALL(*this, ReadFileIntoString("/root/per_cpu/cpu0/stats")) in MockFtraceProcfs()
152 ON_CALL(*this, ReadFileIntoString("/root/events//not_an_event/format")) in MockFtraceProcfs()
157 ON_CALL(*this, ReadFileIntoString("/root/events/group/bar/format")) in MockFtraceProcfs()
162 ON_CALL(*this, WriteToFile(_, _)).WillByDefault(Return(true)); in MockFtraceProcfs()
163 ON_CALL(*this, ClearFile(_)).WillByDefault(Return(true)); in MockFtraceProcfs()
165 ON_CALL(*this, WriteToFile("/root/tracing_on", _)) in MockFtraceProcfs()
[all …]
Dproto_translation_table_unittest.cc154 ON_CALL(ftrace, ReadPageHeaderFormat()) in TEST_P()
161 ON_CALL(ftrace, ReadEventFormat(_, _)).WillByDefault(Return("")); in TEST_P()
162 ON_CALL(ftrace, ReadEventFormat("group", "foo")) in TEST_P()
371 ON_CALL(ftrace, ReadPageHeaderFormat()) in TEST()
377 ON_CALL(ftrace, ReadEventFormat(_, _)).WillByDefault(Return("")); in TEST()
378 ON_CALL(ftrace, ReadEventFormat("group", "foo")) in TEST()
/external/webrtc/webrtc/modules/audio_coding/neteq/mock/
Dmock_external_decoder_pcm16b.h54 ON_CALL(*this, DecodeInternal(_, _, _, _, _)) in MockExternalPcm16B()
56 ON_CALL(*this, HasDecodePlc()) in MockExternalPcm16B()
58 ON_CALL(*this, DecodePlc(_, _)) in MockExternalPcm16B()
60 ON_CALL(*this, Reset()) in MockExternalPcm16B()
62 ON_CALL(*this, IncomingPacket(_, _, _, _, _)) in MockExternalPcm16B()
64 ON_CALL(*this, ErrorCode()) in MockExternalPcm16B()
/external/libbrillo/brillo/message_loops/
Dmock_message_loop.h35 ON_CALL(*this, PostDelayedTask(::testing::_, ::testing::_, ::testing::_)) in MockMessageLoop()
43 ON_CALL(*this, WatchFileDescriptor( in MockMessageLoop()
51 ON_CALL(*this, CancelTask(::testing::_)) in MockMessageLoop()
54 ON_CALL(*this, RunOnce(::testing::_)) in MockMessageLoop()
/external/webrtc/webrtc/modules/rtp_rtcp/source/
Drtp_payload_registry_unittest.cc155 ON_CALL(*mock_payload_strategy_, PayloadIsCompatible(_, _, _, _)) in TEST_F()
166 ON_CALL(*mock_payload_strategy_, PayloadIsCompatible(_, _, _, _)) in TEST_F()
168 ON_CALL(*mock_payload_strategy_, CodecsMustBeUnique()) in TEST_F()
190 ON_CALL(*mock_payload_strategy_, PayloadIsCompatible(_, _, _, _)) in TEST_F()
/external/v8/tools/clang/rewrite_to_chrome_style/tests/
Dgmock-original.cc30 ON_CALL(mockedInterface, myMethod(1)) in test()
Dgmock-expected.cc30 ON_CALL(mocked_interface, MyMethod(1)) in Test()
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/IR/
DPassBuilderCallbacksTest.cpp105 ON_CALL(static_cast<DerivedT &>(*this), in setDefaults()
108 ON_CALL(static_cast<DerivedT &>(*this), invalidate(_, _, _)) in setDefaults()
153 ON_CALL(static_cast<DerivedT &>(*this), in setDefaults()
/external/webrtc/webrtc/modules/audio_processing/
Daudio_processing_impl_unittest.cc38 ON_CALL(mock, InitializeLocked()) in TEST()
/external/libbrillo/policy/
Dmock_device_policy.h51 ON_CALL(*this, LoadPolicy()).WillByDefault(testing::Return(true)); in MockDevicePolicy()
/external/perfetto/src/perfetto_cmd/
Drate_limiter_unittest.cc42 ON_CALL(*this, LoadState(_)) in MockRateLimiter()
44 ON_CALL(*this, SaveState(_)) in MockRateLimiter()
/external/webrtc/webrtc/modules/audio_conference_mixer/test/
Daudio_conference_mixer_unittest.cc34 ON_CALL(*this, GetAudioFrame(_, _)) in MockMixerParticipant()

12