| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 <limits> | 5 #include <limits> |
| 6 #include <map> | 6 #include <map> |
| 7 #include <sstream> | 7 #include <sstream> |
| 8 #include <string> | 8 #include <string> |
| 9 #include <type_traits> | 9 #include <type_traits> |
| 10 #include <unordered_map> | 10 #include <unordered_map> |
| 11 | 11 |
| 12 #include "content/common/id_type.h" | 12 #include "base/id_type.h" |
| 13 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
| 14 | 14 |
| 15 namespace content { | 15 namespace base { |
| 16 | 16 |
| 17 namespace { | 17 namespace { |
| 18 | 18 |
| 19 class Foo; | 19 class Foo; |
| 20 using FooId = IdType<Foo, int, 0>; | 20 using FooId = IdType<Foo, int, 0>; |
| 21 | 21 |
| 22 class Bar; | 22 class Bar; |
| 23 using BarId = IdType<Bar, int, 0>; | 23 using BarId = IdType<Bar, int, 0>; |
| 24 | 24 |
| 25 class AnotherIdMarker; | 25 class AnotherIdMarker; |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 | 190 |
| 191 INSTANTIATE_TEST_CASE_P(, | 191 INSTANTIATE_TEST_CASE_P(, |
| 192 IdTypeSpecificValueTest, | 192 IdTypeSpecificValueTest, |
| 193 ::testing::Values(std::numeric_limits<int>::min(), | 193 ::testing::Values(std::numeric_limits<int>::min(), |
| 194 -1, | 194 -1, |
| 195 0, | 195 0, |
| 196 1, | 196 1, |
| 197 123, | 197 123, |
| 198 std::numeric_limits<int>::max())); | 198 std::numeric_limits<int>::max())); |
| 199 | 199 |
| 200 } // namespace content | 200 } // namespace base |
| OLD | NEW |