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

Side by Side Diff: base/id_type_unittest.cc

Issue 1548443002: Introducing gpu::CommandBufferId as a distinct, IdType<...>-based type. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@type-safe-save-package-id-self-contained
Patch Set: Created 4 years, 10 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
OLDNEW
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
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
OLDNEW
« no previous file with comments | « base/id_type.h ('k') | cc/layers/texture_layer_unittest.cc » ('j') | ipc/ipc_message_utils.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698