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

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

Issue 914693002: Push API: Fix unsubscribing from GCM on Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Compile fix Created 5 years, 10 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
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 }
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 62
63 GCMClient::Result FakeGCMDriver::EnsureStarted( 63 GCMClient::Result FakeGCMDriver::EnsureStarted(
64 GCMClient::StartMode start_mode) { 64 GCMClient::StartMode start_mode) {
65 return GCMClient::SUCCESS; 65 return GCMClient::SUCCESS;
66 } 66 }
67 67
68 void FakeGCMDriver::RegisterImpl(const std::string& app_id, 68 void FakeGCMDriver::RegisterImpl(const std::string& app_id,
69 const std::vector<std::string>& sender_ids) { 69 const std::vector<std::string>& sender_ids) {
70 } 70 }
71 71
72 void FakeGCMDriver::UnregisterImpl(const std::string& app_id) { 72 void FakeGCMDriver::UnregisterImpl(const std::string& app_id,
73 const std::string* maybe_sender_id) {
73 } 74 }
74 75
75 void FakeGCMDriver::SendImpl(const std::string& app_id, 76 void FakeGCMDriver::SendImpl(const std::string& app_id,
76 const std::string& receiver_id, 77 const std::string& receiver_id,
77 const GCMClient::OutgoingMessage& message) { 78 const GCMClient::OutgoingMessage& message) {
78 } 79 }
79 80
80 void FakeGCMDriver::SetAccountTokens( 81 void FakeGCMDriver::SetAccountTokens(
81 const std::vector<GCMClient::AccountTokenInfo>& account_tokens) { 82 const std::vector<GCMClient::AccountTokenInfo>& account_tokens) {
82 } 83 }
83 84
84 void FakeGCMDriver::UpdateAccountMapping( 85 void FakeGCMDriver::UpdateAccountMapping(
85 const AccountMapping& account_mapping) { 86 const AccountMapping& account_mapping) {
86 } 87 }
87 88
88 void FakeGCMDriver::RemoveAccountMapping(const std::string& account_id) { 89 void FakeGCMDriver::RemoveAccountMapping(const std::string& account_id) {
89 } 90 }
90 91
91 base::Time FakeGCMDriver::GetLastTokenFetchTime() { 92 base::Time FakeGCMDriver::GetLastTokenFetchTime() {
92 return base::Time(); 93 return base::Time();
93 } 94 }
94 95
95 void FakeGCMDriver::SetLastTokenFetchTime(const base::Time& time) { 96 void FakeGCMDriver::SetLastTokenFetchTime(const base::Time& time) {
96 } 97 }
97 98
98 void FakeGCMDriver::WakeFromSuspendForHeartbeat(bool wake) { 99 void FakeGCMDriver::WakeFromSuspendForHeartbeat(bool wake) {
99 } 100 }
100 101
101 } // namespace gcm 102 } // namespace gcm
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698