diff options
author | Ben Chan <benchan@chromium.org> | 2014-08-10 17:14:46 -0700 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2014-08-11 05:37:57 +0000 |
commit | 7fab89734d88724a288e96a9996b15548c5294c7 (patch) | |
tree | ec3fa83e9f1b0bb8647e94890f7b963b653c6215 /key_value_store_unittest.cc | |
parent | 73dd0dcf5a44ee14eac2de389c9ba967a449a20d (diff) | |
download | shill-7fab89734d88724a288e96a9996b15548c5294c7.tar.gz |
shill: Use integer types from stdint.h
This CL replaces the deprecated int* and uint* types from
'base/basictypes.h' with the int*_t and uint*_t types from 'stdint.h'.
BUG=chromium:401356
TEST=`USE='cellular gdmwimax wimax' FEATURES=test emerge-$BOARD platform2`
Change-Id: I3d4c195881203dd2a47dbb5af150b6c90b9c206e
Reviewed-on: https://chromium-review.googlesource.com/211770
Reviewed-by: Mike Frysinger <vapier@chromium.org>
Commit-Queue: Ben Chan <benchan@chromium.org>
Tested-by: Ben Chan <benchan@chromium.org>
Diffstat (limited to 'key_value_store_unittest.cc')
-rw-r--r-- | key_value_store_unittest.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/key_value_store_unittest.cc b/key_value_store_unittest.cc index 21c2ab95..ebac9d02 100644 --- a/key_value_store_unittest.cc +++ b/key_value_store_unittest.cc @@ -91,7 +91,7 @@ TEST_F(KeyValueStoreTest, Strings) { TEST_F(KeyValueStoreTest, Uint) { const string kKey("foo"); - const uint32 kValue = 456; + const uint32_t kValue = 456; EXPECT_FALSE(store_.ContainsUint(kKey)); store_.SetUint(kKey, kValue); EXPECT_TRUE(store_.ContainsUint(kKey)); @@ -126,7 +126,7 @@ TEST_F(KeyValueStoreTest, Clear) { const vector<string> kStringsValue; store_.SetStrings(kStringsKey, kStringsValue); const string kUintKey("bun"); - const uint32 kUintValue = 456; + const uint32_t kUintValue = 456; store_.SetUint(kUintKey, kUintValue); EXPECT_TRUE(store_.ContainsBool(kBoolKey)); @@ -277,7 +277,7 @@ TEST_F(KeyValueStoreTest, CopyFrom) { const vector<string> kStringsValue{ "string0", "string1" }; donor.SetStrings(kStringsKey, kStringsValue); const string kUintKey("bun"); - const uint32 kUintValue = 456; + const uint32_t kUintValue = 456; donor.SetUint(kUintKey, kUintValue); EXPECT_TRUE(store_.IsEmpty()); |