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

Unified Diff: components/proximity_auth/proximity_auth_system_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: move RemoteDevice creation in tests to util function 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_auth_system_unittest.cc
diff --git a/components/proximity_auth/proximity_auth_system_unittest.cc b/components/proximity_auth/proximity_auth_system_unittest.cc
index 45d17dbf7d690d12418d138926911cde5156500e..b29f85ffa507cd9c5413f49106646983aa1aba74 100644
--- a/components/proximity_auth/proximity_auth_system_unittest.cc
+++ b/components/proximity_auth/proximity_auth_system_unittest.cc
@@ -9,8 +9,10 @@
namespace proximity_auth {
TEST(ProximityAuthSystemTest, GetRemoteDevices) {
- RemoteDevice device1("device1", "public_key1", "bt_addr1", "psk1");
- RemoteDevice device2("device2", "public_key2", "bt_addr2", "psk2");
+ RemoteDevice device1("example@gmail.com", "device1", "public_key1",
+ RemoteDevice::BLUETOOTH_CLASSIC, "bt_addr1", "psk1", "");
+ RemoteDevice device2("example@gmail.com", "device2", "public_key2",
+ RemoteDevice::BLUETOOTH_LE, "bt_addr2", "psk2", "");
std::vector<RemoteDevice> device_list;
device_list.push_back(device1);

Powered by Google App Engine
This is Rietveld 408576698