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

Unified Diff: google_apis/gcm/tools/mcs_probe.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/monitoring/gcm_stats_recorder.h ('k') | google_apis/google_api_keys.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: google_apis/gcm/tools/mcs_probe.cc
diff --git a/google_apis/gcm/tools/mcs_probe.cc b/google_apis/gcm/tools/mcs_probe.cc
index 20bcffdfcb5b1c479f3f2932d0342ef2d6b0e809..230d6a1f8a62c5dfd7eebdc38a70d7e3197449d3 100644
--- a/google_apis/gcm/tools/mcs_probe.cc
+++ b/google_apis/gcm/tools/mcs_probe.cc
@@ -5,6 +5,8 @@
// A standalone tool for testing MCS connections and the MCS client on their
// own.
+#include <stdint.h>
+
#include <cstddef>
#include <cstdio>
#include <string>
@@ -25,6 +27,7 @@
#include "base/threading/worker_pool.h"
#include "base/time/default_clock.h"
#include "base/values.h"
+#include "build/build_config.h"
#include "google_apis/gcm/base/fake_encryptor.h"
#include "google_apis/gcm/base/mcs_message.h"
#include "google_apis/gcm/base/mcs_util.h"
@@ -90,7 +93,7 @@ const char kChromeVersion[] = "Chrome MCS Probe";
// The default server to communicate with.
const char kMCSServerHost[] = "mtalk.google.com";
-const uint16 kMCSServerPort = 5228;
+const uint16_t kMCSServerPort = 5228;
// Command line switches.
const char kRMQFileName[] = "rmq_file";
@@ -122,7 +125,7 @@ void MessageReceivedCallback(const MCSMessage& message) {
}
}
-void MessageSentCallback(int64 user_serial_number,
+void MessageSentCallback(int64_t user_serial_number,
const std::string& app_id,
const std::string& message_id,
MCSClient::MessageSendStatus status) {
@@ -215,8 +218,8 @@ class MCSProbe {
void Start();
- uint64 android_id() const { return android_id_; }
- uint64 secret() const { return secret_; }
+ uint64_t android_id() const { return android_id_; }
+ uint64_t secret() const { return secret_; }
private:
void CheckIn();
@@ -235,8 +238,8 @@ class MCSProbe {
base::CommandLine command_line_;
base::FilePath gcm_store_path_;
- uint64 android_id_;
- uint64 secret_;
+ uint64_t android_id_;
+ uint64_t secret_;
std::string server_host_;
int server_port_;
« no previous file with comments | « google_apis/gcm/monitoring/gcm_stats_recorder.h ('k') | google_apis/google_api_keys.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698