Home
last modified time | relevance | path

Searched refs:observer2 (Results 1 – 7 of 7) sorted by relevance

/external/cronet/base/power_monitor/
Dpower_monitor_unittest.cc148 PowerMonitorTestObserver observer2; in TEST_F() local
156 PowerMonitor::AddPowerSuspendObserver(&observer2); in TEST_F()
161 EXPECT_EQ(observer2.suspends(), 1); in TEST_F()
163 EXPECT_EQ(observer2.resumes(), 0); in TEST_F()
167 EXPECT_EQ(observer2.resumes(), 1); in TEST_F()
170 PowerMonitor::RemovePowerSuspendObserver(&observer2); in TEST_F()
175 PowerMonitorTestObserver observer2; in TEST_F() local
183 PowerMonitor::AddPowerStateObserver(&observer2); in TEST_F()
187 EXPECT_EQ(observer2.power_state_changes(), 0); in TEST_F()
190 EXPECT_EQ(observer2.power_state_changes(), 1); in TEST_F()
[all …]
Dbattery_state_sampler_unittest.cc232 TestObserver observer2; in TEST() local
233 battery_state_sampler.AddObserver(&observer2); in TEST()
234 EXPECT_EQ(observer2.battery_state(), kTestBatteryState1); in TEST()
239 EXPECT_EQ(observer2.battery_state(), kTestBatteryState2); in TEST()
/external/cronet/base/sampling_heap_profiler/
Dpoisson_allocation_sampler_unittest.cc121 DummySamplesObserver* observer2);
124 DummySamplesObserver* observer2);
238 DummySamplesObserver* observer2) { in AddSamplesObservers() argument
244 PoissonAllocationSampler::Get()->AddSamplesObserver(observer2); in AddSamplesObservers()
252 DummySamplesObserver* observer2) { in RemoveSamplesObservers() argument
261 PoissonAllocationSampler::Get()->RemoveSamplesObserver(observer2); in RemoveSamplesObservers()
/external/openscreen/osp/impl/
Dservice_listener_impl_unittest.cc368 MockObserver observer2; in TEST_F() local
373 EXPECT_CALL(observer2, OnStarted()).Times(0); in TEST_F()
376 service_listener_->AddObserver(&observer2); in TEST_F()
380 EXPECT_CALL(observer2, OnSearching()); in TEST_F()
383 EXPECT_CALL(observer2, OnStarted()); in TEST_F()
390 EXPECT_CALL(observer2, OnSuspended()); in TEST_F()
393 service_listener_->RemoveObserver(&observer2); in TEST_F()
397 EXPECT_CALL(observer2, OnStarted()).Times(0); in TEST_F()
/external/cronet/net/third_party/quiche/src/quiche/quic/core/qpack/
Dqpack_header_table_test.cc590 StrictMock<MockObserver> observer2; in TEST_F() local
593 RegisterObserver(2, &observer2); in TEST_F()
595 EXPECT_CALL(observer2, OnInsertCountReachedThreshold); in TEST_F()
603 Mock::VerifyAndClearExpectations(&observer2); in TEST_F()
622 StrictMock<MockObserver> observer2; in TEST_F() local
626 RegisterObserver(2, &observer2); in TEST_F()
633 EXPECT_CALL(observer2, OnInsertCountReachedThreshold); in TEST_F()
/external/webrtc/modules/rtp_rtcp/source/
Drtcp_transceiver_impl_unittest.cc665 StrictMock<MockMediaReceiverRtcpObserver> observer2; in TEST_F() local
669 rtcp_transceiver.AddMediaReceiverRtcpObserver(kRemoteSsrc, &observer2); in TEST_F()
680 EXPECT_CALL(observer2, OnSenderReport(kRemoteSsrc, kRemoteNtp, kRemoteRtp)); in TEST_F()
687 StrictMock<MockMediaReceiverRtcpObserver> observer2; in TEST_F() local
691 rtcp_transceiver.AddMediaReceiverRtcpObserver(kRemoteSsrc, &observer2); in TEST_F()
700 EXPECT_CALL(observer2, OnSenderReport(_, _, _)); in TEST_F()
708 StrictMock<MockMediaReceiverRtcpObserver> observer2; in TEST_F() local
712 rtcp_transceiver.AddMediaReceiverRtcpObserver(kRemoteSsrc2, &observer2); in TEST_F()
723 EXPECT_CALL(observer2, OnSenderReport).Times(0); in TEST_F()
731 StrictMock<MockMediaReceiverRtcpObserver> observer2; in TEST_F() local
[all …]
/external/perfetto/src/tracing/test/
Dapi_integrationtest.cc5334 Observer observer2; in TEST_P() local
5336 perfetto::TrackEvent::AddSessionObserver(&observer2); in TEST_P()
5341 perfetto::TrackEvent::RemoveSessionObserver(&observer2); in TEST_P()
5350 Observer observer2; in TEST_P() local
5352 perfetto::TrackEvent::AddSessionObserver(&observer2); in TEST_P()
5357 perfetto::TrackEvent::RemoveSessionObserver(&observer2); in TEST_P()
5428 Observer observer1, observer2; in TEST_P() local
5430 tracing_module::AddSessionObserver(&observer2); in TEST_P()
5441 EXPECT_FALSE(observer2.start_called); in TEST_P()
5443 tracing_module::RemoveSessionObserver(&observer2); in TEST_P()
[all …]