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

Unified Diff: components/proximity_auth/proximity_monitor_impl_unittest.cc

Issue 1356943004: Add RemoteDeviceLoader to create RemoteDevice from CryptAuth data. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@webui
Patch Set: Created 5 years, 3 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
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 12f74ed15b9f741a2d363e589efa1396a34a953d..a1784539de170f851e447a4213e08a1193056136 100644
--- a/components/proximity_auth/proximity_monitor_impl_unittest.cc
+++ b/components/proximity_auth/proximity_monitor_impl_unittest.cc
@@ -29,6 +29,7 @@ using testing::SaveArg;
namespace proximity_auth {
namespace {
+const char kRemoteDeviceUserId[] = "example@gmail.com";
const char kBluetoothAddress[] = "AA:BB:CC:DD:EE:FF";
const char kRemoteDevicePublicKey[] = "Remote Public Key";
const char kRemoteDeviceName[] = "LGE Nexus 5";
@@ -82,7 +83,8 @@ class ProximityAuthProximityMonitorImplTest : public testing::Test {
kBluetoothAddress,
false /* paired */,
true /* connected */),
- monitor_(RemoteDevice(kRemoteDeviceName,
+ monitor_(RemoteDevice(kRemoteDeviceUserId,
+ kRemoteDeviceName,
kRemoteDevicePublicKey,
kBluetoothAddress,
kPersistentSymmetricKey),
@@ -534,8 +536,8 @@ TEST_F(ProximityAuthProximityMonitorImplTest,
RecordProximityMetricsOnAuthSuccess_UnknownValues) {
// Note: A device without a recorded name will have its Bluetooth address as
// its name.
- RemoteDevice unnamed_remote_device(kBluetoothAddress, kRemoteDevicePublicKey,
- kBluetoothAddress,
+ RemoteDevice unnamed_remote_device(kRemoteDeviceUserId, kBluetoothAddress,
+ kRemoteDevicePublicKey, kBluetoothAddress,
kPersistentSymmetricKey);
scoped_ptr<base::TickClock> clock(new base::SimpleTestTickClock());

Powered by Google App Engine
This is Rietveld 408576698