fake_gcm_driver.cc revision 46d4c2bc3267f3f028f39e7e311b0f89aba2e4fd
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 7namespace gcm { 8 9FakeGCMDriver::FakeGCMDriver() { 10} 11 12FakeGCMDriver::~FakeGCMDriver() { 13} 14 15void FakeGCMDriver::Shutdown() { 16} 17 18void FakeGCMDriver::AddAppHandler( 19 const std::string& app_id, GCMAppHandler* handler) { 20} 21 22void FakeGCMDriver::RemoveAppHandler(const std::string& app_id) { 23} 24 25void FakeGCMDriver::Enable() { 26} 27 28void FakeGCMDriver::Disable() { 29} 30 31GCMClient* FakeGCMDriver::GetGCMClientForTesting() const { 32 return NULL; 33} 34 35bool FakeGCMDriver::IsStarted() const { 36 return true; 37} 38 39bool FakeGCMDriver::IsGCMClientReady() const { 40 return true; 41} 42 43void FakeGCMDriver::GetGCMStatistics(const GetGCMStatisticsCallback& callback, 44 bool clear_logs) { 45} 46 47void FakeGCMDriver::SetGCMRecording(const GetGCMStatisticsCallback& callback, 48 bool recording) { 49} 50 51std::string FakeGCMDriver::SignedInUserName() const { 52 return std::string(); 53} 54 55GCMClient::Result FakeGCMDriver::EnsureStarted() { 56 return GCMClient::SUCCESS; 57} 58 59void FakeGCMDriver::RegisterImpl(const std::string& app_id, 60 const std::vector<std::string>& sender_ids) { 61} 62 63void FakeGCMDriver::UnregisterImpl(const std::string& app_id) { 64} 65 66void FakeGCMDriver::SendImpl(const std::string& app_id, 67 const std::string& receiver_id, 68 const GCMClient::OutgoingMessage& message) { 69} 70 71} // namespace gcm 72