Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(22)

Side by Side Diff: components/gcm_driver/fake_gcm_driver.cc

Issue 278493002: Split GCMDriver into platform-specific implementations (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix trybots Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
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::Enable() {
26 }
27
28 void FakeGCMDriver::Disable() {
29 }
30
31 void FakeGCMDriver::Register(const std::string& app_id,
32 const std::vector<std::string>& sender_ids,
33 const RegisterCallback& callback) {
34 }
35
36 void FakeGCMDriver::Unregister(const std::string& app_id,
37 const UnregisterCallback& callback) {
38 }
39
40 void FakeGCMDriver::Send(const std::string& app_id,
41 const std::string& receiver_id,
42 const GCMClient::OutgoingMessage& message,
43 const SendCallback& callback) {
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::IsGCMClientReady() 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 std::string FakeGCMDriver::SignedInUserName() const {
67 return std::string();
68 }
69
70 } // namespace gcm
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698