diff options
Diffstat (limited to 'chrome/browser/safe_browsing/chunk_range_unittest.cc')
-rw-r--r-- | chrome/browser/safe_browsing/chunk_range_unittest.cc | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/chrome/browser/safe_browsing/chunk_range_unittest.cc b/chrome/browser/safe_browsing/chunk_range_unittest.cc index bc409aa..e467dfd 100644 --- a/chrome/browser/safe_browsing/chunk_range_unittest.cc +++ b/chrome/browser/safe_browsing/chunk_range_unittest.cc @@ -48,7 +48,7 @@ TEST(SafeBrowsingChunkRangeTest, TestChunksToRanges) { chunks.push_back(4); chunks.push_back(7); ChunksToRanges(chunks, &ranges); - EXPECT_EQ(ranges.size(), 2); + EXPECT_EQ(ranges.size(), static_cast<size_t>(2)); EXPECT_EQ(ranges[0].start(), 1); EXPECT_EQ(ranges[0].stop(), 4); EXPECT_EQ(ranges[1].start(), 7); @@ -67,7 +67,7 @@ TEST(SafeBrowsingChunkRangeTest, TestChunksToRanges) { chunks.push_back(9); chunks.push_back(10); ChunksToRanges(chunks, &ranges); - EXPECT_EQ(ranges.size(), 1); + EXPECT_EQ(ranges.size(), static_cast<size_t>(1)); EXPECT_EQ(ranges[0].start(), 3); EXPECT_EQ(ranges[0].stop(), 10); @@ -84,7 +84,7 @@ TEST(SafeBrowsingChunkRangeTest, TestChunksToRanges) { chunks.push_back(15); chunks.push_back(17); ChunksToRanges(chunks, &ranges); - EXPECT_EQ(ranges.size(), 8); + EXPECT_EQ(ranges.size(), static_cast<size_t>(8)); chunks.clear(); ranges.clear(); @@ -92,7 +92,7 @@ TEST(SafeBrowsingChunkRangeTest, TestChunksToRanges) { // Test a single chunk number. chunks.push_back(17); ChunksToRanges(chunks, &ranges); - EXPECT_EQ(ranges.size(), 1); + EXPECT_EQ(ranges.size(), static_cast<size_t>(1)); EXPECT_EQ(ranges[0].start(), 17); EXPECT_EQ(ranges[0].stop(), 17); @@ -110,7 +110,7 @@ TEST(SafeBrowsingChunkRangeTest, TestChunksToRanges) { chunks.push_back(7); chunks.push_back(7); ChunksToRanges(chunks, &ranges); - EXPECT_EQ(ranges.size(), 2); + EXPECT_EQ(ranges.size(), static_cast<size_t>(2)); EXPECT_EQ(ranges[0].start(), 1); EXPECT_EQ(ranges[0].stop(), 3); EXPECT_EQ(ranges[1].start(), 7); @@ -123,7 +123,7 @@ TEST(SafeBrowsingChunkRangeTest, TestStringToRanges) { std::string input = "1-100,398,415,1138-2001,2019"; EXPECT_TRUE(StringToRanges(input, &ranges)); - EXPECT_EQ(ranges.size(), 5); + EXPECT_EQ(ranges.size(), static_cast<size_t>(5)); EXPECT_EQ(ranges[0].start(), 1); EXPECT_EQ(ranges[0].stop(), 100); EXPECT_EQ(ranges[1].start(), 398); @@ -135,13 +135,13 @@ TEST(SafeBrowsingChunkRangeTest, TestStringToRanges) { input = "1,2,3,4,5,6,7"; EXPECT_TRUE(StringToRanges(input, &ranges)); - EXPECT_EQ(ranges.size(), 7); + EXPECT_EQ(ranges.size(), static_cast<size_t>(7)); ranges.clear(); input = "300-3001"; EXPECT_TRUE(StringToRanges(input, &ranges)); - EXPECT_EQ(ranges.size(), 1); + EXPECT_EQ(ranges.size(), static_cast<size_t>(1)); EXPECT_EQ(ranges[0].start(), 300); EXPECT_EQ(ranges[0].stop(), 3001); @@ -149,7 +149,7 @@ TEST(SafeBrowsingChunkRangeTest, TestStringToRanges) { input = "17"; EXPECT_TRUE(StringToRanges(input, &ranges)); - EXPECT_EQ(ranges.size(), 1); + EXPECT_EQ(ranges.size(), static_cast<size_t>(1)); EXPECT_EQ(ranges[0].start(), 17); EXPECT_EQ(ranges[0].stop(), 17); @@ -168,7 +168,7 @@ TEST(SafeBrowsingChunkRangeTest, TestRangesToChunks) { std::vector<int> chunks; RangesToChunks(ranges, &chunks); - EXPECT_EQ(chunks.size(), 5); + EXPECT_EQ(chunks.size(), static_cast<size_t>(5)); EXPECT_EQ(chunks[0], 1); EXPECT_EQ(chunks[1], 2); EXPECT_EQ(chunks[2], 3); |