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

Unified Diff: components/copresence/test/fake_directive_handler.cc

Issue 713643002: Revert "Adding GCM support to the copresence component. The Copresence server can push directives (… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2214
Patch Set: Created 6 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/copresence/test/fake_directive_handler.h ('k') | components/gcm_driver/gcm_client_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/copresence/test/fake_directive_handler.cc
diff --git a/components/copresence/test/fake_directive_handler.cc b/components/copresence/test/fake_directive_handler.cc
deleted file mode 100644
index 810b227bba898b920319a216e9f164c2098f9251..0000000000000000000000000000000000000000
--- a/components/copresence/test/fake_directive_handler.cc
+++ /dev/null
@@ -1,32 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "components/copresence/test/fake_directive_handler.h"
-
-#include "components/copresence/proto/data.pb.h"
-
-namespace copresence {
-
-FakeDirectiveHandler::FakeDirectiveHandler() : DirectiveHandler(nullptr) {}
-
-FakeDirectiveHandler::~FakeDirectiveHandler() {}
-
-void FakeDirectiveHandler::AddDirective(const Directive& directive) {
- added_directives_.push_back(directive.subscription_id());
-}
-
-void FakeDirectiveHandler::RemoveDirectives(const std::string& op_id) {
- removed_directives_.push_back(op_id);
-}
-
-const std::string FakeDirectiveHandler::GetCurrentAudioToken(AudioType type)
- const {
- return type == AUDIBLE ? "current audible" : "current inaudible";
-}
-
-bool FakeDirectiveHandler::IsAudioTokenHeard(AudioType type) const {
- return true;
-}
-
-} // namespace copresence
« no previous file with comments | « components/copresence/test/fake_directive_handler.h ('k') | components/gcm_driver/gcm_client_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698