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_DRIVER_H_ | 5 #ifndef COMPONENTS_GCM_DRIVER_FAKE_GCM_DRIVER_H_ |
6 #define COMPONENTS_GCM_DRIVER_FAKE_GCM_DRIVER_H_ | 6 #define COMPONENTS_GCM_DRIVER_FAKE_GCM_DRIVER_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "components/gcm_driver/gcm_driver.h" | 10 #include "components/gcm_driver/gcm_driver.h" |
(...skipping 23 matching lines...) Expand all Loading... |
34 bool clear_logs) override; | 34 bool clear_logs) override; |
35 void SetGCMRecording(const GetGCMStatisticsCallback& callback, | 35 void SetGCMRecording(const GetGCMStatisticsCallback& callback, |
36 bool recording) override; | 36 bool recording) override; |
37 void SetAccountTokens( | 37 void SetAccountTokens( |
38 const std::vector<GCMClient::AccountTokenInfo>& account_tokens) override; | 38 const std::vector<GCMClient::AccountTokenInfo>& account_tokens) override; |
39 void UpdateAccountMapping(const AccountMapping& account_mapping) override; | 39 void UpdateAccountMapping(const AccountMapping& account_mapping) override; |
40 void RemoveAccountMapping(const std::string& account_id) override; | 40 void RemoveAccountMapping(const std::string& account_id) override; |
41 base::Time GetLastTokenFetchTime() override; | 41 base::Time GetLastTokenFetchTime() override; |
42 void SetLastTokenFetchTime(const base::Time& time) override; | 42 void SetLastTokenFetchTime(const base::Time& time) override; |
43 void WakeFromSuspendForHeartbeat(bool wake) override; | 43 void WakeFromSuspendForHeartbeat(bool wake) override; |
44 InstanceIDStore* GetInstanceIDStore() override; | 44 InstanceIDHandler* GetInstanceIDHandler() override; |
45 void AddHeartbeatInterval(const std::string& scope, int interval_ms) override; | 45 void AddHeartbeatInterval(const std::string& scope, int interval_ms) override; |
46 void RemoveHeartbeatInterval(const std::string& scope) override; | 46 void RemoveHeartbeatInterval(const std::string& scope) override; |
47 | 47 |
48 protected: | 48 protected: |
49 // GCMDriver implementation: | 49 // GCMDriver implementation: |
50 GCMClient::Result EnsureStarted( | 50 GCMClient::Result EnsureStarted( |
51 GCMClient::StartMode start_mode) override; | 51 GCMClient::StartMode start_mode) override; |
52 void RegisterImpl(const std::string& app_id, | 52 void RegisterImpl(const std::string& app_id, |
53 const std::vector<std::string>& sender_ids) override; | 53 const std::vector<std::string>& sender_ids) override; |
54 void UnregisterImpl(const std::string& app_id) override; | 54 void UnregisterImpl(const std::string& app_id) override; |
55 void SendImpl(const std::string& app_id, | 55 void SendImpl(const std::string& app_id, |
56 const std::string& receiver_id, | 56 const std::string& receiver_id, |
57 const GCMClient::OutgoingMessage& message) override; | 57 const GCMClient::OutgoingMessage& message) override; |
58 | 58 |
59 private: | 59 private: |
60 DISALLOW_COPY_AND_ASSIGN(FakeGCMDriver); | 60 DISALLOW_COPY_AND_ASSIGN(FakeGCMDriver); |
61 }; | 61 }; |
62 | 62 |
63 } // namespace gcm | 63 } // namespace gcm |
64 | 64 |
65 #endif // COMPONENTS_GCM_DRIVER_FAKE_GCM_DRIVER_H_ | 65 #endif // COMPONENTS_GCM_DRIVER_FAKE_GCM_DRIVER_H_ |
OLD | NEW |