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

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

Issue 330733002: Move IdentityProvider usage from GCMDriverDesktop to GCMProfileService (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix after sync 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
« no previous file with comments | « components/gcm_driver/fake_gcm_driver.h ('k') | components/gcm_driver/gcm_client.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 namespace gcm { 7 namespace gcm {
8 8
9 FakeGCMDriver::FakeGCMDriver() { 9 FakeGCMDriver::FakeGCMDriver() {
10 } 10 }
11 11
12 FakeGCMDriver::~FakeGCMDriver() { 12 FakeGCMDriver::~FakeGCMDriver() {
13 } 13 }
14 14
15 void FakeGCMDriver::Shutdown() { 15 void FakeGCMDriver::Shutdown() {
16 } 16 }
17 17
18 void FakeGCMDriver::AddAppHandler( 18 void FakeGCMDriver::AddAppHandler(
19 const std::string& app_id, GCMAppHandler* handler) { 19 const std::string& app_id, GCMAppHandler* handler) {
20 } 20 }
21 21
22 void FakeGCMDriver::RemoveAppHandler(const std::string& app_id) { 22 void FakeGCMDriver::RemoveAppHandler(const std::string& app_id) {
23 } 23 }
24 24
25 void FakeGCMDriver::OnSignedIn() {
26 }
27
28 void FakeGCMDriver::Purge() {
29 }
30
25 void FakeGCMDriver::Enable() { 31 void FakeGCMDriver::Enable() {
26 } 32 }
27 33
28 void FakeGCMDriver::Disable() { 34 void FakeGCMDriver::Disable() {
29 } 35 }
30 36
31 GCMClient* FakeGCMDriver::GetGCMClientForTesting() const { 37 GCMClient* FakeGCMDriver::GetGCMClientForTesting() const {
32 return NULL; 38 return NULL;
33 } 39 }
34 40
(...skipping 10 matching lines...) Expand all
45 } 51 }
46 52
47 void FakeGCMDriver::GetGCMStatistics(const GetGCMStatisticsCallback& callback, 53 void FakeGCMDriver::GetGCMStatistics(const GetGCMStatisticsCallback& callback,
48 bool clear_logs) { 54 bool clear_logs) {
49 } 55 }
50 56
51 void FakeGCMDriver::SetGCMRecording(const GetGCMStatisticsCallback& callback, 57 void FakeGCMDriver::SetGCMRecording(const GetGCMStatisticsCallback& callback,
52 bool recording) { 58 bool recording) {
53 } 59 }
54 60
55 std::string FakeGCMDriver::SignedInUserName() const {
56 return std::string();
57 }
58
59 GCMClient::Result FakeGCMDriver::EnsureStarted() { 61 GCMClient::Result FakeGCMDriver::EnsureStarted() {
60 return GCMClient::SUCCESS; 62 return GCMClient::SUCCESS;
61 } 63 }
62 64
63 void FakeGCMDriver::RegisterImpl(const std::string& app_id, 65 void FakeGCMDriver::RegisterImpl(const std::string& app_id,
64 const std::vector<std::string>& sender_ids) { 66 const std::vector<std::string>& sender_ids) {
65 } 67 }
66 68
67 void FakeGCMDriver::UnregisterImpl(const std::string& app_id) { 69 void FakeGCMDriver::UnregisterImpl(const std::string& app_id) {
68 } 70 }
69 71
70 void FakeGCMDriver::SendImpl(const std::string& app_id, 72 void FakeGCMDriver::SendImpl(const std::string& app_id,
71 const std::string& receiver_id, 73 const std::string& receiver_id,
72 const GCMClient::OutgoingMessage& message) { 74 const GCMClient::OutgoingMessage& message) {
73 } 75 }
74 76
75 } // namespace gcm 77 } // namespace gcm
OLDNEW
« no previous file with comments | « components/gcm_driver/fake_gcm_driver.h ('k') | components/gcm_driver/gcm_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698