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

Unified Diff: components/proximity_auth/proximity_auth_test_util.h

Issue 2560713002: Move RemoteDevice from //components/proximity_auth to //components/cryptauth so that it can be easi… (Closed)
Patch Set: Add cryptauth dependency. Created 4 years 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_test_util.h
diff --git a/components/proximity_auth/proximity_auth_test_util.h b/components/proximity_auth/proximity_auth_test_util.h
index 5e3346cf5da5fdc83b3a6976d97ad83435bc2d84..40a2764f300a1aea31cb26ea7632511f7e7c10e9 100644
--- a/components/proximity_auth/proximity_auth_test_util.h
+++ b/components/proximity_auth/proximity_auth_test_util.h
@@ -5,7 +5,7 @@
#ifndef COMPONENTS_PROXIMITY_AUTH_PROXIMITY_AUTH_TEST_UTIL_H
#define COMPONENTS_PROXIMITY_AUTH_PROXIMITY_AUTH_TEST_UTIL_H
-#include "components/proximity_auth/remote_device.h"
+#include "components/cryptauth/remote_device.h"
namespace proximity_auth {
@@ -18,20 +18,21 @@ extern const char kTestRemoteDevicePSK[];
extern const char kTestRemoteDeviceSignInChallenge[];
// Returns a BLE RemoteDevice used for tests.
-inline RemoteDevice CreateLERemoteDeviceForTest() {
- return RemoteDevice(kTestRemoteDeviceUserId, kTestRemoteDeviceName,
- kTestRemoteDevicePublicKey, RemoteDevice::BLUETOOTH_LE,
- kTestRemoteDeviceBluetoothAddress, kTestRemoteDevicePSK,
- kTestRemoteDeviceSignInChallenge);
+inline cryptauth::RemoteDevice CreateLERemoteDeviceForTest() {
+ return cryptauth::RemoteDevice(
+ kTestRemoteDeviceUserId, kTestRemoteDeviceName,
+ kTestRemoteDevicePublicKey, cryptauth::RemoteDevice::BLUETOOTH_LE,
+ kTestRemoteDeviceBluetoothAddress, kTestRemoteDevicePSK,
+ kTestRemoteDeviceSignInChallenge);
}
// Returns a classic Bluetooth RemoteDevice used for tests.
-inline RemoteDevice CreateClassicRemoteDeviceForTest() {
- return RemoteDevice(kTestRemoteDeviceUserId, kTestRemoteDeviceName,
- kTestRemoteDevicePublicKey,
- RemoteDevice::BLUETOOTH_CLASSIC,
- kTestRemoteDeviceBluetoothAddress, kTestRemoteDevicePSK,
- kTestRemoteDeviceSignInChallenge);
+inline cryptauth::RemoteDevice CreateClassicRemoteDeviceForTest() {
+ return cryptauth::RemoteDevice(
+ kTestRemoteDeviceUserId, kTestRemoteDeviceName,
+ kTestRemoteDevicePublicKey, cryptauth::RemoteDevice::BLUETOOTH_CLASSIC,
+ kTestRemoteDeviceBluetoothAddress, kTestRemoteDevicePSK,
+ kTestRemoteDeviceSignInChallenge);
}
} // namespace proximity_auth
« no previous file with comments | « components/proximity_auth/proximity_auth_system_unittest.cc ('k') | components/proximity_auth/proximity_monitor_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698