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

Side by Side Diff: courgette/consecutive_range_visitor_unittest.cc

Issue 1543643002: Switch to standard integer types in courgette/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 4 years, 12 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
« no previous file with comments | « courgette/consecutive_range_visitor.h ('k') | courgette/courgette_tool.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #include "courgette/consecutive_range_visitor.h" 5 #include "courgette/consecutive_range_visitor.h"
6 6
7 #include <stddef.h>
8
7 #include <string> 9 #include <string>
8 10
9 #include "testing/gtest/include/gtest/gtest.h" 11 #include "testing/gtest/include/gtest/gtest.h"
10 12
11 namespace courgette { 13 namespace courgette {
12 14
13 TEST(ConsecutiveRangeVisitorTest, Basic) { 15 TEST(ConsecutiveRangeVisitorTest, Basic) {
14 std::string s = "AAAAABZZZZOO"; 16 std::string s = "AAAAABZZZZOO";
15 ConsecutiveRangeVisitor<std::string::iterator> vis(s.begin(), s.end()); 17 ConsecutiveRangeVisitor<std::string::iterator> vis(s.begin(), s.end());
16 EXPECT_TRUE(vis.has_more()); 18 EXPECT_TRUE(vis.has_more());
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 } 63 }
62 } 64 }
63 65
64 TEST(ConsecutiveRangeVisitorTest, Empty) { 66 TEST(ConsecutiveRangeVisitorTest, Empty) {
65 std::string s; 67 std::string s;
66 ConsecutiveRangeVisitor<std::string::iterator> vis(s.begin(), s.end()); 68 ConsecutiveRangeVisitor<std::string::iterator> vis(s.begin(), s.end());
67 EXPECT_FALSE(vis.has_more()); 69 EXPECT_FALSE(vis.has_more());
68 } 70 }
69 71
70 } // namespace courgette 72 } // namespace courgette
OLDNEW
« no previous file with comments | « courgette/consecutive_range_visitor.h ('k') | courgette/courgette_tool.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698