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

Unified Diff: components/proximity_auth/proximity_monitor_impl_unittest.cc

Issue 2902023004: [EasyUnlock] Reduce RSSI threshold to -70. (Closed)
Patch Set: fix test 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/proximity_monitor_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/proximity_monitor_impl_unittest.cc
diff --git a/components/proximity_auth/proximity_monitor_impl_unittest.cc b/components/proximity_auth/proximity_monitor_impl_unittest.cc
index 80fb6acc27d83790f43ced8b897a56edeed175d4..24fac5c34c23254219e8e4b262eff0f7134bed3b 100644
--- a/components/proximity_auth/proximity_monitor_impl_unittest.cc
+++ b/components/proximity_auth/proximity_monitor_impl_unittest.cc
@@ -38,7 +38,7 @@ const char kRemoteDevicePublicKey[] = "Remote Public Key";
const char kRemoteDeviceName[] = "LGE Nexus 5";
const char kBluetoothAddress[] = "AA:BB:CC:DD:EE:FF";
const char kPersistentSymmetricKey[] = "PSK";
-const int kRssiThreshold = -50;
+const int kRssiThreshold = -70;
class MockProximityMonitorObserver : public ProximityMonitorObserver {
public:
@@ -235,6 +235,8 @@ TEST_F(ProximityAuthProximityMonitorImplTest,
ProvideConnectionInfo({kRssiThreshold - 10, 4, 4});
ProvideConnectionInfo({kRssiThreshold - 20, 4, 4});
ProvideConnectionInfo({kRssiThreshold - 20, 4, 4});
+ ProvideConnectionInfo({kRssiThreshold - 20, 4, 4});
+ ProvideConnectionInfo({kRssiThreshold - 20, 4, 4});
EXPECT_FALSE(monitor_.IsUnlockAllowed());
}
« no previous file with comments | « components/proximity_auth/proximity_monitor_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698