OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_SUBRESOURCE_FILTER_CORE_BROWSER_SUBRESOURCE_FILTER_FEATURES_T
EST_SUPPORT_H_ | 5 #ifndef COMPONENTS_SUBRESOURCE_FILTER_CORE_BROWSER_SUBRESOURCE_FILTER_FEATURES_T
EST_SUPPORT_H_ |
6 #define COMPONENTS_SUBRESOURCE_FILTER_CORE_BROWSER_SUBRESOURCE_FILTER_FEATURES_T
EST_SUPPORT_H_ | 6 #define COMPONENTS_SUBRESOURCE_FILTER_CORE_BROWSER_SUBRESOURCE_FILTER_FEATURES_T
EST_SUPPORT_H_ |
7 | 7 |
| 8 #include <iosfwd> |
8 #include <memory> | 9 #include <memory> |
9 #include <string> | 10 #include <string> |
10 | 11 |
11 #include "base/feature_list.h" | 12 #include "base/feature_list.h" |
12 #include "base/macros.h" | 13 #include "base/macros.h" |
13 #include "base/test/scoped_feature_list.h" | 14 #include "base/test/scoped_feature_list.h" |
14 #include "components/subresource_filter/core/browser/subresource_filter_features
.h" | 15 #include "components/subresource_filter/core/browser/subresource_filter_features
.h" |
15 | 16 |
16 namespace subresource_filter { | 17 namespace subresource_filter { |
17 namespace testing { | 18 namespace testing { |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 base::FeatureList::OverrideState feature_state, | 63 base::FeatureList::OverrideState feature_state, |
63 const std::string& additional_features_to_enable = std::string()); | 64 const std::string& additional_features_to_enable = std::string()); |
64 | 65 |
65 private: | 66 private: |
66 ScopedSubresourceFilterConfigurator scoped_configuration_; | 67 ScopedSubresourceFilterConfigurator scoped_configuration_; |
67 std::unique_ptr<base::test::ScopedFeatureList> scoped_feature_list_; | 68 std::unique_ptr<base::test::ScopedFeatureList> scoped_feature_list_; |
68 | 69 |
69 DISALLOW_COPY_AND_ASSIGN(ScopedSubresourceFilterFeatureToggle); | 70 DISALLOW_COPY_AND_ASSIGN(ScopedSubresourceFilterFeatureToggle); |
70 }; | 71 }; |
71 | 72 |
| 73 // For logging in tests. |
| 74 std::ostream& operator<<(std::ostream& os, const Configuration& config); |
| 75 |
72 } // namespace testing | 76 } // namespace testing |
73 } // namespace subresource_filter | 77 } // namespace subresource_filter |
74 | 78 |
75 #endif // COMPONENTS_SUBRESOURCE_FILTER_CORE_BROWSER_SUBRESOURCE_FILTER_FEATURE
S_TEST_SUPPORT_H_ | 79 #endif // COMPONENTS_SUBRESOURCE_FILTER_CORE_BROWSER_SUBRESOURCE_FILTER_FEATURE
S_TEST_SUPPORT_H_ |
OLD | NEW |