| OLD | NEW |
| (Empty) |
| 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/copresence/test/fake_directive_handler.h" | |
| 6 | |
| 7 #include "components/copresence/proto/data.pb.h" | |
| 8 | |
| 9 namespace copresence { | |
| 10 | |
| 11 FakeDirectiveHandler::FakeDirectiveHandler() {} | |
| 12 | |
| 13 FakeDirectiveHandler::~FakeDirectiveHandler() {} | |
| 14 | |
| 15 void FakeDirectiveHandler::AddDirective(const Directive& directive) { | |
| 16 added_directives_.push_back(directive.subscription_id()); | |
| 17 } | |
| 18 | |
| 19 void FakeDirectiveHandler::RemoveDirectives(const std::string& op_id) { | |
| 20 removed_directives_.push_back(op_id); | |
| 21 } | |
| 22 | |
| 23 const std::string | |
| 24 FakeDirectiveHandler::GetCurrentAudioToken(audio_modem::AudioType type) const { | |
| 25 return type == audio_modem::AUDIBLE ? "current audible" : "current inaudible"; | |
| 26 } | |
| 27 | |
| 28 bool FakeDirectiveHandler::IsAudioTokenHeard( | |
| 29 audio_modem::AudioType type) const { | |
| 30 return true; | |
| 31 } | |
| 32 | |
| 33 } // namespace copresence | |
| OLD | NEW |