| 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 } |
| 11 | 11 |
| 12 FakeGCMDriver::~FakeGCMDriver() { | 12 FakeGCMDriver::~FakeGCMDriver() { |
| 13 } | 13 } |
| 14 | 14 |
| 15 void FakeGCMDriver::Shutdown() { | 15 void FakeGCMDriver::Shutdown() { |
| 16 } | 16 } |
| 17 | 17 |
| 18 void FakeGCMDriver::AddAppHandler( | 18 void FakeGCMDriver::AddAppHandler( |
| 19 const std::string& app_id, GCMAppHandler* handler) { | 19 const std::string& app_id, GCMAppHandler* handler) { |
| 20 } | 20 } |
| 21 | 21 |
| 22 void FakeGCMDriver::RemoveAppHandler(const std::string& app_id) { | 22 void FakeGCMDriver::RemoveAppHandler(const std::string& app_id) { |
| 23 } | 23 } |
| 24 | 24 |
| 25 void FakeGCMDriver::SignIn() { |
| 26 } |
| 27 |
| 28 void FakeGCMDriver::Purge() { |
| 29 } |
| 30 |
| 25 void FakeGCMDriver::Enable() { | 31 void FakeGCMDriver::Enable() { |
| 26 } | 32 } |
| 27 | 33 |
| 28 void FakeGCMDriver::Disable() { | 34 void FakeGCMDriver::Disable() { |
| 29 } | 35 } |
| 30 | 36 |
| 31 GCMClient* FakeGCMDriver::GetGCMClientForTesting() const { | 37 GCMClient* FakeGCMDriver::GetGCMClientForTesting() const { |
| 32 return NULL; | 38 return NULL; |
| 33 } | 39 } |
| 34 | 40 |
| 35 bool FakeGCMDriver::IsStarted() const { | 41 bool FakeGCMDriver::IsStarted() const { |
| 36 return true; | 42 return true; |
| 37 } | 43 } |
| 38 | 44 |
| 39 bool FakeGCMDriver::IsGCMClientReady() const { | 45 bool FakeGCMDriver::IsGCMClientReady() const { |
| 40 return true; | 46 return true; |
| 41 } | 47 } |
| 42 | 48 |
| 43 void FakeGCMDriver::GetGCMStatistics(const GetGCMStatisticsCallback& callback, | 49 void FakeGCMDriver::GetGCMStatistics(const GetGCMStatisticsCallback& callback, |
| 44 bool clear_logs) { | 50 bool clear_logs) { |
| 45 } | 51 } |
| 46 | 52 |
| 47 void FakeGCMDriver::SetGCMRecording(const GetGCMStatisticsCallback& callback, | 53 void FakeGCMDriver::SetGCMRecording(const GetGCMStatisticsCallback& callback, |
| 48 bool recording) { | 54 bool recording) { |
| 49 } | 55 } |
| 50 | 56 |
| 51 std::string FakeGCMDriver::SignedInUserName() const { | |
| 52 return std::string(); | |
| 53 } | |
| 54 | |
| 55 GCMClient::Result FakeGCMDriver::EnsureStarted() { | 57 GCMClient::Result FakeGCMDriver::EnsureStarted() { |
| 56 return GCMClient::SUCCESS; | 58 return GCMClient::SUCCESS; |
| 57 } | 59 } |
| 58 | 60 |
| 59 void FakeGCMDriver::RegisterImpl(const std::string& app_id, | 61 void FakeGCMDriver::RegisterImpl(const std::string& app_id, |
| 60 const std::vector<std::string>& sender_ids) { | 62 const std::vector<std::string>& sender_ids) { |
| 61 } | 63 } |
| 62 | 64 |
| 63 void FakeGCMDriver::UnregisterImpl(const std::string& app_id) { | 65 void FakeGCMDriver::UnregisterImpl(const std::string& app_id) { |
| 64 } | 66 } |
| 65 | 67 |
| 66 void FakeGCMDriver::SendImpl(const std::string& app_id, | 68 void FakeGCMDriver::SendImpl(const std::string& app_id, |
| 67 const std::string& receiver_id, | 69 const std::string& receiver_id, |
| 68 const GCMClient::OutgoingMessage& message) { | 70 const GCMClient::OutgoingMessage& message) { |
| 69 } | 71 } |
| 70 | 72 |
| 71 } // namespace gcm | 73 } // namespace gcm |
| OLD | NEW |