Mac: Fix performance issues with remote CoreAnimation
[chromium-blink-merge.git] / components / copresence / test / fake_directive_handler.cc
blob7ddbc1a5b0cbf42b2094a0b576031e99255a5dc9
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/copresence/test/fake_directive_handler.h"
7 #include "components/copresence/proto/data.pb.h"
9 namespace copresence {
11 FakeDirectiveHandler::FakeDirectiveHandler() {}
13 FakeDirectiveHandler::~FakeDirectiveHandler() {}
15 void FakeDirectiveHandler::AddDirective(const Directive& directive) {
16 added_directives_.push_back(directive.subscription_id());
19 void FakeDirectiveHandler::RemoveDirectives(const std::string& op_id) {
20 removed_directives_.push_back(op_id);
23 const std::string FakeDirectiveHandler::GetCurrentAudioToken(AudioType type)
24 const {
25 return type == AUDIBLE ? "current audible" : "current inaudible";
28 bool FakeDirectiveHandler::IsAudioTokenHeard(AudioType type) const {
29 return true;
32 } // namespace copresence