Searched refs:ChunkRange (Results 1 – 6 of 6) sorted by relevance
/external/chromium_org/chrome/browser/safe_browsing/ |
D | chunk_range.h | 23 class ChunkRange { 25 explicit ChunkRange(int start); 26 ChunkRange(int start, int stop); 27 ChunkRange(const ChunkRange& rhs); 32 bool operator==(const ChunkRange& rhs) const { 45 void RangesToChunks(const std::vector<ChunkRange>& ranges, 52 std::vector<ChunkRange>* ranges); 59 bool IsChunkInRange(int chunk_number, const std::vector<ChunkRange>& ranges);
|
D | chunk_range.cc | 16 ChunkRange::ChunkRange(int start) : start_(start), stop_(start) { in ChunkRange() function in ChunkRange 19 ChunkRange::ChunkRange(int start, int stop) : start_(start), stop_(stop) { in ChunkRange() function in ChunkRange 22 ChunkRange::ChunkRange(const ChunkRange& rhs) in ChunkRange() function in ChunkRange 55 void RangesToChunks(const std::vector<ChunkRange>& ranges, in RangesToChunks() 59 const ChunkRange& range = ranges[i]; in RangesToChunks() 67 std::vector<ChunkRange>* ranges) { in StringToRanges() 87 ranges->push_back(ChunkRange(start, stop)); in StringToRanges() 94 bool IsChunkInRange(int chunk_number, const std::vector<ChunkRange>& ranges) { in IsChunkInRange() 104 const ChunkRange& chunk = ranges[mid]; in IsChunkInRange()
|
D | chunk_range_unittest.cc | 92 std::vector<ChunkRange> ranges; in TEST() 134 std::vector<ChunkRange> ranges; in TEST() 135 ranges.push_back(ChunkRange(1, 4)); in TEST() 136 ranges.push_back(ChunkRange(17)); in TEST() 152 std::vector<ChunkRange> ranges; in TEST()
|
D | protocol_parser_unittest.cc | 315 EXPECT_TRUE(deletes[0].chunk_del[0] == ChunkRange(1, 7)); in TEST() 316 EXPECT_TRUE(deletes[0].chunk_del[1] == ChunkRange(43, 597)); in TEST() 317 EXPECT_TRUE(deletes[0].chunk_del[2] == ChunkRange(44444)); in TEST() 318 EXPECT_TRUE(deletes[0].chunk_del[3] == ChunkRange(99999)); in TEST() 321 EXPECT_TRUE(deletes[1].chunk_del[0] == ChunkRange(21, 27)); in TEST() 322 EXPECT_TRUE(deletes[1].chunk_del[1] == ChunkRange(42)); in TEST() 323 EXPECT_TRUE(deletes[1].chunk_del[2] == ChunkRange(171717)); in TEST()
|
D | safe_browsing_util.h | 122 std::vector<ChunkRange> chunk_del;
|
D | safe_browsing_database_unittest.cc | 288 chunk_delete.chunk_del.push_back(ChunkRange(chunk_id)); in DelChunk()
|