Lines Matching refs:observer

121   TestObserver observer(adapter_.get());  in TEST_F()  local
135 EXPECT_EQ(bluetooth::ADAPTER_STATE_OFF, observer.prev_state()); in TEST_F()
136 EXPECT_EQ(bluetooth::ADAPTER_STATE_TURNING_ON, observer.cur_state()); in TEST_F()
147 EXPECT_EQ(bluetooth::ADAPTER_STATE_TURNING_ON, observer.prev_state()); in TEST_F()
148 EXPECT_EQ(bluetooth::ADAPTER_STATE_ON, observer.cur_state()); in TEST_F()
155 TestObserver observer(adapter_.get()); in TEST_F() local
169 EXPECT_EQ(bluetooth::ADAPTER_STATE_OFF, observer.prev_state()); in TEST_F()
170 EXPECT_EQ(bluetooth::ADAPTER_STATE_ON, observer.cur_state()); in TEST_F()
175 EXPECT_EQ(bluetooth::ADAPTER_STATE_ON, observer.prev_state()); in TEST_F()
176 EXPECT_EQ(bluetooth::ADAPTER_STATE_TURNING_OFF, observer.cur_state()); in TEST_F()
186 EXPECT_EQ(bluetooth::ADAPTER_STATE_TURNING_OFF, observer.prev_state()); in TEST_F()
187 EXPECT_EQ(bluetooth::ADAPTER_STATE_ON, observer.cur_state()); in TEST_F()
196 EXPECT_EQ(bluetooth::ADAPTER_STATE_TURNING_OFF, observer.prev_state()); in TEST_F()
197 EXPECT_EQ(bluetooth::ADAPTER_STATE_ON, observer.cur_state()); in TEST_F()
201 EXPECT_EQ(bluetooth::ADAPTER_STATE_ON, observer.prev_state()); in TEST_F()
202 EXPECT_EQ(bluetooth::ADAPTER_STATE_OFF, observer.cur_state()); in TEST_F()
253 TestObserver observer(adapter_.get()); in TEST_F() local
264 EXPECT_TRUE(observer.last_connection_state_address().empty()); in TEST_F()
265 EXPECT_FALSE(observer.last_device_connected_state()); in TEST_F()
271 EXPECT_EQ(kDeviceAddr, observer.last_connection_state_address()); in TEST_F()
272 EXPECT_TRUE(observer.last_device_connected_state()); in TEST_F()
278 EXPECT_EQ(kDeviceAddr, observer.last_connection_state_address()); in TEST_F()
279 EXPECT_FALSE(observer.last_device_connected_state()); in TEST_F()