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

Unified Diff: components/proximity_auth/fake_remote_device_life_cycle.h

Issue 2845433003: [EasyUnlock] Update ProximityMonitor to only check for RSSI proximity. (Closed)
Patch Set: fixes Created 3 years, 8 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
« no previous file with comments | « no previous file | components/proximity_auth/fake_remote_device_life_cycle.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/proximity_auth/fake_remote_device_life_cycle.h
diff --git a/components/proximity_auth/fake_remote_device_life_cycle.h b/components/proximity_auth/fake_remote_device_life_cycle.h
index 548099b1f7195d91ea330d886f9cc4dd7fbdf306..4307b3c36831ef7cc5ec4961b3517ee086c8033f 100644
--- a/components/proximity_auth/fake_remote_device_life_cycle.h
+++ b/components/proximity_auth/fake_remote_device_life_cycle.h
@@ -7,6 +7,7 @@
#include "base/macros.h"
#include "base/observer_list.h"
+#include "components/cryptauth/fake_connection.h"
#include "components/cryptauth/remote_device.h"
#include "components/proximity_auth/remote_device_life_cycle.h"
@@ -20,6 +21,7 @@ class FakeRemoteDeviceLifeCycle : public RemoteDeviceLifeCycle {
// RemoteDeviceLifeCycle:
void Start() override;
cryptauth::RemoteDevice GetRemoteDevice() const override;
+ cryptauth::Connection* GetConnection() const override;
State GetState() const override;
Messenger* GetMessenger() override;
void AddObserver(Observer* observer) override;
@@ -30,6 +32,10 @@ class FakeRemoteDeviceLifeCycle : public RemoteDeviceLifeCycle {
void set_messenger(Messenger* messenger) { messenger_ = messenger; }
+ void set_connection(cryptauth::Connection* connection) {
+ connection_ = connection;
+ }
+
bool started() { return started_; }
base::ObserverList<Observer>& observers() { return observers_; }
@@ -43,6 +49,8 @@ class FakeRemoteDeviceLifeCycle : public RemoteDeviceLifeCycle {
State state_;
+ cryptauth::Connection* connection_;
+
Messenger* messenger_;
DISALLOW_COPY_AND_ASSIGN(FakeRemoteDeviceLifeCycle);
« no previous file with comments | « no previous file | components/proximity_auth/fake_remote_device_life_cycle.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698