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