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

Unified Diff: google_apis/gcm/base/mcs_util_unittest.cc

Issue 1548673002: Switch to standard integer types in google_apis/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix 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 | « google_apis/gcm/base/mcs_util.cc ('k') | google_apis/gcm/base/socket_stream.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: google_apis/gcm/base/mcs_util_unittest.cc
diff --git a/google_apis/gcm/base/mcs_util_unittest.cc b/google_apis/gcm/base/mcs_util_unittest.cc
index 34d482d133e6dace622b8013431beea7b4851833..cef47facfa9f239e2181f2f256f354e4f4711807 100644
--- a/google_apis/gcm/base/mcs_util_unittest.cc
+++ b/google_apis/gcm/base/mcs_util_unittest.cc
@@ -4,7 +4,11 @@
#include "google_apis/gcm/base/mcs_util.h"
+#include <stddef.h>
+#include <stdint.h>
+
#include "base/bind.h"
+#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
#include "base/run_loop.h"
#include "base/strings/string_number_conversions.h"
@@ -13,8 +17,8 @@
namespace gcm {
namespace {
-const uint64 kAuthId = 4421448356646222460;
-const uint64 kAuthToken = 12345;
+const uint64_t kAuthId = 4421448356646222460;
+const uint64_t kAuthToken = 12345;
// Build a login request protobuf.
TEST(MCSUtilTest, BuildLoginRequest) {
@@ -31,7 +35,7 @@ TEST(MCSUtilTest, BuildLoginRequest) {
// Test building a protobuf and extracting the tag from a protobuf.
TEST(MCSUtilTest, ProtobufToTag) {
- for (uint8 i = 0; i < kNumProtoTypes; ++i) {
+ for (uint8_t i = 0; i < kNumProtoTypes; ++i) {
scoped_ptr<google::protobuf::MessageLite> protobuf =
BuildProtobufFromTag(i);
if (!protobuf.get()) // Not all tags have protobuf definitions.
« no previous file with comments | « google_apis/gcm/base/mcs_util.cc ('k') | google_apis/gcm/base/socket_stream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698