Home
last modified time | relevance | path

Searched refs:SBSubPrefix (Results 1 – 7 of 7) sorted by relevance

/external/chromium/chrome/browser/safe_browsing/
Dsafe_browsing_store_unittest.cc65 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 …]
Dsafe_browsing_store.cc168 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()
Dsafe_browsing_store.h55 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,
Dsafe_browsing_store_file.h225 std::vector<SBSubPrefix>().swap(sub_prefixes_); in ClearChunkBuffers()
244 std::vector<SBSubPrefix> sub_prefixes_;
Dsafe_browsing_store_file.cc171 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()
Dsafe_browsing_util.h203 struct SBSubPrefix { struct
250 SBSubPrefix sub_prefixes_[1];
Dsafe_browsing_util.cc96 return sizeof(SBSubPrefix); in PrefixSize()