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

Unified Diff: components/safe_browsing_db/v4_update_protocol_manager_unittest.cc

Issue 1988433002: Replace ThreatEntryType::URL_EXPRESSION with ThreatEntryType::URL (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/safe_browsing_db/v4_local_database_manager.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/safe_browsing_db/v4_update_protocol_manager_unittest.cc
diff --git a/components/safe_browsing_db/v4_update_protocol_manager_unittest.cc b/components/safe_browsing_db/v4_update_protocol_manager_unittest.cc
index b981672ef444fa5afd37882552bbeccea8044c9a..9623c22199d16ef738e5cda8b211483299a0b39e 100644
--- a/components/safe_browsing_db/v4_update_protocol_manager_unittest.cc
+++ b/components/safe_browsing_db/v4_update_protocol_manager_unittest.cc
@@ -76,12 +76,12 @@ class V4UpdateProtocolManagerTest : public testing::Test {
base::hash_map<UpdateListIdentifier, std::string>* current_list_states) {
UpdateListIdentifier list_identifier;
list_identifier.platform_type = WINDOWS_PLATFORM;
- list_identifier.threat_entry_type = URL_EXPRESSION;
+ list_identifier.threat_entry_type = URL;
list_identifier.threat_type = MALWARE_THREAT;
current_list_states->insert({list_identifier, "initial_state_1"});
list_identifier.platform_type = WINDOWS_PLATFORM;
- list_identifier.threat_entry_type = URL_EXPRESSION;
+ list_identifier.threat_entry_type = URL;
list_identifier.threat_type = UNWANTED_SOFTWARE;
current_list_states->insert({list_identifier, "initial_state_2"});
@@ -96,14 +96,14 @@ class V4UpdateProtocolManagerTest : public testing::Test {
ListUpdateResponse lur;
lur.set_platform_type(WINDOWS_PLATFORM);
lur.set_response_type(ListUpdateResponse::PARTIAL_UPDATE);
- lur.set_threat_entry_type(URL_EXPRESSION);
+ lur.set_threat_entry_type(URL);
lur.set_threat_type(MALWARE_THREAT);
lur.set_new_client_state("new_state_1");
expected_lurs->push_back(lur);
lur.set_platform_type(WINDOWS_PLATFORM);
lur.set_response_type(ListUpdateResponse::PARTIAL_UPDATE);
- lur.set_threat_entry_type(URL_EXPRESSION);
+ lur.set_threat_entry_type(URL);
lur.set_threat_type(UNWANTED_SOFTWARE);
lur.set_new_client_state("new_state_2");
expected_lurs->push_back(lur);
« no previous file with comments | « components/safe_browsing_db/v4_local_database_manager.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698