Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(535)

Side by Side Diff: chrome/browser/safe_browsing/chunk_range_unittest.cc

Issue 42155: Remove logging.h from cc files that don't use it. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 // 4 //
5 // Test program to convert lists of integers into ranges, and vice versa. 5 // Test program to convert lists of integers into ranges, and vice versa.
6 6
7 #include "base/logging.h"
8 #include "chunk_range.h" 7 #include "chunk_range.h"
9 #include "testing/gtest/include/gtest/gtest.h" 8 #include "testing/gtest/include/gtest/gtest.h"
10 9
11 // Test formatting chunks into a string representation. 10 // Test formatting chunks into a string representation.
12 TEST(SafeBrowsingChunkRangeTest, TestRangesToString) { 11 TEST(SafeBrowsingChunkRangeTest, TestRangesToString) {
13 std::vector<ChunkRange> ranges; 12 std::vector<ChunkRange> ranges;
14 ranges.push_back(ChunkRange(1, 10)); 13 ranges.push_back(ChunkRange(1, 10));
15 ranges.push_back(ChunkRange(15, 17)); 14 ranges.push_back(ChunkRange(15, 17));
16 ranges.push_back(ChunkRange(21, 410)); 15 ranges.push_back(ChunkRange(21, 410));
17 ranges.push_back(ChunkRange(991, 1000)); 16 ranges.push_back(ChunkRange(991, 1000));
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 EXPECT_TRUE(IsChunkInRange(7, ranges)); 184 EXPECT_TRUE(IsChunkInRange(7, ranges));
186 EXPECT_TRUE(IsChunkInRange(300, ranges)); 185 EXPECT_TRUE(IsChunkInRange(300, ranges));
187 EXPECT_TRUE(IsChunkInRange(555, ranges)); 186 EXPECT_TRUE(IsChunkInRange(555, ranges));
188 EXPECT_TRUE(IsChunkInRange(1, ranges)); 187 EXPECT_TRUE(IsChunkInRange(1, ranges));
189 EXPECT_TRUE(IsChunkInRange(1000, ranges)); 188 EXPECT_TRUE(IsChunkInRange(1000, ranges));
190 189
191 EXPECT_FALSE(IsChunkInRange(11, ranges)); 190 EXPECT_FALSE(IsChunkInRange(11, ranges));
192 EXPECT_FALSE(IsChunkInRange(990, ranges)); 191 EXPECT_FALSE(IsChunkInRange(990, ranges));
193 EXPECT_FALSE(IsChunkInRange(2000, ranges)); 192 EXPECT_FALSE(IsChunkInRange(2000, ranges));
194 } 193 }
OLDNEW
« no previous file with comments | « chrome/browser/net/url_fixer_upper_unittest.cc ('k') | chrome/browser/safe_browsing/protocol_parser_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698