Upstream version 10.39.225.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::Purge() {
29 }
30
31 void FakeGCMDriver::AddConnectionObserver(GCMConnectionObserver* observer) {
32 }
33
34 void FakeGCMDriver::RemoveConnectionObserver(GCMConnectionObserver* observer) {
35 }
36
37 void FakeGCMDriver::Enable() {
38 }
39
40 void FakeGCMDriver::Disable() {
41 }
42
43 GCMClient* FakeGCMDriver::GetGCMClientForTesting() const {
44   return NULL;
45 }
46
47 bool FakeGCMDriver::IsStarted() const {
48   return true;
49 }
50
51 bool FakeGCMDriver::IsConnected() const {
52   return true;
53 }
54
55 void FakeGCMDriver::GetGCMStatistics(const GetGCMStatisticsCallback& callback,
56                                      bool clear_logs) {
57 }
58
59 void FakeGCMDriver::SetGCMRecording(const GetGCMStatisticsCallback& callback,
60                                     bool recording) {
61 }
62
63 GCMClient::Result FakeGCMDriver::EnsureStarted() {
64   return GCMClient::SUCCESS;
65 }
66
67 void FakeGCMDriver::RegisterImpl(const std::string& app_id,
68                                  const std::vector<std::string>& sender_ids) {
69 }
70
71 void FakeGCMDriver::UnregisterImpl(const std::string& app_id) {
72 }
73
74 void FakeGCMDriver::SendImpl(const std::string& app_id,
75                              const std::string& receiver_id,
76                              const GCMClient::OutgoingMessage& message) {
77 }
78
79 void FakeGCMDriver::UpdateAccountMapping(
80     const AccountMapping& account_mapping) {
81 }
82
83 void FakeGCMDriver::RemoveAccountMapping(const std::string& account_id) {
84 }
85
86 }  // namespace gcm