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

Unified Diff: net/quic/interval_set_test.cc

Issue 1535363003: Switch to standard integer types in net/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: stddef Created 5 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/quic/interval_set.h ('k') | net/quic/interval_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/interval_set_test.cc
diff --git a/net/quic/interval_set_test.cc b/net/quic/interval_set_test.cc
index e3c351f82053749daceee5e73d64447528d0bce7..d09c8170823077fee8864b61a13980729262e22b 100644
--- a/net/quic/interval_set_test.cc
+++ b/net/quic/interval_set_test.cc
@@ -417,8 +417,8 @@ TEST_F(IntervalSetTest, IntervalSetIntersectionMineBeforeTheirs) {
#if 0
TEST_F(IntervalSetTest,
IntervalSetIntersectionTheirsBeforeMineInt64Singletons) {
- IntervalSet<int64> mine({{10, 15}});
- IntervalSet<int64> theirs({{-20, -5}});
+ IntervalSet<int64_t> mine({{10, 15}});
+ IntervalSet<int64_t> theirs({{-20, -5}});
EXPECT_FALSE(mine.Intersects(theirs));
EXPECT_FALSE(theirs.Intersects(mine));
mine.Intersection(theirs);
@@ -439,8 +439,8 @@ TEST_F(IntervalSetTest, IntervalSetIntersectionMineBeforeTheirsIntSingletons) {
}
TEST_F(IntervalSetTest, IntervalSetIntersectionTheirsBetweenMine) {
- IntervalSet<int64> mine({{0, 5}, {40, 50}});
- IntervalSet<int64> theirs({{10, 15}});
+ IntervalSet<int64_t> mine({{0, 5}, {40, 50}});
+ IntervalSet<int64_t> theirs({{10, 15}});
EXPECT_FALSE(mine.Intersects(theirs));
EXPECT_FALSE(theirs.Intersects(mine));
mine.Intersection(theirs);
@@ -489,18 +489,18 @@ TEST_F(IntervalSetTest,
result1.Intersection(y1);
EXPECT_TRUE(result1.Empty()) << result1;
- const IntervalSet<int16> x2({{0, 10}, {20, 30}, {40, 90}});
- const IntervalSet<int16> y2(
+ const IntervalSet<int16_t> x2({{0, 10}, {20, 30}, {40, 90}});
+ const IntervalSet<int16_t> y2(
{{-50, -40}, {-2, 0}, {10, 20}, {32, 40}, {90, 95}});
- IntervalSet<int16> result2 = x2;
+ IntervalSet<int16_t> result2 = x2;
result2.Intersection(y2);
EXPECT_TRUE(result2.Empty()) << result2;
- const IntervalSet<int64> x3({{-1, 5}, {5, 10}});
- const IntervalSet<int64> y3({{-10, -1}, {10, 95}});
+ const IntervalSet<int64_t> x3({{-1, 5}, {5, 10}});
+ const IntervalSet<int64_t> y3({{-10, -1}, {10, 95}});
- IntervalSet<int64> result3 = x3;
+ IntervalSet<int64_t> result3 = x3;
result3.Intersection(y3);
EXPECT_TRUE(result3.Empty()) << result3;
}
@@ -515,21 +515,21 @@ TEST_F(IntervalSetTest,
result1.Intersection(y1);
EXPECT_EQ(result1, expected_result1);
- const IntervalSet<int16> x2({{0, 10}, {20, 30}, {40, 90}});
- const IntervalSet<int16> y2(
+ const IntervalSet<int16_t> x2({{0, 10}, {20, 30}, {40, 90}});
+ const IntervalSet<int16_t> y2(
{{-50, -40}, {-2, 2}, {9, 21}, {32, 41}, {85, 95}});
- const IntervalSet<int16> expected_result2(
+ const IntervalSet<int16_t> expected_result2(
{{0, 2}, {9, 10}, {20, 21}, {40, 41}, {85, 90}});
- IntervalSet<int16> result2 = x2;
+ IntervalSet<int16_t> result2 = x2;
result2.Intersection(y2);
EXPECT_EQ(result2, expected_result2);
- const IntervalSet<int64> x3({{-1, 5}, {5, 10}});
- const IntervalSet<int64> y3({{-10, 3}, {4, 95}});
- const IntervalSet<int64> expected_result3({{-1, 3}, {4, 10}});
+ const IntervalSet<int64_t> x3({{-1, 5}, {5, 10}});
+ const IntervalSet<int64_t> y3({{-10, 3}, {4, 95}});
+ const IntervalSet<int64_t> expected_result3({{-1, 3}, {4, 10}});
- IntervalSet<int64> result3 = x3;
+ IntervalSet<int64_t> result3 = x3;
result3.Intersection(y3);
EXPECT_EQ(result3, expected_result3);
}
« no previous file with comments | « net/quic/interval_set.h ('k') | net/quic/interval_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698