OLD | NEW |
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 #ifndef COMPONENTS_COPRESENCE_TEST_FAKE_DIRECTIVE_HANDLER_H_ | 5 #ifndef COMPONENTS_COPRESENCE_TEST_FAKE_DIRECTIVE_HANDLER_H_ |
6 #define COMPONENTS_COPRESENCE_TEST_FAKE_DIRECTIVE_HANDLER_H_ | 6 #define COMPONENTS_COPRESENCE_TEST_FAKE_DIRECTIVE_HANDLER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
| 11 #include "base/macros.h" |
11 #include "components/copresence/handlers/directive_handler.h" | 12 #include "components/copresence/handlers/directive_handler.h" |
12 | 13 |
13 namespace copresence { | 14 namespace copresence { |
14 | 15 |
15 class FakeDirectiveHandler final : public DirectiveHandler { | 16 class FakeDirectiveHandler final : public DirectiveHandler { |
16 public: | 17 public: |
17 FakeDirectiveHandler(); | 18 FakeDirectiveHandler(); |
18 ~FakeDirectiveHandler() override; | 19 ~FakeDirectiveHandler() override; |
19 | 20 |
20 const std::vector<std::string>& added_directives() const { | 21 const std::vector<std::string>& added_directives() const { |
(...skipping 16 matching lines...) Expand all Loading... |
37 private: | 38 private: |
38 std::vector<std::string> added_directives_; | 39 std::vector<std::string> added_directives_; |
39 std::vector<std::string> removed_directives_; | 40 std::vector<std::string> removed_directives_; |
40 | 41 |
41 DISALLOW_COPY_AND_ASSIGN(FakeDirectiveHandler); | 42 DISALLOW_COPY_AND_ASSIGN(FakeDirectiveHandler); |
42 }; | 43 }; |
43 | 44 |
44 } // namespace copresence | 45 } // namespace copresence |
45 | 46 |
46 #endif // COMPONENTS_COPRESENCE_TEST_FAKE_DIRECTIVE_HANDLER_H_ | 47 #endif // COMPONENTS_COPRESENCE_TEST_FAKE_DIRECTIVE_HANDLER_H_ |
OLD | NEW |