Searched refs:control_callback (Results 1 – 1 of 1) sorted by relevance
118 static std::shared_ptr<WakelockCallback> control_callback = nullptr; variable145 if (control_callback == nullptr) { in SetUp()146 control_callback = SharedRefBase::make<WakelockCallback>(); in SetUp()149 … control_service_->registerWakelockCallback(control_callback, kTestWakelockName, &is_registered); in SetUp()154 control_callback->net_acquired_count = 0; in SetUp()168 ASSERT_EQ(control_callback->net_acquired_count, 0); in TEST_F()175 ASSERT_EQ(control_callback->net_acquired_count, 1); in TEST_F()182 ASSERT_EQ(control_callback->net_acquired_count, 0); in TEST_F()186 ASSERT_EQ(control_callback->net_acquired_count, 0); in TEST_F()193 ASSERT_EQ(control_callback->net_acquired_count, 1); in TEST_F()[all …]