HomeSort by relevance Sort by last modified time
    Searched refs:SBFullHash (Results 1 - 25 of 39) sorted by null

1 2

  /external/chromium/chrome/browser/safe_browsing/
safe_browsing_store_unittest_helper.h 17 // Helper to make it easy to initialize SBFullHash constants.
18 inline const SBFullHash SBFullHashFromString(const char* str) {
19 SBFullHash h;
26 inline bool SBFullHashEq(const SBFullHash& a, const SBFullHash& b) {
safe_browsing_util.h 34 union SBFullHash {
39 inline bool operator==(const SBFullHash& lhash, const SBFullHash& rhash) {
40 return memcmp(lhash.full_hash, rhash.full_hash, sizeof(SBFullHash)) == 0;
43 inline bool operator<(const SBFullHash& lhash, const SBFullHash& rhash) {
44 return memcmp(lhash.full_hash, rhash.full_hash, sizeof(SBFullHash)) < 0;
108 SBFullHash hash;
181 return IsPrefix() ? sizeof(SBPrefix) : sizeof(SBFullHash);
194 const SBFullHash& FullHashAt(int index) const
    [all...]
safe_browsing_store.h 27 // List of SBAddFullHash (SBAddPrefix, time received and an SBFullHash).
28 // List of SBSubFullHash (chunk_id, target SBAddPrefix, and an SBFullHash).
71 SBFullHash full_hash;
73 SBAddFullHash(int32 id, base::Time r, const SBFullHash& h)
81 SBAddFullHash(int32 id, int32 r, const SBFullHash& h)
93 SBFullHash full_hash;
95 SBSubFullHash(int32 id, int32 add_id, const SBFullHash& h)
199 const SBFullHash& full_hash) = 0;
203 const SBFullHash& full_hash) = 0;
safe_browsing_store_unittest.cc 24 // The first four bytes of SBFullHash can be read as an int32, which
28 SBFullHash one, onetwo, two;
79 SBFullHash one, onetwo, two;
132 const SBFullHash kHash1(SBFullHashFromString("one"));
133 const SBFullHash kHash2(SBFullHashFromString("two"));
134 const SBFullHash kHash3(SBFullHashFromString("three"));
139 SBFullHash kHash1mod1 = kHash1;
141 SBFullHash kHash1mod2 = kHash1mod1;
143 SBFullHash kHash1mod3 = kHash1mod2;
195 const SBFullHash kHash1(SBFullHashFromString("one"))
    [all...]
protocol_parser.cc 106 DCHECK(static_cast<size_t>(full_hash_len) >= sizeof(SBFullHash));
107 memcpy(&full_hash.hash, data, sizeof(SBFullHash));
109 data += sizeof(SBFullHash);
110 length -= sizeof(SBFullHash);
111 full_hash_len -= sizeof(SBFullHash);
291 if (hash_len != sizeof(SBPrefix) && hash_len != sizeof(SBFullHash)) {
446 entry->SetFullHashAt(i, *reinterpret_cast<const SBFullHash*>(*data));
safe_browsing_store_file.h 128 const SBFullHash& full_hash);
132 const SBFullHash& full_hash);
safe_browsing_util.cc 94 return sizeof(SBFullHash);
136 const SBFullHash& SBEntry::FullHashAt(int index) const {
151 void SBEntry::SetFullHashAt(int index, const SBFullHash& full_hash) {
418 int GetHashIndex(const SBFullHash& hash,
438 SBFullHash key;
441 sizeof(SBFullHash));
522 void StringToSBFullHash(const std::string& hash_in, SBFullHash* hash_out) {
527 std::string SBFullHashToString(const SBFullHash& hash) {
safe_browsing_util_unittest.cc 288 sizeof(SBFullHash));
341 SBFullHash hash_out;
344 EXPECT_EQ(0, memcmp(hash_in.data(), hash_out.full_hash, sizeof(SBFullHash)));
safe_browsing_store_unittest_helper.cc 20 const SBFullHash kHash1 = SBFullHashFromString("one");
21 const SBFullHash kHash2 = SBFullHashFromString("two");
22 const SBFullHash kHash3 = SBFullHashFromString("three");
23 const SBFullHash kHash4 = SBFullHashFromString("four");
24 const SBFullHash kHash5 = SBFullHashFromString("five");
protocol_parser_unittest.cc 61 SBFullHash full_hash1, full_hash2;
297 SBFullHash full_hash1, full_hash2;
486 sizeof(SBFullHash)), 0);
490 sizeof(SBFullHash)), 0);
494 sizeof(SBFullHash)), 0);
512 sizeof(SBFullHash)), 0);
516 sizeof(SBFullHash)), 0);
520 sizeof(SBFullHash)), 0);
557 EXPECT_EQ(memcmp(hash_result, &full_hashes[0].hash, sizeof(SBFullHash)), 0);
577 &full_hashes[0].hash, sizeof(SBFullHash)), 0)
    [all...]
  /external/chromium_org/chrome/browser/safe_browsing/
safe_browsing_store_unittest_helper.h 16 // Helper to make it easy to initialize SBFullHash constants.
17 inline const SBFullHash SBFullHashFromString(const char* str) {
18 SBFullHash h;
25 inline bool SBFullHashEq(const SBFullHash& a, const SBFullHash& b) {
safe_browsing_util.h 33 union SBFullHash {
38 inline bool operator==(const SBFullHash& lhash, const SBFullHash& rhash) {
39 return memcmp(lhash.full_hash, rhash.full_hash, sizeof(SBFullHash)) == 0;
42 inline bool operator<(const SBFullHash& lhash, const SBFullHash& rhash) {
43 return memcmp(lhash.full_hash, rhash.full_hash, sizeof(SBFullHash)) < 0;
107 SBFullHash hash;
208 return IsPrefix() ? sizeof(SBPrefix) : sizeof(SBFullHash);
221 const SBFullHash& FullHashAt(int index) const
    [all...]
safe_browsing_store.h 27 // List of SBAddFullHash (SBAddPrefix, time received and an SBFullHash).
28 // List of SBSubFullHash (chunk_id, target SBAddPrefix, and an SBFullHash).
75 SBFullHash full_hash;
77 SBAddFullHash(int32 id, base::Time r, const SBFullHash& h)
85 SBAddFullHash(int32 id, int32 r, const SBFullHash& h)
97 SBFullHash full_hash;
99 SBSubFullHash(int32 id, int32 add_id, const SBFullHash& h)
194 const SBFullHash& full_hash) = 0;
198 const SBFullHash& full_hash) = 0;
safe_browsing_store_unittest.cc 24 // The first four bytes of SBFullHash can be read as an int32, which
28 SBFullHash one, onetwo, two;
79 SBFullHash one, onetwo, two;
132 const SBFullHash kHash1(SBFullHashFromString("one"));
133 const SBFullHash kHash2(SBFullHashFromString("two"));
134 const SBFullHash kHash3(SBFullHashFromString("three"));
135 const SBFullHash kHash4(SBFullHashFromString("four"));
140 SBFullHash kHash1mod1 = kHash1;
142 SBFullHash kHash1mod2 = kHash1mod1;
144 SBFullHash kHash1mod3 = kHash1mod2
    [all...]
database_manager_unittest.cc 69 const SBFullHash same_full_hash = {};
74 std::vector<SBFullHash>(1, same_full_hash),
protocol_parser.cc 80 DCHECK(static_cast<size_t>(full_hash_len) >= sizeof(SBFullHash));
81 memcpy(&full_hash.hash, data, sizeof(SBFullHash));
83 data += sizeof(SBFullHash);
84 length -= sizeof(SBFullHash);
85 full_hash_len -= sizeof(SBFullHash);
217 if (hash_len != sizeof(SBPrefix) && hash_len != sizeof(SBFullHash)) {
414 SBFullHash hash;
safe_browsing_util.cc 86 return sizeof(SBFullHash);
128 const SBFullHash& SBEntry::FullHashAt(int index) const {
143 void SBEntry::SetFullHashAt(int index, const SBFullHash& full_hash) {
475 int GetHashIndex(const SBFullHash& hash,
493 SBFullHash key;
494 crypto::SHA256HashString(patterns[i], key.full_hash, sizeof(SBFullHash));
543 SBFullHash StringToSBFullHash(const std::string& hash_in) {
545 SBFullHash hash_out;
550 std::string SBFullHashToString(const SBFullHash& hash) {
protocol_parser_unittest.cc 62 SBFullHash full_hash1, full_hash2;
299 SBFullHash full_hash1, full_hash2;
441 sizeof(SBFullHash)), 0);
445 sizeof(SBFullHash)), 0);
449 sizeof(SBFullHash)), 0);
465 sizeof(SBFullHash)), 0);
469 sizeof(SBFullHash)), 0);
473 sizeof(SBFullHash)), 0);
490 &full_hashes[0].hash, sizeof(SBFullHash)), 0);
503 &full_hashes[0].hash, sizeof(SBFullHash)), 0)
    [all...]
safe_browsing_store_file.h 128 const SBFullHash& full_hash) OVERRIDE;
132 const SBFullHash& full_hash) OVERRIDE;
safe_browsing_util_unittest.cc 288 sizeof(SBFullHash));
341 SBFullHash hash_out = safe_browsing_util::StringToSBFullHash(hash_in);
343 EXPECT_EQ(0, memcmp(hash_in.data(), hash_out.full_hash, sizeof(SBFullHash)));
safe_browsing_store_unittest_helper.cc 19 const SBFullHash kHash1 = SBFullHashFromString("one");
20 const SBFullHash kHash2 = SBFullHashFromString("two");
21 const SBFullHash kHash3 = SBFullHashFromString("three");
22 const SBFullHash kHash4 = SBFullHashFromString("four");
23 const SBFullHash kHash5 = SBFullHashFromString("five");
safe_browsing_database.cc 120 std::vector<SBFullHash>* full_hashes) {
134 SBFullHash full_hash;
156 std::vector<SBFullHash> full_hashes;
691 std::vector<SBFullHash> full_hashes;
768 std::vector<SBFullHash> full_hashes;
774 std::vector<SBFullHash> full_hashes;
794 SBFullHash full_hash;
856 SBFullHash hash;
858 std::vector<SBFullHash> hashes;
    [all...]
database_manager.cc 76 const std::vector<SBFullHash>& full_hashes,
225 std::vector<SBFullHash>(),
247 std::vector<SBFullHash> full_hashes(
271 std::vector<SBFullHash> extension_id_hashes;
388 std::vector<SBFullHash>(),
574 std::vector<SBFullHash>(),
811 std::vector<SBFullHash>(),
    [all...]
database_manager.h 59 const std::vector<SBFullHash>& full_hashes,
70 std::vector<SBFullHash> full_hashes;
  /external/chromium_org/chrome/browser/extensions/
fake_safe_browsing_database_manager.cc 75 std::vector<SBFullHash> extension_id_hashes;

Completed in 790 milliseconds

1 2