Upstream version 11.40.277.0
[platform/framework/web/crosswalk.git] / src / components / gcm_driver / fake_gcm_driver.cc
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
9 FakeGCMDriver::FakeGCMDriver() {
10 }
11
12 FakeGCMDriver::~FakeGCMDriver() {
13 }
14
15 void FakeGCMDriver::Shutdown() {
16 }
17
18 void FakeGCMDriver::AddAppHandler(
19     const std::string& app_id, GCMAppHandler* handler) {
20 }
21
22 void FakeGCMDriver::RemoveAppHandler(const std::string& app_id) {
23 }
24
25 void FakeGCMDriver::OnSignedIn() {
26 }
27
28 void FakeGCMDriver::OnSignedOut() {
29 }
30
31 void FakeGCMDriver::Purge() {
32 }
33
34 void FakeGCMDriver::AddConnectionObserver(GCMConnectionObserver* observer) {
35 }
36
37 void FakeGCMDriver::RemoveConnectionObserver(GCMConnectionObserver* observer) {
38 }
39
40 void FakeGCMDriver::Enable() {
41 }
42
43 void FakeGCMDriver::Disable() {
44 }
45
46 GCMClient* FakeGCMDriver::GetGCMClientForTesting() const {
47   return NULL;
48 }
49
50 bool FakeGCMDriver::IsStarted() const {
51   return true;
52 }
53
54 bool FakeGCMDriver::IsConnected() const {
55   return true;
56 }
57
58 void FakeGCMDriver::GetGCMStatistics(const GetGCMStatisticsCallback& callback,
59                                      bool clear_logs) {
60 }
61
62 void FakeGCMDriver::SetGCMRecording(const GetGCMStatisticsCallback& callback,
63                                     bool recording) {
64 }
65
66 GCMClient::Result FakeGCMDriver::EnsureStarted() {
67   return GCMClient::SUCCESS;
68 }
69
70 void FakeGCMDriver::RegisterImpl(const std::string& app_id,
71                                  const std::vector<std::string>& sender_ids) {
72 }
73
74 void FakeGCMDriver::UnregisterImpl(const std::string& app_id) {
75 }
76
77 void FakeGCMDriver::SendImpl(const std::string& app_id,
78                              const std::string& receiver_id,
79                              const GCMClient::OutgoingMessage& message) {
80 }
81
82 void FakeGCMDriver::SetAccountTokens(
83     const std::vector<GCMClient::AccountTokenInfo>& account_tokens) {
84 }
85
86 void FakeGCMDriver::UpdateAccountMapping(
87     const AccountMapping& account_mapping) {
88 }
89
90 void FakeGCMDriver::RemoveAccountMapping(const std::string& account_id) {
91 }
92
93 base::Time FakeGCMDriver::GetLastTokenFetchTime() {
94   return base::Time();
95 }
96
97 void FakeGCMDriver::SetLastTokenFetchTime(const base::Time& time) {
98 }
99
100 }  // namespace gcm