Home
last modified time | relevance | path

Searched refs:list_name (Results 1 – 25 of 42) sorted by relevance

12

/external/chromium_org/chrome/browser/safe_browsing/
Dprotocol_parser.cc68 full_hash.list_name = cmd_parts[0]; in ParseGetHash()
73 if (safe_browsing_util::GetListId(full_hash.list_name) < 0) { in ParseGetHash()
121 std::string list_name; in ParseUpdate() local
150 if (command.size() != 2 || command[1] != 'd' || list_name.empty()) in ParseUpdate()
155 chunk_delete.list_name = list_name; in ParseUpdate()
162 list_name = cmd_parts[1]; in ParseUpdate()
173 chunk_url.list_name = list_name; in ParseUpdate()
193 bool SafeBrowsingProtocolParser::ParseChunk(const std::string& list_name, in ParseChunk() argument
232 if (!ParseAddChunk(list_name, chunk_data, chunk_len, hash_len, in ParseChunk()
237 if (!ParseSubChunk(list_name, chunk_data, chunk_len, hash_len, in ParseChunk()
[all …]
Dsafe_browsing_util_unittest.cc299 std::string list_name; in TEST() local
301 &list_name)); in TEST()
303 &list_name)); in TEST()
304 EXPECT_EQ(list_name, std::string(safe_browsing_util::kMalwareList)); in TEST()
306 safe_browsing_util::GetListId(list_name)); in TEST()
309 &list_name)); in TEST()
310 EXPECT_EQ(list_name, std::string(safe_browsing_util::kPhishingList)); in TEST()
312 safe_browsing_util::GetListId(list_name)); in TEST()
315 &list_name)); in TEST()
316 EXPECT_EQ(list_name, std::string(safe_browsing_util::kBinUrlList)); in TEST()
[all …]
Dsafe_browsing_util.h29 std::string list_name; member
108 std::string list_name; member
126 std::string list_name; member
360 bool IsPhishingList(const std::string& list_name);
361 bool IsMalwareList(const std::string& list_name);
362 bool IsBadbinurlList(const std::string& list_name);
363 bool IsBadbinhashList(const std::string& list_name);
364 bool IsExtensionList(const std::string& list_name);
Dprotocol_parser.h72 bool ParseChunk(const std::string& list_name,
87 bool ParseAddChunk(const std::string& list_name,
92 bool ParseSubChunk(const std::string& list_name,
Dsafe_browsing_util.cc502 bool IsPhishingList(const std::string& list_name) { in IsPhishingList() argument
503 return list_name.compare(kPhishingList) == 0; in IsPhishingList()
506 bool IsMalwareList(const std::string& list_name) { in IsMalwareList() argument
507 return list_name.compare(kMalwareList) == 0; in IsMalwareList()
510 bool IsBadbinurlList(const std::string& list_name) { in IsBadbinurlList() argument
511 return list_name.compare(kBinUrlList) == 0; in IsBadbinurlList()
514 bool IsBadbinhashList(const std::string& list_name) { in IsBadbinhashList() argument
515 return list_name.compare(kBinHashList) == 0; in IsBadbinhashList()
518 bool IsExtensionList(const std::string& list_name) { in IsExtensionList() argument
519 return list_name.compare(kExtensionBlacklist) == 0; in IsExtensionList()
Dsafe_browsing_service_browsertest.cc137 virtual void InsertChunks(const std::string& list_name, in InsertChunks() argument
158 const std::string& list_name, in AddUrl() argument
161 badurls_[url.spec()].list_name = list_name; in AddUrl()
173 std::string list_name; member
192 if (badurls_it->second.list_name == list_name0 || in ContainsUrl()
193 badurls_it->second.list_name == list_name1) { in ContainsUrl()
340 const std::string& list_name, in GenUrlFullhashResult() argument
348 full_hash->list_name = list_name; in GenUrlFullhashResult()
353 const std::string& list_name, in GenDigestFullhashResult() argument
357 full_hash->list_name = list_name; in GenDigestFullhashResult()
[all …]
Ddatabase_manager.cc822 const std::string& list_name, SBChunkList* chunks, in AddDatabaseChunks() argument
827 GetDatabase()->InsertChunks(list_name, *chunks); in AddDatabaseChunks()
847 const std::string& list_name) { in GetThreatTypeFromListname() argument
848 if (safe_browsing_util::IsPhishingList(list_name)) { in GetThreatTypeFromListname()
852 if (safe_browsing_util::IsMalwareList(list_name)) { in GetThreatTypeFromListname()
856 if (safe_browsing_util::IsBadbinurlList(list_name)) { in GetThreatTypeFromListname()
860 if (safe_browsing_util::IsBadbinhashList(list_name)) { in GetThreatTypeFromListname()
864 if (safe_browsing_util::IsExtensionList(list_name)) { in GetThreatTypeFromListname()
868 DVLOG(1) << "Unknown safe browsing list " << list_name; in GetThreatTypeFromListname()
957 GetThreatTypeFromListname(full_hashes[index].list_name); in HandleOneCheck()
[all …]
Dprotocol_parser_unittest.cc442 EXPECT_EQ(full_hashes[0].list_name, "goog-phish-shavar"); in TEST()
446 EXPECT_EQ(full_hashes[1].list_name, "goog-phish-shavar"); in TEST()
450 EXPECT_EQ(full_hashes[2].list_name, "goog-phish-shavar"); in TEST()
466 EXPECT_EQ(full_hashes[0].list_name, "goog-phish-shavar"); in TEST()
470 EXPECT_EQ(full_hashes[1].list_name, "goog-malware-shavar"); in TEST()
474 EXPECT_EQ(full_hashes[2].list_name, "goog-malware-shavar"); in TEST()
491 EXPECT_EQ(full_hashes[0].list_name, "goog-phish-shavar"); in TEST()
504 EXPECT_EQ(full_hashes[0].list_name, "goog-phish-shavar"); in TEST()
508 EXPECT_EQ(full_hashes[1].list_name, "goog-malware-shavar"); in TEST()
/external/chromium/chrome/browser/safe_browsing/
Dsafe_browsing_util_unittest.cc299 std::string list_name; in TEST() local
301 &list_name)); in TEST()
303 &list_name)); in TEST()
304 EXPECT_EQ(list_name, std::string(safe_browsing_util::kMalwareList)); in TEST()
306 safe_browsing_util::GetListId(list_name)); in TEST()
309 &list_name)); in TEST()
310 EXPECT_EQ(list_name, std::string(safe_browsing_util::kPhishingList)); in TEST()
312 safe_browsing_util::GetListId(list_name)); in TEST()
315 &list_name)); in TEST()
316 EXPECT_EQ(list_name, std::string(safe_browsing_util::kBinUrlList)); in TEST()
[all …]
Dprotocol_parser.cc94 full_hash.list_name = cmd_parts[0]; in ParseGetHash()
99 if (safe_browsing_util::GetListId(full_hash.list_name) < 0) { in ParseGetHash()
149 std::string list_name; in ParseUpdate() local
178 if (command.size() != 2 || command[1] != 'd' || list_name.empty()) in ParseUpdate()
183 chunk_delete.list_name = list_name; in ParseUpdate()
196 list_name = cmd_parts[1]; in ParseUpdate()
229 chunk_url.list_name = list_name; in ParseUpdate()
251 bool SafeBrowsingProtocolParser::ParseChunk(const std::string& list_name, in ParseChunk() argument
306 if (!ParseAddChunk(list_name, chunk_data, chunk_len, hash_len, in ParseChunk()
311 if (!ParseSubChunk(list_name, chunk_data, chunk_len, hash_len, in ParseChunk()
[all …]
Dsafe_browsing_util.h30 std::string list_name; member
109 std::string list_name; member
127 std::string list_name; member
308 bool IsPhishingList(const std::string& list_name);
309 bool IsMalwareList(const std::string& list_name);
310 bool IsBadbinurlList(const std::string& list_name);
311 bool IsBadbinhashList(const std::string& list_name);
Dsafe_browsing_service_browsertest.cc80 virtual void InsertChunks(const std::string& list_name, in InsertChunks() argument
98 const std::string& list_name, in AddUrl() argument
101 badurls_[url.spec()].list_name = list_name; in AddUrl()
113 std::string list_name; member
132 if (badurls_it->second.list_name == list_name0 || in ContainsUrl()
133 badurls_it->second.list_name == list_name1) { in ContainsUrl()
260 const std::string& list_name, in GenUrlFullhashResult() argument
268 full_hash->list_name = list_name; in GenUrlFullhashResult()
273 const std::string& list_name, in GenDigestFullhashResult() argument
277 full_hash->list_name = list_name; in GenDigestFullhashResult()
[all …]
Dprotocol_parser.h78 bool ParseChunk(const std::string& list_name,
106 bool ParseAddChunk(const std::string& list_name,
111 bool ParseSubChunk(const std::string& list_name,
Dsafe_browsing_util.cc450 bool IsPhishingList(const std::string& list_name) { in IsPhishingList() argument
451 return list_name.compare(kPhishingList) == 0; in IsPhishingList()
454 bool IsMalwareList(const std::string& list_name) { in IsMalwareList() argument
455 return list_name.compare(kMalwareList) == 0; in IsMalwareList()
458 bool IsBadbinurlList(const std::string& list_name) { in IsBadbinurlList() argument
459 return list_name.compare(kBinUrlList) == 0; in IsBadbinurlList()
462 bool IsBadbinhashList(const std::string& list_name) { in IsBadbinhashList() argument
463 return list_name.compare(kBinHashList) == 0; in IsBadbinhashList()
Dprotocol_parser_unittest.cc487 EXPECT_EQ(full_hashes[0].list_name, "goog-phish-shavar"); in TEST()
491 EXPECT_EQ(full_hashes[1].list_name, "goog-phish-shavar"); in TEST()
495 EXPECT_EQ(full_hashes[2].list_name, "goog-phish-shavar"); in TEST()
513 EXPECT_EQ(full_hashes[0].list_name, "goog-phish-shavar"); in TEST()
517 EXPECT_EQ(full_hashes[1].list_name, "goog-malware-shavar"); in TEST()
521 EXPECT_EQ(full_hashes[2].list_name, "goog-malware-shavar"); in TEST()
578 EXPECT_EQ(full_hashes[0].list_name, "goog-phish-shavar"); in TEST()
593 EXPECT_EQ(full_hashes[0].list_name, "goog-phish-shavar"); in TEST()
597 EXPECT_EQ(full_hashes[1].list_name, "goog-malware-shavar"); in TEST()
Dsafe_browsing_service.cc805 const std::string& list_name, SBChunkList* chunks) { in HandleChunkForDatabase() argument
808 GetDatabase()->InsertChunks(list_name, *chunks); in HandleChunkForDatabase()
826 const std::string& list_name) { in GetResultFromListname() argument
827 if (safe_browsing_util::IsPhishingList(list_name)) { in GetResultFromListname()
831 if (safe_browsing_util::IsMalwareList(list_name)) { in GetResultFromListname()
835 if (safe_browsing_util::IsBadbinurlList(list_name)) { in GetResultFromListname()
839 if (safe_browsing_util::IsBadbinhashList(list_name)) { in GetResultFromListname()
843 DVLOG(1) << "Unknown safe browsing list " << list_name; in GetResultFromListname()
983 check->result = GetResultFromListname(full_hashes[index].list_name); in HandleOneCheck()
Dsafe_browsing_database.h131 virtual void InsertChunks(const std::string& list_name,
219 virtual void InsertChunks(const std::string& list_name,
Dsafe_browsing_database.cc152 if (!safe_browsing_util::GetListName(list_bit, &result.list_name)) in GetCachedFullHashesForBrowse()
869 void SafeBrowsingDatabaseNew::InsertChunks(const std::string& list_name, in InsertChunks() argument
878 const int list_id = safe_browsing_util::GetListId(list_name); in InsertChunks()
879 DVLOG(2) << list_name << ": " << list_id; in InsertChunks()
904 const std::string& list_name = chunk_deletes.front().list_name; in DeleteChunks() local
905 const int list_id = safe_browsing_util::GetListId(list_name); in DeleteChunks()
942 const int list_id = safe_browsing_util::GetListId(iter->list_name); in CacheHashResults()
/external/chromium_org/third_party/WebKit/Tools/Scripts/
Dvalidate-committer-lists98 list_name = "webkit-committers@lists.webkit.org"
101 … print_list_if_non_empty("Committers missing from %s:" % list_name, missing_from_mailing_list)
104 …print_list_if_non_empty("Subcribers to %s missing from committer.py:" % list_name, users_missing_f…
108 list_name = "webkit-reviewers@lists.webkit.org"
111 print_list_if_non_empty("Reviewers missing from %s:" % list_name, missing_from_mailing_list)
114 …_non_empty("Subcribers to %s missing from reviewers in committer.py:" % list_name, missing_from_re…
117 …if_non_empty("Subcribers to %s completely missing from committers.py" % list_name, missing_from_co…
/external/chromium_org/chrome_frame/
Dregistry_list_preferences_holder.cc15 const wchar_t* list_name) { in Init() argument
18 list_path += list_name; in Init()
Dregistry_list_preferences_holder.h27 const wchar_t* list_name);
/external/chromium_org/rlz/chromeos/lib/
Drlz_value_store_chromeos.cc238 bool RlzValueStoreChromeOS::AddValueToList(std::string list_name, in AddValueToList() argument
241 if (!rlz_store_->GetList(list_name, &list_value)) { in AddValueToList()
243 rlz_store_->Set(list_name, list_value); in AddValueToList()
249 bool RlzValueStoreChromeOS::RemoveValueFromList(std::string list_name, in RemoveValueFromList() argument
252 if (!rlz_store_->GetList(list_name, &list_value)) in RemoveValueFromList()
Drlz_value_store_chromeos.h70 bool AddValueToList(std::string list_name, base::Value* value);
72 bool RemoveValueFromList(std::string list_name, const base::Value& value);
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/controllers/
Dlayout_test_runner_unittest.py80 def handle_finished_list(self, source, list_name, num_tests, elapsed_time): argument
82 self._tester.assertEqual(list_name, 'locked_tests')
86 … super(LockCheckingRunner, self).handle_finished_list(source, list_name, num_tests, elapsed_time)
/external/chromium_org/chrome_frame/test/
Dpolicy_settings_unittest.cc46 const wchar_t* list_name, in WritePolicyList() argument
50 policy_key->DeleteKey(list_name); in WritePolicyList()
53 EXPECT_EQ(ERROR_SUCCESS, list_key.Create(policy_key->Handle(), list_name, in WritePolicyList()

12