OLD | NEW |
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 // ---------------------------------------------------------------------- | 5 // ---------------------------------------------------------------------- |
6 // | 6 // |
7 // Unittest for the Interval class. | 7 // Unittest for the Interval class. |
8 // | 8 // |
9 // Author: Will Neveitt (wneveitt@google.com) | 9 // Author: Will Neveitt (wneveitt@google.com) |
10 // ---------------------------------------------------------------------- | 10 // ---------------------------------------------------------------------- |
11 | 11 |
12 #include "net/quic/interval.h" | 12 #include "net/quic/core/interval.h" |
13 | 13 |
14 #include "base/logging.h" | 14 #include "base/logging.h" |
15 #include "base/stl_util.h" | 15 #include "base/stl_util.h" |
16 #include "net/test/gtest_util.h" | 16 #include "net/test/gtest_util.h" |
17 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/include/gtest/gtest.h" |
18 | 18 |
19 using std::pair; | 19 using std::pair; |
20 using std::string; | 20 using std::string; |
21 using std::vector; | 21 using std::vector; |
22 | 22 |
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
324 const Interval<pair<int, int>> d2({1, 2}, {4, 3}); | 324 const Interval<pair<int, int>> d2({1, 2}, {4, 3}); |
325 EXPECT_EQ("a", d1.min()); | 325 EXPECT_EQ("a", d1.min()); |
326 EXPECT_EQ("b", d1.max()); | 326 EXPECT_EQ("b", d1.max()); |
327 EXPECT_EQ(std::make_pair(1, 2), d2.min()); | 327 EXPECT_EQ(std::make_pair(1, 2), d2.min()); |
328 EXPECT_EQ(std::make_pair(4, 3), d2.max()); | 328 EXPECT_EQ(std::make_pair(4, 3), d2.max()); |
329 } | 329 } |
330 | 330 |
331 } // unnamed namespace | 331 } // unnamed namespace |
332 } // namespace test | 332 } // namespace test |
333 } // namespace net | 333 } // namespace net |
OLD | NEW |