/external/chromium/chrome/browser/safe_browsing/ |
safe_browsing_store_unittest.cc | 115 std::vector<SBAddPrefix> add_prefixes; local 121 SBProcessSubs(&add_prefixes, &sub_prefixes, &add_hashes, &sub_hashes, 123 EXPECT_TRUE(add_prefixes.empty()); 146 std::vector<SBAddPrefix> add_prefixes; local 153 add_prefixes.push_back(SBAddPrefix(kAddChunk1, kHash1.prefix)); 162 add_prefixes.push_back(SBAddPrefix(kAddChunk1, kHash2.prefix)); 169 SBProcessSubs(&add_prefixes, &sub_prefixes, &add_hashes, &sub_hashes, 172 EXPECT_EQ(1U, add_prefixes.size()); 173 EXPECT_EQ(kAddChunk1, add_prefixes[0].chunk_id); 174 EXPECT_EQ(kHash2.prefix, add_prefixes[0].prefix) 209 std::vector<SBAddPrefix> add_prefixes; local [all...] |
safe_browsing_store_file_unittest.cc | 124 std::vector<SBAddPrefix> add_prefixes; local 129 &add_prefixes, &add_hashes)); 131 EXPECT_EQ(add_prefixes.size(), 0U);
|
safe_browsing_store_file.cc | 288 std::vector<SBAddPrefix>* add_prefixes) { 289 add_prefixes->clear(); 303 if (!ReadToVector(add_prefixes, header.add_prefix_count, file.get(), NULL)) 484 std::vector<SBAddPrefix> add_prefixes; local 513 if (!ReadToVector(&add_prefixes, header.add_prefix_count, 583 if (!ReadToVector(&add_prefixes, header.add_prefix_count, 600 SBCheckPrefixMisses(add_prefixes, prefix_misses); 603 SBProcessSubs(&add_prefixes, &sub_prefixes, 624 header.add_prefix_count = add_prefixes.size(); 634 !WriteVector(add_prefixes, new_file_.get(), &context) | [all...] |
safe_browsing_database.cc | 254 // |add_prefixes|. Additionally performs various checks to make sure 259 const std::vector<SBAddPrefix>& add_prefixes) { 260 // TODO(shess): If |add_prefixes| were sorted by the prefix, it 265 for (size_t i = 0; i < add_prefixes.size(); ++i) { 266 prefixes.push_back(add_prefixes[i].prefix); 664 std::vector<SBAddPrefix> add_prefixes; local 665 download_store_->GetAddPrefixes(&add_prefixes); 666 for (size_t i = 0; i < add_prefixes.size(); ++i) { 669 if (prefix == add_prefixes[i].prefix && 670 GetListIdBit(add_prefixes[i].chunk_id) == list_bit) 1117 std::vector<SBAddPrefix> add_prefixes; local 1242 std::vector<SBAddPrefix> add_prefixes; local [all...] |
/external/chromium_org/chrome/browser/safe_browsing/ |
safe_browsing_store_unittest.cc | 115 SBAddPrefixes add_prefixes; local 121 SBProcessSubs(&add_prefixes, &sub_prefixes, &add_hashes, &sub_hashes, 123 EXPECT_TRUE(add_prefixes.empty()); 151 SBAddPrefixes add_prefixes; local 158 add_prefixes.push_back(SBAddPrefix(kAddChunk1, kHash1.prefix)); 167 add_prefixes.push_back(SBAddPrefix(kAddChunk1, kHash2.prefix)); 175 add_prefixes.push_back(SBAddPrefix(kAddChunk1, kHash4.prefix)); 181 SBProcessSubs(&add_prefixes, &sub_prefixes, &add_hashes, &sub_hashes, 184 ASSERT_LE(2U, add_prefixes.size()); 185 EXPECT_EQ(2U, add_prefixes.size()) 229 SBAddPrefixes add_prefixes; local [all...] |
safe_browsing_store_file_unittest.cc | 105 SBAddPrefixes add_prefixes; local 109 EXPECT_FALSE(store_->FinishUpdate(pending_adds, &add_prefixes, &add_hashes)); 111 EXPECT_EQ(add_prefixes.size(), 0U);
|
safe_browsing_store_file.cc | 292 bool SafeBrowsingStoreFile::GetAddPrefixes(SBAddPrefixes* add_prefixes) { 293 add_prefixes->clear(); 307 if (!ReadToContainer(add_prefixes, header.add_prefix_count, file.get(), NULL)) 486 SBAddPrefixes add_prefixes; local 515 if (!ReadToContainer(&add_prefixes, header.add_prefix_count, 587 if (!ReadToContainer(&add_prefixes, header.add_prefix_count, 603 SBProcessSubs(&add_prefixes, &sub_prefixes, 624 header.add_prefix_count = add_prefixes.size(); 634 !WriteContainer(add_prefixes, new_file_.get(), &context) || 661 UMA_HISTOGRAM_COUNTS("SB2.AddPrefixes", add_prefixes.size()) [all...] |
safe_browsing_database.cc | 176 SBAddPrefixes add_prefixes; local 177 store->GetAddPrefixes(&add_prefixes); 178 for (SBAddPrefixes::const_iterator iter = add_prefixes.begin(); 179 iter != add_prefixes.end(); ++iter) { 1422 SBAddPrefixes add_prefixes; local 1503 SBAddPrefixes add_prefixes; local [all...] |