| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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/subresource_filter_safe_
browsing_activation_throttle.h" | 5 #include "components/subresource_filter/content/browser/subresource_filter_safe_
browsing_activation_throttle.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 #include <tuple> | 8 #include <tuple> |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 class MockSubresourceFilterClient | 67 class MockSubresourceFilterClient |
| 68 : public subresource_filter::SubresourceFilterClient { | 68 : public subresource_filter::SubresourceFilterClient { |
| 69 public: | 69 public: |
| 70 MockSubresourceFilterClient() {} | 70 MockSubresourceFilterClient() {} |
| 71 | 71 |
| 72 ~MockSubresourceFilterClient() override = default; | 72 ~MockSubresourceFilterClient() override = default; |
| 73 | 73 |
| 74 MOCK_METHOD1(ToggleNotificationVisibility, void(bool)); | 74 MOCK_METHOD1(ToggleNotificationVisibility, void(bool)); |
| 75 MOCK_METHOD2(OnPageActivationComputed, | 75 MOCK_METHOD2(OnPageActivationComputed, |
| 76 bool(content::NavigationHandle*, bool)); | 76 bool(content::NavigationHandle*, bool)); |
| 77 MOCK_METHOD1(WhitelistByContentSettings, void(const GURL&)); | |
| 78 MOCK_METHOD1(WhitelistInCurrentWebContents, void(const GURL&)); | 77 MOCK_METHOD1(WhitelistInCurrentWebContents, void(const GURL&)); |
| 79 MOCK_METHOD0(GetRulesetDealer, VerifiedRulesetDealer::Handle*()); | 78 MOCK_METHOD0(GetRulesetDealer, VerifiedRulesetDealer::Handle*()); |
| 80 | 79 |
| 81 private: | 80 private: |
| 82 DISALLOW_COPY_AND_ASSIGN(MockSubresourceFilterClient); | 81 DISALLOW_COPY_AND_ASSIGN(MockSubresourceFilterClient); |
| 83 }; | 82 }; |
| 84 | 83 |
| 85 std::string GetSuffixForList(const ActivationList& type) { | 84 std::string GetSuffixForList(const ActivationList& type) { |
| 86 switch (type) { | 85 switch (type) { |
| 87 case ActivationList::SOCIAL_ENG_ADS_INTERSTITIAL: | 86 case ActivationList::SOCIAL_ENG_ADS_INTERSTITIAL: |
| (...skipping 562 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 650 ::testing::Values( | 649 ::testing::Values( |
| 651 content::CancellingNavigationThrottle::SYNCHRONOUS, | 650 content::CancellingNavigationThrottle::SYNCHRONOUS, |
| 652 content::CancellingNavigationThrottle::ASYNCHRONOUS))); | 651 content::CancellingNavigationThrottle::ASYNCHRONOUS))); |
| 653 | 652 |
| 654 INSTANTIATE_TEST_CASE_P( | 653 INSTANTIATE_TEST_CASE_P( |
| 655 ActivationLevelTest, | 654 ActivationLevelTest, |
| 656 SubresourceFilterSafeBrowsingActivationThrottleParamTest, | 655 SubresourceFilterSafeBrowsingActivationThrottleParamTest, |
| 657 ::testing::ValuesIn(kActivationListTestData)); | 656 ::testing::ValuesIn(kActivationListTestData)); |
| 658 | 657 |
| 659 } // namespace subresource_filter | 658 } // namespace subresource_filter |
| OLD | NEW |