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 #include "components/subresource_filter/content/browser/content_subresource_filt
er_driver_factory.h" | 5 #include "components/subresource_filter/content/browser/content_subresource_filt
er_driver_factory.h" |
6 | 6 |
7 #include "base/macros.h" | 7 #include "base/macros.h" |
8 #include "base/memory/ptr_util.h" | 8 #include "base/memory/ptr_util.h" |
9 #include "base/metrics/field_trial.h" | 9 #include "base/metrics/field_trial.h" |
10 #include "base/run_loop.h" | 10 #include "base/run_loop.h" |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 bool IsWhitelistedByContentSettings(const GURL& url) override { | 193 bool IsWhitelistedByContentSettings(const GURL& url) override { |
194 return false; | 194 return false; |
195 } | 195 } |
196 | 196 |
197 void WhitelistByContentSettings(const GURL& url) override {} | 197 void WhitelistByContentSettings(const GURL& url) override {} |
198 | 198 |
199 VerifiedRulesetDealer::Handle* GetRulesetDealer() override { | 199 VerifiedRulesetDealer::Handle* GetRulesetDealer() override { |
200 return ruleset_dealer_; | 200 return ruleset_dealer_; |
201 } | 201 } |
202 | 202 |
| 203 void OnActivationComputed( |
| 204 const GURL& url, |
| 205 const subresource_filter::ActivationState& state) override {} |
| 206 |
203 MOCK_METHOD1(ToggleNotificationVisibility, void(bool)); | 207 MOCK_METHOD1(ToggleNotificationVisibility, void(bool)); |
204 | 208 |
205 private: | 209 private: |
206 // Owned by the test harness. | 210 // Owned by the test harness. |
207 VerifiedRulesetDealer::Handle* ruleset_dealer_; | 211 VerifiedRulesetDealer::Handle* ruleset_dealer_; |
208 | 212 |
209 DISALLOW_COPY_AND_ASSIGN(MockSubresourceFilterClient); | 213 DISALLOW_COPY_AND_ASSIGN(MockSubresourceFilterClient); |
210 }; | 214 }; |
211 | 215 |
212 } // namespace | 216 } // namespace |
(...skipping 673 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
886 ActivationScopeTest, | 890 ActivationScopeTest, |
887 ContentSubresourceFilterDriverFactoryActivationScopeTest, | 891 ContentSubresourceFilterDriverFactoryActivationScopeTest, |
888 ::testing::ValuesIn(kActivationScopeTestData)); | 892 ::testing::ValuesIn(kActivationScopeTestData)); |
889 | 893 |
890 INSTANTIATE_TEST_CASE_P( | 894 INSTANTIATE_TEST_CASE_P( |
891 ActivationLevelTest, | 895 ActivationLevelTest, |
892 ContentSubresourceFilterDriverFactoryActivationLevelTest, | 896 ContentSubresourceFilterDriverFactoryActivationLevelTest, |
893 ::testing::ValuesIn(kActivationLevelTestData)); | 897 ::testing::ValuesIn(kActivationLevelTestData)); |
894 | 898 |
895 } // namespace subresource_filter | 899 } // namespace subresource_filter |
OLD | NEW |