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

Unified Diff: components/proximity_auth/remote_device_life_cycle_impl_unittest.cc

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/remote_device_life_cycle_impl_unittest.cc
diff --git a/components/proximity_auth/remote_device_life_cycle_impl_unittest.cc b/components/proximity_auth/remote_device_life_cycle_impl_unittest.cc
index a20e8f5c266fbd41adfb110d95eb437a2c98c2a5..913c9efcf0fa5cdda97bd1e3336bd9b523968d1e 100644
--- a/components/proximity_auth/remote_device_life_cycle_impl_unittest.cc
+++ b/components/proximity_auth/remote_device_life_cycle_impl_unittest.cc
@@ -61,7 +61,7 @@ class StubSecureContext : public SecureContext {
class FakeConnectionFinder : public ConnectionFinder {
public:
- FakeConnectionFinder(const RemoteDevice& remote_device)
+ FakeConnectionFinder(const cryptauth::RemoteDevice& remote_device)
: remote_device_(remote_device), connection_(nullptr) {}
~FakeConnectionFinder() override {}
@@ -82,7 +82,7 @@ class FakeConnectionFinder : public ConnectionFinder {
connection_callback_ = connection_callback;
}
- const RemoteDevice remote_device_;
+ const cryptauth::RemoteDevice remote_device_;
FakeConnection* connection_;
@@ -127,7 +127,8 @@ class FakeAuthenticator : public Authenticator {
// Subclass of RemoteDeviceLifeCycleImpl to make it testable.
class TestableRemoteDeviceLifeCycleImpl : public RemoteDeviceLifeCycleImpl {
public:
- TestableRemoteDeviceLifeCycleImpl(const RemoteDevice& remote_device)
+ TestableRemoteDeviceLifeCycleImpl(
+ const cryptauth::RemoteDevice& remote_device)
: RemoteDeviceLifeCycleImpl(remote_device, nullptr),
remote_device_(remote_device) {}
@@ -152,7 +153,7 @@ class TestableRemoteDeviceLifeCycleImpl : public RemoteDeviceLifeCycleImpl {
return std::move(scoped_authenticator);
}
- const RemoteDevice remote_device_;
+ const cryptauth::RemoteDevice remote_device_;
FakeConnectionFinder* connection_finder_;
FakeAuthenticator* authenticator_;
@@ -239,8 +240,9 @@ class ProximityAuthRemoteDeviceLifeCycleImplTest
};
TEST_F(ProximityAuthRemoteDeviceLifeCycleImplTest, GetRemoteDevice) {
- RemoteDevice expected_remote_device = CreateClassicRemoteDeviceForTest();
- RemoteDevice remote_device = life_cycle_.GetRemoteDevice();
+ cryptauth::RemoteDevice expected_remote_device =
+ CreateClassicRemoteDeviceForTest();
+ cryptauth::RemoteDevice remote_device = life_cycle_.GetRemoteDevice();
EXPECT_EQ(expected_remote_device.user_id, remote_device.user_id);
EXPECT_EQ(expected_remote_device.name, remote_device.name);
EXPECT_EQ(expected_remote_device.public_key, remote_device.public_key);
« no previous file with comments | « components/proximity_auth/remote_device_life_cycle_impl.cc ('k') | components/proximity_auth/remote_device_loader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698