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

Side by Side Diff: components/subresource_filter/core/browser/subresource_filter_features_test_support.h

Issue 2875033004: [subresource_filter] Add debugging trace events around activation (Closed)
Patch Set: quick fix Created 3 years, 7 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 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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698