/external/chromium_org/chrome/browser/safe_browsing/ |
safe_browsing_database_unittest.cc | 483 std::vector<SBPrefix> prefix_hits; local 486 GURL("http://www.evil.com/phishing.html"), &prefix_hits, &cache_hits)); 487 ASSERT_EQ(1U, prefix_hits.size()); 488 EXPECT_EQ(SBPrefixForString("www.evil.com/phishing.html"), prefix_hits[0]); 492 GURL("http://www.evil.com/malware.html"), &prefix_hits, &cache_hits)); 495 GURL("http://www.evil.com/notevil1.html"), &prefix_hits, &cache_hits)); 498 GURL("http://www.evil.com/notevil2.html"), &prefix_hits, &cache_hits)); 501 GURL("http://www.good.com/good1.html"), &prefix_hits, &cache_hits)); 504 GURL("http://www.good.com/good2.html"), &prefix_hits, &cache_hits)); 507 GURL("http://192.168.0.1/malware.html"), &prefix_hits, &cache_hits)) 740 std::vector<SBPrefix> prefix_hits; local 816 std::vector<SBPrefix> prefix_hits; local 1024 EXPECT_EQ(SBPrefixForString(kExampleFine), prefix_hits[0]); local 1135 std::vector<SBPrefix> prefix_hits; local 1141 EXPECT_EQ(SBPrefixForString(kEvil1Url1), prefix_hits[0]); local 1146 EXPECT_EQ(SBPrefixForString(kEvil1Url2), prefix_hits[0]); local 1151 EXPECT_EQ(SBPrefixForString(kEvil1Url2), prefix_hits[0]); local 1156 EXPECT_EQ(SBPrefixForString(kEvil1Url2), prefix_hits[0]); local 1165 EXPECT_EQ(SBPrefixForString(kEvil1Url2), prefix_hits[0]); local 1171 EXPECT_EQ(SBPrefixForString(kEvil1Url1), prefix_hits[0]); local 1179 EXPECT_EQ(SBPrefixForString(kEvil1Url1), prefix_hits[0]); local 1188 EXPECT_EQ(SBPrefixForString(kEvil1Url1), prefix_hits[0]); local 1196 EXPECT_EQ(SBPrefixForString(kEvil1Url1), prefix_hits[0]); local 1204 EXPECT_EQ(SBPrefixForString(kEvil1Url1), prefix_hits[0]); local 1205 EXPECT_EQ(SBPrefixForString(kEvil1Url2), prefix_hits[1]); local 1446 std::vector<SBPrefix> prefix_hits; local 1553 std::vector<SBPrefix> prefix_hits; local 1614 std::vector<SBPrefix> prefix_hits; local 1662 std::vector<SBPrefix> prefix_hits; local 1713 std::vector<SBPrefix> prefix_hits; local 1749 std::vector<SBPrefix> prefix_hits; local 1762 std::vector<SBPrefix> prefix_hits; local 1801 std::vector<SBPrefix> prefix_hits; local 1843 std::vector<SBPrefix> prefix_hits; local 1881 std::vector<SBPrefix> prefix_hits; local 1918 std::vector<SBPrefix> prefix_hits; local 1946 std::vector<SBPrefix> prefix_hits; local 1963 std::vector<SBPrefix> prefix_hits; local 1983 std::vector<SBPrefix> prefix_hits; local 2103 std::vector<SBPrefix> prefix_hits; local 2118 EXPECT_EQ(SBPrefixForString(kWhateverMalware), prefix_hits[0]); local 2132 EXPECT_EQ(SBPrefixForString(kExampleCollision), prefix_hits[0]); local [all...] |
safe_browsing_database.h | 96 // as a miss. If it returns true, |prefix_hits| contains matching hash 101 std::vector<SBPrefix>* prefix_hits, 105 // true, |prefix_hits| should contain the prefixes for the URLs that were in 108 std::vector<SBPrefix>* prefix_hits) = 0; 126 // Populates |prefix_hits| with any prefixes in |prefixes| that have matches 132 std::vector<SBPrefix>* prefix_hits) = 0; 297 std::vector<SBPrefix>* prefix_hits, 300 std::vector<SBPrefix>* prefix_hits) OVERRIDE; 307 std::vector<SBPrefix>* prefix_hits) OVERRIDE; 348 std::vector<SBPrefix>* prefix_hits, [all...] |
safe_browsing_service_browsertest.cc | 130 std::vector<SBPrefix>* prefix_hits, 136 prefix_hits); 140 std::vector<SBPrefix>* prefix_hits) OVERRIDE { 144 prefix_hits); 147 DCHECK_LE(1U, prefix_hits->size()); 162 std::vector<SBPrefix>* prefix_hits) OVERRIDE { 203 const std::vector<SBPrefix>& prefix_hits) { 205 badurls_[url.spec()].prefix_hits = prefix_hits; 216 std::vector<SBPrefix> prefix_hits; member in struct:__anon9238::TestSafeBrowsingDatabase::Hits 426 std::vector<SBPrefix> prefix_hits; local [all...] |
database_manager.cc | 424 std::vector<SBPrefix> prefix_hits; local 428 database_->ContainsBrowseUrl(url, &prefix_hits, &cache_hits); 443 check->prefix_hits.swap(prefix_hits); 495 std::vector<SBPrefix> prefixes = check->prefix_hits; 744 if (check->prefix_hits.size() == 1) { 745 SBPrefix prefix = check->prefix_hits[0]; 766 check->prefix_hits, 985 std::vector<SBPrefix> prefix_hits; local [all...] |
safe_browsing_database.cc | 170 // Returns true if there is a match, |*prefix_hits| (if non-NULL) will contain 175 std::vector<SBPrefix>* prefix_hits) { 176 prefix_hits->clear(); 187 prefix_hits->push_back(prefix); 636 std::vector<SBPrefix>* prefix_hits, 639 prefix_hits->clear(); 647 return ContainsBrowseUrlHashes(full_hashes, prefix_hits, cache_hits); 652 std::vector<SBPrefix>* prefix_hits, 674 prefix_hits->push_back(full_hashes[i].prefix); 679 std::sort(prefix_hits->begin(), prefix_hits->end()) [all...] |
database_manager.h | 79 std::vector<SBPrefix> prefix_hits; member in struct:SafeBrowsingDatabaseManager::SafeBrowsingCheck
|