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
3 // found in the LICENSE file.
4
5 #include "components/gcm_driver/fake_gcm_driver.h"
6
7 namespace gcm {
8
FakeGCMDriver()9 FakeGCMDriver::FakeGCMDriver() {
10 }
11
~FakeGCMDriver()12 FakeGCMDriver::~FakeGCMDriver() {
13 }
14
Shutdown()15 void FakeGCMDriver::Shutdown() {
16 }
17
AddAppHandler(const std::string & app_id,GCMAppHandler * handler)18 void FakeGCMDriver::AddAppHandler(
19 const std::string& app_id, GCMAppHandler* handler) {
20 }
21
RemoveAppHandler(const std::string & app_id)22 void FakeGCMDriver::RemoveAppHandler(const std::string& app_id) {
23 }
24
OnSignedIn()25 void FakeGCMDriver::OnSignedIn() {
26 }
27
OnSignedOut()28 void FakeGCMDriver::OnSignedOut() {
29 }
30
Purge()31 void FakeGCMDriver::Purge() {
32 }
33
AddConnectionObserver(GCMConnectionObserver * observer)34 void FakeGCMDriver::AddConnectionObserver(GCMConnectionObserver* observer) {
35 }
36
RemoveConnectionObserver(GCMConnectionObserver * observer)37 void FakeGCMDriver::RemoveConnectionObserver(GCMConnectionObserver* observer) {
38 }
39
Enable()40 void FakeGCMDriver::Enable() {
41 }
42
Disable()43 void FakeGCMDriver::Disable() {
44 }
45
GetGCMClientForTesting() const46 GCMClient* FakeGCMDriver::GetGCMClientForTesting() const {
47 return NULL;
48 }
49
IsStarted() const50 bool FakeGCMDriver::IsStarted() const {
51 return true;
52 }
53
IsConnected() const54 bool FakeGCMDriver::IsConnected() const {
55 return true;
56 }
57
GetGCMStatistics(const GetGCMStatisticsCallback & callback,bool clear_logs)58 void FakeGCMDriver::GetGCMStatistics(const GetGCMStatisticsCallback& callback,
59 bool clear_logs) {
60 }
61
SetGCMRecording(const GetGCMStatisticsCallback & callback,bool recording)62 void FakeGCMDriver::SetGCMRecording(const GetGCMStatisticsCallback& callback,
63 bool recording) {
64 }
65
EnsureStarted()66 GCMClient::Result FakeGCMDriver::EnsureStarted() {
67 return GCMClient::SUCCESS;
68 }
69
RegisterImpl(const std::string & app_id,const std::vector<std::string> & sender_ids)70 void FakeGCMDriver::RegisterImpl(const std::string& app_id,
71 const std::vector<std::string>& sender_ids) {
72 }
73
UnregisterImpl(const std::string & app_id)74 void FakeGCMDriver::UnregisterImpl(const std::string& app_id) {
75 }
76
SendImpl(const std::string & app_id,const std::string & receiver_id,const GCMClient::OutgoingMessage & message)77 void FakeGCMDriver::SendImpl(const std::string& app_id,
78 const std::string& receiver_id,
79 const GCMClient::OutgoingMessage& message) {
80 }
81
UpdateAccountMapping(const AccountMapping & account_mapping)82 void FakeGCMDriver::UpdateAccountMapping(
83 const AccountMapping& account_mapping) {
84 }
85
RemoveAccountMapping(const std::string & account_id)86 void FakeGCMDriver::RemoveAccountMapping(const std::string& account_id) {
87 }
88
89 } // namespace gcm
90