Vectorize website settings icons in omnibox
[chromium-blink-merge.git] / components / copresence / test / fake_directive_handler.h
blob93dbf870c38562422aa8b1f788ce33c8cd4382a8
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 #ifndef COMPONENTS_COPRESENCE_TEST_FAKE_DIRECTIVE_HANDLER_H_
6 #define COMPONENTS_COPRESENCE_TEST_FAKE_DIRECTIVE_HANDLER_H_
8 #include <string>
9 #include <vector>
11 #include "components/copresence/handlers/directive_handler.h"
13 namespace copresence {
15 class FakeDirectiveHandler final : public DirectiveHandler {
16 public:
17 FakeDirectiveHandler();
18 ~FakeDirectiveHandler() override;
20 const std::vector<std::string>& added_directives() const {
21 return added_directives_;
24 const std::vector<std::string>& removed_directives() const {
25 return removed_directives_;
28 // DirectiveHandler overrides.
29 void Start(audio_modem::WhispernetClient* /* whispernet_client */,
30 const audio_modem::TokensCallback& /* tokens_cb */) override {}
31 void AddDirective(const Directive& directive) override;
32 void RemoveDirectives(const std::string& op_id) override;
33 const std::string
34 GetCurrentAudioToken(audio_modem::AudioType type) const override;
35 bool IsAudioTokenHeard(audio_modem::AudioType type) const override;
37 private:
38 std::vector<std::string> added_directives_;
39 std::vector<std::string> removed_directives_;
41 DISALLOW_COPY_AND_ASSIGN(FakeDirectiveHandler);
44 } // namespace copresence
46 #endif // COMPONENTS_COPRESENCE_TEST_FAKE_DIRECTIVE_HANDLER_H_