| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "components/proximity_auth/cryptauth/fake_cryptauth_gcm_manager.h" | 5 #include "components/cryptauth/fake_cryptauth_gcm_manager.h" |
| 6 | 6 |
| 7 namespace proximity_auth { | 7 namespace cryptauth { |
| 8 | 8 |
| 9 FakeCryptAuthGCMManager::FakeCryptAuthGCMManager( | 9 FakeCryptAuthGCMManager::FakeCryptAuthGCMManager( |
| 10 const std::string& registration_id) | 10 const std::string& registration_id) |
| 11 : registration_in_progress_(false), registration_id_(registration_id) {} | 11 : registration_in_progress_(false), registration_id_(registration_id) {} |
| 12 | 12 |
| 13 FakeCryptAuthGCMManager::~FakeCryptAuthGCMManager() {} | 13 FakeCryptAuthGCMManager::~FakeCryptAuthGCMManager() {} |
| 14 | 14 |
| 15 void FakeCryptAuthGCMManager::StartListening() {} | 15 void FakeCryptAuthGCMManager::StartListening() {} |
| 16 | 16 |
| 17 void FakeCryptAuthGCMManager::RegisterWithGCM() { | 17 void FakeCryptAuthGCMManager::RegisterWithGCM() { |
| (...skipping 25 matching lines...) Expand all Loading... |
| 43 void FakeCryptAuthGCMManager::PushReenrollMessage() { | 43 void FakeCryptAuthGCMManager::PushReenrollMessage() { |
| 44 for (auto& observer : observers_) | 44 for (auto& observer : observers_) |
| 45 observer.OnReenrollMessage(); | 45 observer.OnReenrollMessage(); |
| 46 } | 46 } |
| 47 | 47 |
| 48 void FakeCryptAuthGCMManager::PushResyncMessage() { | 48 void FakeCryptAuthGCMManager::PushResyncMessage() { |
| 49 for (auto& observer : observers_) | 49 for (auto& observer : observers_) |
| 50 observer.OnResyncMessage(); | 50 observer.OnResyncMessage(); |
| 51 } | 51 } |
| 52 | 52 |
| 53 } // namespace proximity_auth | 53 } // namespace cryptauth |
| OLD | NEW |