/external/chromium/chrome/browser/safe_browsing/ |
safe_browsing_store_unittest.cc | 117 std::vector<SBSubPrefix> sub_prefixes; local 121 SBProcessSubs(&add_prefixes, &sub_prefixes, &add_hashes, &sub_hashes, 124 EXPECT_TRUE(sub_prefixes.empty()); 148 std::vector<SBSubPrefix> sub_prefixes; local 156 sub_prefixes.push_back(SBSubPrefix(kSubChunk1, kAddChunk1, kHash1.prefix)); 166 sub_prefixes.push_back(SBSubPrefix(kSubChunk1, kAddChunk1, kHash3.prefix)); 169 SBProcessSubs(&add_prefixes, &sub_prefixes, &add_hashes, &sub_hashes, 180 EXPECT_EQ(1U, sub_prefixes.size()); 181 EXPECT_EQ(kSubChunk1, sub_prefixes[0].chunk_id); 182 EXPECT_EQ(kAddChunk1, sub_prefixes[0].add_chunk_id) 211 std::vector<SBSubPrefix> sub_prefixes; local [all...] |
safe_browsing_store_file.cc | 485 std::vector<SBSubPrefix> sub_prefixes; local 515 !ReadToVector(&sub_prefixes, header.sub_prefix_count, 585 !ReadToVector(&sub_prefixes, header.sub_prefix_count, 603 SBProcessSubs(&add_prefixes, &sub_prefixes, 625 header.sub_prefix_count = sub_prefixes.size(); 635 !WriteVector(sub_prefixes, new_file_.get(), &context) || 662 UMA_HISTOGRAM_COUNTS("SB2.SubPrefixes", sub_prefixes.size());
|
/external/chromium_org/chrome/browser/safe_browsing/ |
safe_browsing_store_unittest.cc | 117 SBSubPrefixes sub_prefixes; local 121 SBProcessSubs(&add_prefixes, &sub_prefixes, &add_hashes, &sub_hashes, 124 EXPECT_TRUE(sub_prefixes.empty()); 153 SBSubPrefixes sub_prefixes; local 161 sub_prefixes.push_back(SBSubPrefix(kSubChunk1, kAddChunk1, kHash1.prefix)); 171 sub_prefixes.push_back(SBSubPrefix(kSubChunk1, kAddChunk1, kHash3.prefix)); 181 SBProcessSubs(&add_prefixes, &sub_prefixes, &add_hashes, &sub_hashes, 198 ASSERT_LE(1U, sub_prefixes.size()); 199 EXPECT_EQ(1U, sub_prefixes.size()); 200 EXPECT_EQ(kSubChunk1, sub_prefixes[0].chunk_id) 231 SBSubPrefixes sub_prefixes; local [all...] |
safe_browsing_store_file.cc | 487 SBSubPrefixes sub_prefixes; local 517 !ReadToContainer(&sub_prefixes, header.sub_prefix_count, 589 !ReadToContainer(&sub_prefixes, header.sub_prefix_count, 603 SBProcessSubs(&add_prefixes, &sub_prefixes, 625 header.sub_prefix_count = sub_prefixes.size(); 635 !WriteContainer(sub_prefixes, new_file_.get(), &context) || 662 UMA_HISTOGRAM_COUNTS("SB2.SubPrefixes", sub_prefixes.size());
|