| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #ifndef COMPONENTS_GCM_DRIVER_FAKE_GCM_CLIENT_H_ | 5 #ifndef COMPONENTS_GCM_DRIVER_FAKE_GCM_CLIENT_H_ |
| 6 #define COMPONENTS_GCM_DRIVER_FAKE_GCM_CLIENT_H_ | 6 #define COMPONENTS_GCM_DRIVER_FAKE_GCM_CLIENT_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 Delegate* delegate) override; | 52 Delegate* delegate) override; |
| 53 void Start(StartMode start_mode) override; | 53 void Start(StartMode start_mode) override; |
| 54 void Stop() override; | 54 void Stop() override; |
| 55 void Register(const linked_ptr<RegistrationInfo>& registration_info) override; | 55 void Register(const linked_ptr<RegistrationInfo>& registration_info) override; |
| 56 void Unregister( | 56 void Unregister( |
| 57 const linked_ptr<RegistrationInfo>& registration_info) override; | 57 const linked_ptr<RegistrationInfo>& registration_info) override; |
| 58 void Send(const std::string& app_id, | 58 void Send(const std::string& app_id, |
| 59 const std::string& receiver_id, | 59 const std::string& receiver_id, |
| 60 const OutgoingMessage& message) override; | 60 const OutgoingMessage& message) override; |
| 61 void RecordDecryptionFailure(const std::string& app_id, | 61 void RecordDecryptionFailure(const std::string& app_id, |
| 62 GCMEncryptionProvider::DecryptionFailure reason) | 62 GCMEncryptionProvider::DecryptionResult result) |
| 63 override; | 63 override; |
| 64 void SetRecording(bool recording) override; | 64 void SetRecording(bool recording) override; |
| 65 void ClearActivityLogs() override; | 65 void ClearActivityLogs() override; |
| 66 GCMStatistics GetStatistics() const override; | 66 GCMStatistics GetStatistics() const override; |
| 67 void SetAccountTokens( | 67 void SetAccountTokens( |
| 68 const std::vector<AccountTokenInfo>& account_tokens) override; | 68 const std::vector<AccountTokenInfo>& account_tokens) override; |
| 69 void UpdateAccountMapping(const AccountMapping& account_mapping) override; | 69 void UpdateAccountMapping(const AccountMapping& account_mapping) override; |
| 70 void RemoveAccountMapping(const std::string& account_id) override; | 70 void RemoveAccountMapping(const std::string& account_id) override; |
| 71 void SetLastTokenFetchTime(const base::Time& time) override; | 71 void SetLastTokenFetchTime(const base::Time& time) override; |
| 72 void UpdateHeartbeatTimer(scoped_ptr<base::Timer> timer) override; | 72 void UpdateHeartbeatTimer(scoped_ptr<base::Timer> timer) override; |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 std::map<std::string, std::pair<std::string, std::string>> instance_id_data_; | 121 std::map<std::string, std::pair<std::string, std::string>> instance_id_data_; |
| 122 GCMStatsRecorderImpl recorder_; | 122 GCMStatsRecorderImpl recorder_; |
| 123 base::WeakPtrFactory<FakeGCMClient> weak_ptr_factory_; | 123 base::WeakPtrFactory<FakeGCMClient> weak_ptr_factory_; |
| 124 | 124 |
| 125 DISALLOW_COPY_AND_ASSIGN(FakeGCMClient); | 125 DISALLOW_COPY_AND_ASSIGN(FakeGCMClient); |
| 126 }; | 126 }; |
| 127 | 127 |
| 128 } // namespace gcm | 128 } // namespace gcm |
| 129 | 129 |
| 130 #endif // COMPONENTS_GCM_DRIVER_FAKE_GCM_CLIENT_H_ | 130 #endif // COMPONENTS_GCM_DRIVER_FAKE_GCM_CLIENT_H_ |
| OLD | NEW |