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 #include "components/gcm_driver/fake_gcm_driver.h" | 5 #include "components/gcm_driver/fake_gcm_driver.h" |
6 | 6 |
7 namespace gcm { | 7 namespace gcm { |
8 | 8 |
9 FakeGCMDriver::FakeGCMDriver() { | 9 FakeGCMDriver::FakeGCMDriver() { |
10 } | 10 } |
(...skipping 22 matching lines...) Expand all Loading... |
33 } | 33 } |
34 | 34 |
35 bool FakeGCMDriver::IsStarted() const { | 35 bool FakeGCMDriver::IsStarted() const { |
36 return true; | 36 return true; |
37 } | 37 } |
38 | 38 |
39 bool FakeGCMDriver::IsGCMClientReady() const { | 39 bool FakeGCMDriver::IsGCMClientReady() const { |
40 return true; | 40 return true; |
41 } | 41 } |
42 | 42 |
| 43 bool FakeGCMDriver::IsConnected() const { |
| 44 return true; |
| 45 } |
| 46 |
43 void FakeGCMDriver::GetGCMStatistics(const GetGCMStatisticsCallback& callback, | 47 void FakeGCMDriver::GetGCMStatistics(const GetGCMStatisticsCallback& callback, |
44 bool clear_logs) { | 48 bool clear_logs) { |
45 } | 49 } |
46 | 50 |
47 void FakeGCMDriver::SetGCMRecording(const GetGCMStatisticsCallback& callback, | 51 void FakeGCMDriver::SetGCMRecording(const GetGCMStatisticsCallback& callback, |
48 bool recording) { | 52 bool recording) { |
49 } | 53 } |
50 | 54 |
51 std::string FakeGCMDriver::SignedInUserName() const { | 55 std::string FakeGCMDriver::SignedInUserName() const { |
52 return std::string(); | 56 return std::string(); |
53 } | 57 } |
54 | 58 |
55 GCMClient::Result FakeGCMDriver::EnsureStarted() { | 59 GCMClient::Result FakeGCMDriver::EnsureStarted() { |
56 return GCMClient::SUCCESS; | 60 return GCMClient::SUCCESS; |
57 } | 61 } |
58 | 62 |
59 void FakeGCMDriver::RegisterImpl(const std::string& app_id, | 63 void FakeGCMDriver::RegisterImpl(const std::string& app_id, |
60 const std::vector<std::string>& sender_ids) { | 64 const std::vector<std::string>& sender_ids) { |
61 } | 65 } |
62 | 66 |
63 void FakeGCMDriver::UnregisterImpl(const std::string& app_id) { | 67 void FakeGCMDriver::UnregisterImpl(const std::string& app_id) { |
64 } | 68 } |
65 | 69 |
66 void FakeGCMDriver::SendImpl(const std::string& app_id, | 70 void FakeGCMDriver::SendImpl(const std::string& app_id, |
67 const std::string& receiver_id, | 71 const std::string& receiver_id, |
68 const GCMClient::OutgoingMessage& message) { | 72 const GCMClient::OutgoingMessage& message) { |
69 } | 73 } |
70 | 74 |
71 } // namespace gcm | 75 } // namespace gcm |
OLD | NEW |