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

Unified Diff: chromeos/binder/transaction_data_reader_unittest.cc

Issue 1540803002: Switch to standard integer types in chromeos/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more includes 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 | « chromeos/binder/transaction_data_reader.cc ('k') | chromeos/binder/transaction_status.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/binder/transaction_data_reader_unittest.cc
diff --git a/chromeos/binder/transaction_data_reader_unittest.cc b/chromeos/binder/transaction_data_reader_unittest.cc
index 21c90ec5212645a86ea0f292f28ed1b506c08307..8bed9ead66ad0cad218f98d6f38b18caba1b269b 100644
--- a/chromeos/binder/transaction_data_reader_unittest.cc
+++ b/chromeos/binder/transaction_data_reader_unittest.cc
@@ -2,6 +2,9 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include <stddef.h>
+#include <stdint.h>
+
#include <vector>
#include "chromeos/binder/transaction_data_reader.h"
@@ -31,10 +34,10 @@ TEST(BinderTransactionDataReaderTest, ReadData) {
}
TEST(BinderTransactionDataReaderTest, ReadScalarValues) {
- const int32 kInt32Value = -1;
- const uint32 kUint32Value = 2;
- const int64 kInt64Value = -3;
- const uint64 kUint64Value = 4;
+ const int32_t kInt32Value = -1;
+ const uint32_t kUint32Value = 2;
+ const int64_t kInt64Value = -3;
+ const uint64_t kUint64Value = 4;
const float kFloatValue = 5.55;
const double kDoubleValue = 6.66;
@@ -49,22 +52,22 @@ TEST(BinderTransactionDataReaderTest, ReadScalarValues) {
TransactionDataReader reader(data);
EXPECT_TRUE(reader.HasMoreData());
{
- int32 result = 0;
+ int32_t result = 0;
EXPECT_TRUE(reader.ReadInt32(&result));
EXPECT_EQ(kInt32Value, result);
}
{
- uint32 result = 0;
+ uint32_t result = 0;
EXPECT_TRUE(reader.ReadUint32(&result));
EXPECT_EQ(kUint32Value, result);
}
{
- int64 result = 0;
+ int64_t result = 0;
EXPECT_TRUE(reader.ReadInt64(&result));
EXPECT_EQ(kInt64Value, result);
}
{
- uint64 result = 0;
+ uint64_t result = 0;
EXPECT_TRUE(reader.ReadUint64(&result));
EXPECT_EQ(kUint64Value, result);
}
« no previous file with comments | « chromeos/binder/transaction_data_reader.cc ('k') | chromeos/binder/transaction_status.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698