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 12 matching lines...) Expand all Loading... |
23 void OnSignedIn() override; | 23 void OnSignedIn() override; |
24 void OnSignedOut() override; | 24 void OnSignedOut() override; |
25 void AddConnectionObserver(GCMConnectionObserver* observer) override; | 25 void AddConnectionObserver(GCMConnectionObserver* observer) override; |
26 void RemoveConnectionObserver(GCMConnectionObserver* observer) override; | 26 void RemoveConnectionObserver(GCMConnectionObserver* observer) override; |
27 void Enable() override; | 27 void Enable() override; |
28 void Disable() override; | 28 void Disable() override; |
29 GCMClient* GetGCMClientForTesting() const override; | 29 GCMClient* GetGCMClientForTesting() const override; |
30 bool IsStarted() const override; | 30 bool IsStarted() const override; |
31 bool IsConnected() const override; | 31 bool IsConnected() const override; |
32 void GetGCMStatistics(const GetGCMStatisticsCallback& callback, | 32 void GetGCMStatistics(const GetGCMStatisticsCallback& callback, |
33 bool clear_logs) override; | 33 ClearActivityLogs clear_logs) override; |
34 void SetGCMRecording(const GetGCMStatisticsCallback& callback, | 34 void SetGCMRecording(const GetGCMStatisticsCallback& callback, |
35 bool recording) override; | 35 bool recording) override; |
36 void SetAccountTokens( | 36 void SetAccountTokens( |
37 const std::vector<GCMClient::AccountTokenInfo>& account_tokens) override; | 37 const std::vector<GCMClient::AccountTokenInfo>& account_tokens) override; |
38 void UpdateAccountMapping(const AccountMapping& account_mapping) override; | 38 void UpdateAccountMapping(const AccountMapping& account_mapping) override; |
39 void RemoveAccountMapping(const std::string& account_id) override; | 39 void RemoveAccountMapping(const std::string& account_id) override; |
40 base::Time GetLastTokenFetchTime() override; | 40 base::Time GetLastTokenFetchTime() override; |
41 void SetLastTokenFetchTime(const base::Time& time) override; | 41 void SetLastTokenFetchTime(const base::Time& time) override; |
42 void WakeFromSuspendForHeartbeat(bool wake) override; | 42 void WakeFromSuspendForHeartbeat(bool wake) override; |
43 InstanceIDHandler* GetInstanceIDHandler() override; | 43 InstanceIDHandler* GetInstanceIDHandler() override; |
(...skipping 11 matching lines...) Expand all Loading... |
55 const std::string& receiver_id, | 55 const std::string& receiver_id, |
56 const OutgoingMessage& message) override; | 56 const OutgoingMessage& message) override; |
57 | 57 |
58 private: | 58 private: |
59 DISALLOW_COPY_AND_ASSIGN(FakeGCMDriver); | 59 DISALLOW_COPY_AND_ASSIGN(FakeGCMDriver); |
60 }; | 60 }; |
61 | 61 |
62 } // namespace gcm | 62 } // namespace gcm |
63 | 63 |
64 #endif // COMPONENTS_GCM_DRIVER_FAKE_GCM_DRIVER_H_ | 64 #endif // COMPONENTS_GCM_DRIVER_FAKE_GCM_DRIVER_H_ |
OLD | NEW |