Retry: Win Video Capture: Create an STA |video_capture_thread_| from MediaStreamManager.
[chromium-blink-merge.git] / components / gcm_driver / fake_gcm_driver.cc
blob21416a5946708177ba1731b586d1198d5ee7ca2b
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.
5 #include "components/gcm_driver/fake_gcm_driver.h"
7 namespace gcm {
9 FakeGCMDriver::FakeGCMDriver() {
12 FakeGCMDriver::~FakeGCMDriver() {
15 void FakeGCMDriver::Shutdown() {
18 void FakeGCMDriver::AddAppHandler(
19 const std::string& app_id, GCMAppHandler* handler) {
22 void FakeGCMDriver::RemoveAppHandler(const std::string& app_id) {
25 void FakeGCMDriver::OnSignedIn() {
28 void FakeGCMDriver::OnSignedOut() {
31 void FakeGCMDriver::Purge() {
34 void FakeGCMDriver::AddConnectionObserver(GCMConnectionObserver* observer) {
37 void FakeGCMDriver::RemoveConnectionObserver(GCMConnectionObserver* observer) {
40 void FakeGCMDriver::Enable() {
43 void FakeGCMDriver::Disable() {
46 GCMClient* FakeGCMDriver::GetGCMClientForTesting() const {
47 return NULL;
50 bool FakeGCMDriver::IsStarted() const {
51 return true;
54 bool FakeGCMDriver::IsConnected() const {
55 return true;
58 void FakeGCMDriver::GetGCMStatistics(const GetGCMStatisticsCallback& callback,
59 bool clear_logs) {
62 void FakeGCMDriver::SetGCMRecording(const GetGCMStatisticsCallback& callback,
63 bool recording) {
66 GCMClient::Result FakeGCMDriver::EnsureStarted() {
67 return GCMClient::SUCCESS;
70 void FakeGCMDriver::RegisterImpl(const std::string& app_id,
71 const std::vector<std::string>& sender_ids) {
74 void FakeGCMDriver::UnregisterImpl(const std::string& app_id) {
77 void FakeGCMDriver::SendImpl(const std::string& app_id,
78 const std::string& receiver_id,
79 const GCMClient::OutgoingMessage& message) {
82 void FakeGCMDriver::SetAccountTokens(
83 const std::vector<GCMClient::AccountTokenInfo>& account_tokens) {
86 void FakeGCMDriver::UpdateAccountMapping(
87 const AccountMapping& account_mapping) {
90 void FakeGCMDriver::RemoveAccountMapping(const std::string& account_id) {
93 base::Time FakeGCMDriver::GetLastTokenFetchTime() {
94 return base::Time();
97 void FakeGCMDriver::SetLastTokenFetchTime(const base::Time& time) {
100 } // namespace gcm