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

Unified Diff: components/proximity_auth/bluetooth_connection_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/bluetooth_connection_unittest.cc
diff --git a/components/proximity_auth/bluetooth_connection_unittest.cc b/components/proximity_auth/bluetooth_connection_unittest.cc
index fb007bab26131ff091b8597c252211ada18dfb0a..c298a8fe0dd8649334ae43885579e1df2493d7b3 100644
--- a/components/proximity_auth/bluetooth_connection_unittest.cc
+++ b/components/proximity_auth/bluetooth_connection_unittest.cc
@@ -29,6 +29,7 @@ using testing::StrictMock;
namespace proximity_auth {
namespace {
+const char kDeviceUserId[] = "example@gmail.com";
const char kDeviceName[] = "Device name";
const char kOtherDeviceName[] = "Other device name";
@@ -77,8 +78,8 @@ class MockBluetoothConnection : public BluetoothConnection {
private:
RemoteDevice CreateRemoteDevice() {
- return RemoteDevice(kDeviceName, kPublicKey, kBluetoothAddress,
- kPersistentSymmetricKey);
+ return RemoteDevice(kDeviceUserId, kDeviceName, kPublicKey,
+ kBluetoothAddress, kPersistentSymmetricKey);
}
DISALLOW_COPY_AND_ASSIGN(MockBluetoothConnection);

Powered by Google App Engine
This is Rietveld 408576698