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

Side by Side Diff: components/subresource_filter/content/browser/subresource_filter_safe_browsing_activation_throttle_unittest.cc

Issue 2890253002: [subresource_filter] Move OnReloadRequested to the ChromeClient (Closed)
Patch Set: rebase on #473448 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
« no previous file with comments | « components/subresource_filter/content/browser/subresource_filter_client.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « components/subresource_filter/content/browser/subresource_filter_client.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698