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

Unified Diff: components/proximity_auth/cryptauth/fake_cryptauth_gcm_manager.cc

Issue 2502343003: Moved //components/proximity_auth/cryptauth to //components/cryptauth. (Closed)
Patch Set: Fixed proto #includes. Created 4 years, 1 month 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/cryptauth/fake_cryptauth_gcm_manager.cc
diff --git a/components/proximity_auth/cryptauth/fake_cryptauth_gcm_manager.cc b/components/proximity_auth/cryptauth/fake_cryptauth_gcm_manager.cc
deleted file mode 100644
index d1e85c63235713eddb2cd3fd68d84bb74f0c51c6..0000000000000000000000000000000000000000
--- a/components/proximity_auth/cryptauth/fake_cryptauth_gcm_manager.cc
+++ /dev/null
@@ -1,53 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "components/proximity_auth/cryptauth/fake_cryptauth_gcm_manager.h"
-
-namespace proximity_auth {
-
-FakeCryptAuthGCMManager::FakeCryptAuthGCMManager(
- const std::string& registration_id)
- : registration_in_progress_(false), registration_id_(registration_id) {}
-
-FakeCryptAuthGCMManager::~FakeCryptAuthGCMManager() {}
-
-void FakeCryptAuthGCMManager::StartListening() {}
-
-void FakeCryptAuthGCMManager::RegisterWithGCM() {
- registration_in_progress_ = true;
-}
-
-std::string FakeCryptAuthGCMManager::GetRegistrationId() {
- return registration_id_;
-}
-
-void FakeCryptAuthGCMManager::AddObserver(Observer* observer) {
- observers_.AddObserver(observer);
-}
-
-void FakeCryptAuthGCMManager::RemoveObserver(Observer* observer) {
- observers_.RemoveObserver(observer);
-}
-
-void FakeCryptAuthGCMManager::CompleteRegistration(
- const std::string& registration_id) {
- DCHECK(registration_in_progress_);
- registration_in_progress_ = false;
- registration_id_ = registration_id;
- bool success = !registration_id_.empty();
- for (auto& observer : observers_)
- observer.OnGCMRegistrationResult(success);
-}
-
-void FakeCryptAuthGCMManager::PushReenrollMessage() {
- for (auto& observer : observers_)
- observer.OnReenrollMessage();
-}
-
-void FakeCryptAuthGCMManager::PushResyncMessage() {
- for (auto& observer : observers_)
- observer.OnResyncMessage();
-}
-
-} // namespace proximity_auth

Powered by Google App Engine
This is Rietveld 408576698