Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(911)

Unified Diff: components/proximity_auth/unlock_manager_impl_unittest.cc

Issue 2899933002: [EasyUnlock] Fix UI shown on lock screen when Bluetooth is disabled. (Closed)
Patch Set: [EasyUnlock] Fix UI shown on lock screen when Bluetooth is disabled. Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/proximity_auth/unlock_manager_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/proximity_auth/unlock_manager_impl_unittest.cc
diff --git a/components/proximity_auth/unlock_manager_impl_unittest.cc b/components/proximity_auth/unlock_manager_impl_unittest.cc
index 004ae9d8024de72811c8a0e0f8eb0410c3d5f8c5..bc88d7c853b3172f6fc2a9f45c61f4b4d1f2263b 100644
--- a/components/proximity_auth/unlock_manager_impl_unittest.cc
+++ b/components/proximity_auth/unlock_manager_impl_unittest.cc
@@ -519,6 +519,18 @@ TEST_F(ProximityAuthUnlockManagerImplTest,
}
TEST_F(ProximityAuthUnlockManagerImplTest,
+ OnLifeCycleStateChanged_FindingConnection_BluetoothAdapterOff) {
+ CreateUnlockManager(ProximityAuthSystem::SESSION_LOCK);
+ unlock_manager_->SetRemoteDeviceLifeCycle(&life_cycle_);
+
+ EXPECT_CALL(proximity_auth_client_,
+ UpdateScreenlockState(ScreenlockState::NO_BLUETOOTH));
+ ON_CALL(*bluetooth_adapter_, IsPowered()).WillByDefault(Return(false));
+ life_cycle_.ChangeState(RemoteDeviceLifeCycle::State::FINDING_CONNECTION);
+ unlock_manager_->OnLifeCycleStateChanged();
+}
+
+TEST_F(ProximityAuthUnlockManagerImplTest,
OnLifeCycleStateChanged_Authenticating_UpdatesScreenlockState) {
CreateUnlockManager(ProximityAuthSystem::SESSION_LOCK);
unlock_manager_->SetRemoteDeviceLifeCycle(&life_cycle_);
« no previous file with comments | « components/proximity_auth/unlock_manager_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698