| 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 #include "base/files/file_path.h" | |
| 8 | |
| 9 namespace gcm { | 7 namespace gcm { |
| 10 | 8 |
| 11 FakeGCMDriver::FakeGCMDriver() : GCMDriver(base::FilePath(), nullptr) { | 9 FakeGCMDriver::FakeGCMDriver() { |
| 12 } | |
| 13 | |
| 14 FakeGCMDriver::FakeGCMDriver( | |
| 15 const scoped_refptr<base::SequencedTaskRunner>& blocking_task_runner) | |
| 16 : GCMDriver(base::FilePath(), blocking_task_runner) { | |
| 17 } | 10 } |
| 18 | 11 |
| 19 FakeGCMDriver::~FakeGCMDriver() { | 12 FakeGCMDriver::~FakeGCMDriver() { |
| 20 } | 13 } |
| 21 | 14 |
| 22 void FakeGCMDriver::Shutdown() { | 15 void FakeGCMDriver::Shutdown() { |
| 23 } | 16 } |
| 24 | 17 |
| 25 void FakeGCMDriver::AddAppHandler( | 18 void FakeGCMDriver::AddAppHandler( |
| 26 const std::string& app_id, GCMAppHandler* handler) { | 19 const std::string& app_id, GCMAppHandler* handler) { |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 } | 103 } |
| 111 | 104 |
| 112 void FakeGCMDriver::AddHeartbeatInterval(const std::string& scope, | 105 void FakeGCMDriver::AddHeartbeatInterval(const std::string& scope, |
| 113 int interval_ms) { | 106 int interval_ms) { |
| 114 } | 107 } |
| 115 | 108 |
| 116 void FakeGCMDriver::RemoveHeartbeatInterval(const std::string& scope) { | 109 void FakeGCMDriver::RemoveHeartbeatInterval(const std::string& scope) { |
| 117 } | 110 } |
| 118 | 111 |
| 119 } // namespace gcm | 112 } // namespace gcm |
| OLD | NEW |