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

Side by Side Diff: base/containers/hash_tables_unittest.cc

Issue 17094004: Move hash_pair.h from cc/base into base/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Clean up empty lines and add reference to danakj@. Created 7 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « base/containers/hash_tables.h ('k') | cc/base/hash_pair.h » ('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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "cc/base/hash_pair.h" 5 #include "base/containers/hash_tables.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "testing/gtest/include/gtest/gtest.h" 8 #include "testing/gtest/include/gtest/gtest.h"
9 9
10 namespace { 10 namespace {
11 11
12 class HashPairTest : public testing::Test { 12 class HashPairTest : public testing::Test {
13 }; 13 };
14 14
15 #define INSERT_PAIR_TEST(Type, value1, value2) \ 15 #define INSERT_PAIR_TEST(Type, value1, value2) \
(...skipping 28 matching lines...) Expand all
44 typedef std::pair<int64, int32> Int64Int32Pair; 44 typedef std::pair<int64, int32> Int64Int32Pair;
45 typedef std::pair<int64, int64> Int64Int64Pair; 45 typedef std::pair<int64, int64> Int64Int64Pair;
46 46
47 INSERT_PAIR_TEST(Int64Int16Pair, 4, 6); 47 INSERT_PAIR_TEST(Int64Int16Pair, 4, 6);
48 INSERT_PAIR_TEST(Int64Int32Pair, 9, (1 << 29) + 378128932); 48 INSERT_PAIR_TEST(Int64Int32Pair, 9, (1 << 29) + 378128932);
49 INSERT_PAIR_TEST(Int64Int64Pair, 10, 49 INSERT_PAIR_TEST(Int64Int64Pair, 10,
50 (GG_INT64_C(1) << 60) + GG_INT64_C(78931732321)); 50 (GG_INT64_C(1) << 60) + GG_INT64_C(78931732321));
51 } 51 }
52 52
53 } // namespace 53 } // namespace
OLDNEW
« no previous file with comments | « base/containers/hash_tables.h ('k') | cc/base/hash_pair.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698