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

Side by Side Diff: components/copresence/test/fake_directive_handler.cc

Issue 865483005: Creating the audio_modem component (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merging again Created 5 years, 10 months 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/copresence/test/fake_directive_handler.h" 5 #include "components/copresence/test/fake_directive_handler.h"
6 6
7 #include "components/copresence/proto/data.pb.h" 7 #include "components/copresence/proto/data.pb.h"
8 8
9 namespace copresence { 9 namespace copresence {
10 10
11 FakeDirectiveHandler::FakeDirectiveHandler() {} 11 FakeDirectiveHandler::FakeDirectiveHandler() {}
12 12
13 FakeDirectiveHandler::~FakeDirectiveHandler() {} 13 FakeDirectiveHandler::~FakeDirectiveHandler() {}
14 14
15 void FakeDirectiveHandler::AddDirective(const Directive& directive) { 15 void FakeDirectiveHandler::AddDirective(const Directive& directive) {
16 added_directives_.push_back(directive.subscription_id()); 16 added_directives_.push_back(directive.subscription_id());
17 } 17 }
18 18
19 void FakeDirectiveHandler::RemoveDirectives(const std::string& op_id) { 19 void FakeDirectiveHandler::RemoveDirectives(const std::string& op_id) {
20 removed_directives_.push_back(op_id); 20 removed_directives_.push_back(op_id);
21 } 21 }
22 22
23 const std::string FakeDirectiveHandler::GetCurrentAudioToken(AudioType type) 23 const std::string
24 const { 24 FakeDirectiveHandler::GetCurrentAudioToken(audio_modem::AudioType type) const {
25 return type == AUDIBLE ? "current audible" : "current inaudible"; 25 return type == audio_modem::AUDIBLE ? "current audible" : "current inaudible";
26 } 26 }
27 27
28 bool FakeDirectiveHandler::IsAudioTokenHeard(AudioType type) const { 28 bool FakeDirectiveHandler::IsAudioTokenHeard(
29 audio_modem::AudioType type) const {
29 return true; 30 return true;
30 } 31 }
31 32
32 } // namespace copresence 33 } // namespace copresence
OLDNEW
« no previous file with comments | « components/copresence/test/fake_directive_handler.h ('k') | components/copresence/test/stub_whispernet_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698