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

Unified Diff: remoting/host/register_support_host_request_unittest.cc

Issue 1547473005: Switch to standard integer types in remoting/host/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | « remoting/host/register_support_host_request.cc ('k') | remoting/host/remote_input_filter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/register_support_host_request_unittest.cc
diff --git a/remoting/host/register_support_host_request_unittest.cc b/remoting/host/register_support_host_request_unittest.cc
index 29a3c4e9a2e43351fa713291d36981ac874862f3..30420b5f14e6a8b6077665a74688f29442b53810 100644
--- a/remoting/host/register_support_host_request_unittest.cc
+++ b/remoting/host/register_support_host_request_unittest.cc
@@ -4,6 +4,8 @@
#include "remoting/host/register_support_host_request.h"
+#include <stdint.h>
+
#include "base/bind.h"
#include "base/memory/ref_counted.h"
#include "base/message_loop/message_loop.h"
@@ -79,7 +81,7 @@ class RegisterSupportHostRequestTest : public testing::Test {
TEST_F(RegisterSupportHostRequestTest, Send) {
// |iq_request| is freed by RegisterSupportHostRequest.
- int64 start_time = static_cast<int64>(base::Time::Now().ToDoubleT());
+ int64_t start_time = static_cast<int64_t>(base::Time::Now().ToDoubleT());
scoped_ptr<RegisterSupportHostRequest> request(
new RegisterSupportHostRequest(&signal_strategy_, key_pair_,
@@ -114,9 +116,9 @@ TEST_F(RegisterSupportHostRequestTest, Send) {
std::string time_str =
signature->Attr(QName(kChromotingXmlNamespace, "time"));
- int64 time;
+ int64_t time;
EXPECT_TRUE(base::StringToInt64(time_str, &time));
- int64 now = static_cast<int64>(base::Time::Now().ToDoubleT());
+ int64_t now = static_cast<int64_t>(base::Time::Now().ToDoubleT());
EXPECT_LE(start_time, time);
EXPECT_GE(now, time);
« no previous file with comments | « remoting/host/register_support_host_request.cc ('k') | remoting/host/remote_input_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698