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/unlock_manager_unittest.cc

Issue 1316543003: Refactor ProximityAuthUIDelegate functions to ProximityAuthClient. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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/unlock_manager_unittest.cc
diff --git a/components/proximity_auth/unlock_manager_unittest.cc b/components/proximity_auth/unlock_manager_unittest.cc
index effc52fa5862d21207da7eea920717912f5a9794..dc8c57cbc0db8813c237b68b7aa8f69255401655 100644
--- a/components/proximity_auth/unlock_manager_unittest.cc
+++ b/components/proximity_auth/unlock_manager_unittest.cc
@@ -12,7 +12,7 @@
#include "components/proximity_auth/client.h"
#include "components/proximity_auth/controller.h"
#include "components/proximity_auth/logging/logging.h"
-#include "components/proximity_auth/proximity_auth_client.h"
+#include "components/proximity_auth/mock_proximity_auth_client.h"
#include "components/proximity_auth/proximity_monitor.h"
#include "components/proximity_auth/remote_status_update.h"
#include "components/proximity_auth/screenlock_bridge.h"
@@ -91,21 +91,6 @@ class MockProximityMonitor : public ProximityMonitor {
DISALLOW_COPY_AND_ASSIGN(MockProximityMonitor);
};
-class MockProximityAuthClient : public ProximityAuthClient {
- public:
- MockProximityAuthClient() {}
- ~MockProximityAuthClient() override {}
-
- MOCK_CONST_METHOD0(GetAuthenticatedUsername, std::string());
- MOCK_METHOD1(UpdateScreenlockState,
- void(proximity_auth::ScreenlockState state));
- MOCK_METHOD1(FinalizeUnlock, void(bool success));
- MOCK_METHOD1(FinalizeSignin, void(const std::string& secret));
-
- private:
- DISALLOW_COPY_AND_ASSIGN(MockProximityAuthClient);
-};
-
class FakeLockHandler : public ScreenlockBridge::LockHandler {
public:
FakeLockHandler() {}

Powered by Google App Engine
This is Rietveld 408576698