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

Unified Diff: base/containers/hash_tables_unittest.cc

Issue 1538743002: Switch to standard integer types in base/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: DEPS roll too 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 | « base/containers/hash_tables.h ('k') | base/containers/linked_list_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/containers/hash_tables_unittest.cc
diff --git a/base/containers/hash_tables_unittest.cc b/base/containers/hash_tables_unittest.cc
index f775dff15a8be1627edf03e52337aabffa2c4ced..6072e5dc91e076a23e8b68a23644e4252f9e0d27 100644
--- a/base/containers/hash_tables_unittest.cc
+++ b/base/containers/hash_tables_unittest.cc
@@ -7,7 +7,6 @@
#include <stdint.h>
#include <string>
-#include "base/basictypes.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace {
@@ -25,27 +24,27 @@ class HashPairTest : public testing::Test {
// Verify that a hash_map can be constructed for pairs of integers of various
// sizes.
TEST_F(HashPairTest, IntegerPairs) {
- typedef std::pair<int16, int16> Int16Int16Pair;
- typedef std::pair<int16, int32> Int16Int32Pair;
- typedef std::pair<int16, int64> Int16Int64Pair;
+ typedef std::pair<int16_t, int16_t> Int16Int16Pair;
+ typedef std::pair<int16_t, int32_t> Int16Int32Pair;
+ typedef std::pair<int16_t, int64_t> Int16Int64Pair;
INSERT_PAIR_TEST(Int16Int16Pair, 4, 6);
INSERT_PAIR_TEST(Int16Int32Pair, 9, (1 << 29) + 378128932);
INSERT_PAIR_TEST(Int16Int64Pair, 10,
(INT64_C(1) << 60) + INT64_C(78931732321));
- typedef std::pair<int32, int16> Int32Int16Pair;
- typedef std::pair<int32, int32> Int32Int32Pair;
- typedef std::pair<int32, int64> Int32Int64Pair;
+ typedef std::pair<int32_t, int16_t> Int32Int16Pair;
+ typedef std::pair<int32_t, int32_t> Int32Int32Pair;
+ typedef std::pair<int32_t, int64_t> Int32Int64Pair;
INSERT_PAIR_TEST(Int32Int16Pair, 4, 6);
INSERT_PAIR_TEST(Int32Int32Pair, 9, (1 << 29) + 378128932);
INSERT_PAIR_TEST(Int32Int64Pair, 10,
(INT64_C(1) << 60) + INT64_C(78931732321));
- typedef std::pair<int64, int16> Int64Int16Pair;
- typedef std::pair<int64, int32> Int64Int32Pair;
- typedef std::pair<int64, int64> Int64Int64Pair;
+ typedef std::pair<int64_t, int16_t> Int64Int16Pair;
+ typedef std::pair<int64_t, int32_t> Int64Int32Pair;
+ typedef std::pair<int64_t, int64_t> Int64Int64Pair;
INSERT_PAIR_TEST(Int64Int16Pair, 4, 6);
INSERT_PAIR_TEST(Int64Int32Pair, 9, (1 << 29) + 378128932);
« no previous file with comments | « base/containers/hash_tables.h ('k') | base/containers/linked_list_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698