Searched refs:SBSubPrefix (Results 1 – 7 of 7) sorted by relevance
/external/chromium/chrome/browser/safe_browsing/ |
D | safe_browsing_store_unittest.cc | 65 EXPECT_TRUE(SBAddPrefixLess(SBSubPrefix(12, 10, 2), SBSubPrefix(9, 11, 1))); in TEST() 66 EXPECT_FALSE(SBAddPrefixLess(SBSubPrefix(12, 11, 2), SBSubPrefix(9, 10, 1))); in TEST() 69 EXPECT_TRUE(SBAddPrefixLess(SBSubPrefix(12, 10, 1), SBSubPrefix(9, 10, 2))); in TEST() 70 EXPECT_FALSE(SBAddPrefixLess(SBSubPrefix(12, 10, 2), SBSubPrefix(9, 10, 1))); in TEST() 73 EXPECT_FALSE(SBAddPrefixLess(SBSubPrefix(12, 10, 1), SBSubPrefix(12, 10, 1))); in TEST() 117 std::vector<SBSubPrefix> sub_prefixes; in TEST() 148 std::vector<SBSubPrefix> sub_prefixes; in TEST() 156 sub_prefixes.push_back(SBSubPrefix(kSubChunk1, kAddChunk1, kHash1.prefix)); in TEST() 166 sub_prefixes.push_back(SBSubPrefix(kSubChunk1, kAddChunk1, kHash3.prefix)); in TEST() 211 std::vector<SBSubPrefix> sub_prefixes; in TEST() [all …]
|
D | safe_browsing_store.cc | 168 std::vector<SBSubPrefix>* sub_prefixes, in SBProcessSubs() 182 SBAddPrefixLess<SBSubPrefix,SBSubPrefix>); in SBProcessSubs() 191 SBAddPrefixLess<SBAddPrefix,SBSubPrefix>, in SBProcessSubs() 192 SBAddPrefixLess<SBSubPrefix,SBAddPrefix>, in SBProcessSubs()
|
D | safe_browsing_store.h | 55 struct SBSubPrefix { struct 60 SBSubPrefix(int32 id, int32 add_id, int prefix) in SBSubPrefix() function 62 SBSubPrefix() : chunk_id(), add_chunk_id(), add_prefix() {} in SBSubPrefix() function 143 std::vector<SBSubPrefix>* sub_prefixes,
|
D | safe_browsing_store_file.h | 225 std::vector<SBSubPrefix>().swap(sub_prefixes_); in ClearChunkBuffers() 244 std::vector<SBSubPrefix> sub_prefixes_;
|
D | safe_browsing_store_file.cc | 171 expected_size += header.sub_prefix_count * sizeof(SBSubPrefix); in FileHeaderSanityCheck() 324 header.sub_prefix_count * sizeof(SBSubPrefix); in GetAddFullHashes() 344 sub_prefixes_.push_back(SBSubPrefix(chunk_id, add_chunk_id, prefix)); in WriteSubPrefix() 485 std::vector<SBSubPrefix> sub_prefixes; in DoUpdate() 570 expected_size += header.sub_prefix_count * sizeof(SBSubPrefix); in DoUpdate()
|
D | safe_browsing_util.h | 203 struct SBSubPrefix { struct 250 SBSubPrefix sub_prefixes_[1];
|
D | safe_browsing_util.cc | 96 return sizeof(SBSubPrefix); in PrefixSize()
|