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

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

Issue 2925693003: Making CSD ReportType enum consistent. (Closed)
Patch Set: Handling SBThreatType enums as well Created 3 years, 6 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/security_interstitials/content/unsafe_resource.cc ('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 <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <tuple> 10 #include <tuple>
(...skipping 682 matching lines...) Expand 10 before | Expand all | Expand 10 after
693 {ActivationDecision::ACTIVATION_CONDITIONS_NOT_MET, 693 {ActivationDecision::ACTIVATION_CONDITIONS_NOT_MET,
694 ActivationList::PHISHING_INTERSTITIAL, 694 ActivationList::PHISHING_INTERSTITIAL,
695 safe_browsing::SB_THREAT_TYPE_API_ABUSE, 695 safe_browsing::SB_THREAT_TYPE_API_ABUSE,
696 safe_browsing::ThreatPatternType::SOCIAL_ENGINEERING_ADS}, 696 safe_browsing::ThreatPatternType::SOCIAL_ENGINEERING_ADS},
697 {ActivationDecision::ACTIVATION_CONDITIONS_NOT_MET, 697 {ActivationDecision::ACTIVATION_CONDITIONS_NOT_MET,
698 ActivationList::PHISHING_INTERSTITIAL, 698 ActivationList::PHISHING_INTERSTITIAL,
699 safe_browsing::SB_THREAT_TYPE_BLACKLISTED_RESOURCE, 699 safe_browsing::SB_THREAT_TYPE_BLACKLISTED_RESOURCE,
700 safe_browsing::ThreatPatternType::SOCIAL_ENGINEERING_ADS}, 700 safe_browsing::ThreatPatternType::SOCIAL_ENGINEERING_ADS},
701 {ActivationDecision::ACTIVATION_CONDITIONS_NOT_MET, 701 {ActivationDecision::ACTIVATION_CONDITIONS_NOT_MET,
702 ActivationList::PHISHING_INTERSTITIAL, 702 ActivationList::PHISHING_INTERSTITIAL,
703 safe_browsing::SB_THREAT_TYPE_CLIENT_SIDE_MALWARE_URL, 703 safe_browsing::SB_THREAT_TYPE_URL_CLIENT_SIDE_MALWARE,
704 safe_browsing::ThreatPatternType::SOCIAL_ENGINEERING_ADS}, 704 safe_browsing::ThreatPatternType::SOCIAL_ENGINEERING_ADS},
705 {ActivationDecision::ACTIVATION_CONDITIONS_NOT_MET, 705 {ActivationDecision::ACTIVATION_CONDITIONS_NOT_MET,
706 ActivationList::PHISHING_INTERSTITIAL, 706 ActivationList::PHISHING_INTERSTITIAL,
707 safe_browsing::SB_THREAT_TYPE_BINARY_MALWARE_URL, 707 safe_browsing::SB_THREAT_TYPE_URL_BINARY_MALWARE,
708 safe_browsing::ThreatPatternType::SOCIAL_ENGINEERING_ADS}, 708 safe_browsing::ThreatPatternType::SOCIAL_ENGINEERING_ADS},
709 {ActivationDecision::ACTIVATION_CONDITIONS_NOT_MET, 709 {ActivationDecision::ACTIVATION_CONDITIONS_NOT_MET,
710 ActivationList::PHISHING_INTERSTITIAL, 710 ActivationList::PHISHING_INTERSTITIAL,
711 safe_browsing::SB_THREAT_TYPE_URL_UNWANTED, 711 safe_browsing::SB_THREAT_TYPE_URL_UNWANTED,
712 safe_browsing::ThreatPatternType::SOCIAL_ENGINEERING_ADS}, 712 safe_browsing::ThreatPatternType::SOCIAL_ENGINEERING_ADS},
713 {ActivationDecision::ACTIVATION_CONDITIONS_NOT_MET, 713 {ActivationDecision::ACTIVATION_CONDITIONS_NOT_MET,
714 ActivationList::PHISHING_INTERSTITIAL, 714 ActivationList::PHISHING_INTERSTITIAL,
715 safe_browsing::SB_THREAT_TYPE_URL_MALWARE, 715 safe_browsing::SB_THREAT_TYPE_URL_MALWARE,
716 safe_browsing::ThreatPatternType::SOCIAL_ENGINEERING_ADS}, 716 safe_browsing::ThreatPatternType::SOCIAL_ENGINEERING_ADS},
717 {ActivationDecision::ACTIVATION_CONDITIONS_NOT_MET, 717 {ActivationDecision::ACTIVATION_CONDITIONS_NOT_MET,
718 ActivationList::PHISHING_INTERSTITIAL, 718 ActivationList::PHISHING_INTERSTITIAL,
719 safe_browsing::SB_THREAT_TYPE_CLIENT_SIDE_PHISHING_URL, 719 safe_browsing::SB_THREAT_TYPE_URL_CLIENT_SIDE_PHISHING,
720 safe_browsing::ThreatPatternType::SOCIAL_ENGINEERING_ADS}, 720 safe_browsing::ThreatPatternType::SOCIAL_ENGINEERING_ADS},
721 {ActivationDecision::ACTIVATION_CONDITIONS_NOT_MET, 721 {ActivationDecision::ACTIVATION_CONDITIONS_NOT_MET,
722 ActivationList::PHISHING_INTERSTITIAL, 722 ActivationList::PHISHING_INTERSTITIAL,
723 safe_browsing::SB_THREAT_TYPE_SAFE, 723 safe_browsing::SB_THREAT_TYPE_SAFE,
724 safe_browsing::ThreatPatternType::SOCIAL_ENGINEERING_ADS}, 724 safe_browsing::ThreatPatternType::SOCIAL_ENGINEERING_ADS},
725 {ActivationDecision::ACTIVATED, ActivationList::PHISHING_INTERSTITIAL, 725 {ActivationDecision::ACTIVATED, ActivationList::PHISHING_INTERSTITIAL,
726 safe_browsing::SB_THREAT_TYPE_URL_PHISHING, 726 safe_browsing::SB_THREAT_TYPE_URL_PHISHING,
727 safe_browsing::ThreatPatternType::NONE}, 727 safe_browsing::ThreatPatternType::NONE},
728 {ActivationDecision::ACTIVATED, 728 {ActivationDecision::ACTIVATED,
729 ActivationList::SOCIAL_ENG_ADS_INTERSTITIAL, 729 ActivationList::SOCIAL_ENG_ADS_INTERSTITIAL,
(...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after
1107 ActivationLevelTest, 1107 ActivationLevelTest,
1108 SubresourceFilterSafeBrowsingActivationThrottleParamTest, 1108 SubresourceFilterSafeBrowsingActivationThrottleParamTest,
1109 ::testing::ValuesIn(kActivationListTestData)); 1109 ::testing::ValuesIn(kActivationListTestData));
1110 1110
1111 INSTANTIATE_TEST_CASE_P( 1111 INSTANTIATE_TEST_CASE_P(
1112 ActivationScopeTest, 1112 ActivationScopeTest,
1113 SubresourceFilterSafeBrowsingActivationThrottleScopeTest, 1113 SubresourceFilterSafeBrowsingActivationThrottleScopeTest,
1114 ::testing::ValuesIn(kActivationScopeTestData)); 1114 ::testing::ValuesIn(kActivationScopeTestData));
1115 1115
1116 } // namespace subresource_filter 1116 } // namespace subresource_filter
OLDNEW
« no previous file with comments | « components/security_interstitials/content/unsafe_resource.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698