Lines Matching defs:full_hashes
474 std::vector<SBFullHashResult> full_hashes;
480 &full_hashes));
483 EXPECT_EQ(full_hashes.size(), 3U);
484 EXPECT_EQ(memcmp(&full_hashes[0].hash,
487 EXPECT_EQ(full_hashes[0].list_name, "goog-phish-shavar");
488 EXPECT_EQ(memcmp(&full_hashes[1].hash,
491 EXPECT_EQ(full_hashes[1].list_name, "goog-phish-shavar");
492 EXPECT_EQ(memcmp(&full_hashes[2].hash,
495 EXPECT_EQ(full_hashes[2].list_name, "goog-phish-shavar");
506 &full_hashes));
509 EXPECT_EQ(full_hashes.size(), 3U);
510 EXPECT_EQ(memcmp(&full_hashes[0].hash,
513 EXPECT_EQ(full_hashes[0].list_name, "goog-phish-shavar");
514 EXPECT_EQ(memcmp(&full_hashes[1].hash,
517 EXPECT_EQ(full_hashes[1].list_name, "goog-malware-shavar");
518 EXPECT_EQ(memcmp(&full_hashes[2].hash,
521 EXPECT_EQ(full_hashes[2].list_name, "goog-malware-shavar");
547 std::vector<SBFullHashResult> full_hashes;
554 &full_hashes));
556 EXPECT_EQ(full_hashes.size(), 1U);
557 EXPECT_EQ(memcmp(hash_result, &full_hashes[0].hash, sizeof(SBFullHash)), 0);
567 std::vector<SBFullHashResult> full_hashes;
573 &full_hashes));
575 EXPECT_EQ(full_hashes.size(), 1U);
577 &full_hashes[0].hash, sizeof(SBFullHash)), 0);
578 EXPECT_EQ(full_hashes[0].list_name, "goog-phish-shavar");
579 EXPECT_EQ(full_hashes[0].add_chunk_id, 1);
583 full_hashes.clear();
588 &full_hashes));
590 EXPECT_EQ(full_hashes.size(), 2U);
592 &full_hashes[0].hash, sizeof(SBFullHash)), 0);
593 EXPECT_EQ(full_hashes[0].list_name, "goog-phish-shavar");
594 EXPECT_EQ(full_hashes[0].add_chunk_id, 1);
596 &full_hashes[1].hash, sizeof(SBFullHash)), 0);
597 EXPECT_EQ(full_hashes[1].list_name, "goog-malware-shavar");
598 EXPECT_EQ(full_hashes[1].add_chunk_id, 7);