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

Unified Diff: components/network_time/network_time_tracker_unittest.cc

Issue 1551433002: Switch to standard integer types in components/, part 3 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more 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 | « components/network_time/network_time_tracker.cc ('k') | components/ntp_snippets/ntp_snippets_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/network_time/network_time_tracker_unittest.cc
diff --git a/components/network_time/network_time_tracker_unittest.cc b/components/network_time/network_time_tracker_unittest.cc
index b2352c0a697140d8d390ee674949934902fed93a..c2133fd862c7ac9a52d761cf24d6ed290c93408b 100644
--- a/components/network_time/network_time_tracker_unittest.cc
+++ b/components/network_time/network_time_tracker_unittest.cc
@@ -5,6 +5,7 @@
#include "components/network_time/network_time_tracker.h"
#include <math.h>
+#include <stdint.h>
#include "base/compiler_specific.h"
#include "base/prefs/testing_pref_service.h"
@@ -16,15 +17,15 @@ namespace network_time {
namespace {
// These are all in milliseconds.
-const int64 kLatency1 = 50;
-const int64 kLatency2 = 500;
+const int64_t kLatency1 = 50;
+const int64_t kLatency2 = 500;
// Can not be smaller than 15, it's the NowFromSystemTime() resolution.
-const int64 kResolution1 = 17;
-const int64 kResolution2 = 177;
+const int64_t kResolution1 = 17;
+const int64_t kResolution2 = 177;
-const int64 kPseudoSleepTime1 = 500000001;
-const int64 kPseudoSleepTime2 = 1888;
+const int64_t kPseudoSleepTime1 = 500000001;
+const int64_t kPseudoSleepTime2 = 1888;
// A custom tick clock that will return an arbitrary time.
class TestTickClock : public base::TickClock {
@@ -61,7 +62,7 @@ class NetworkTimeTrackerTest : public testing::Test {
return ticks_now_;
}
- void AddToTicksNow(int64 ms) {
+ void AddToTicksNow(int64_t ms) {
ticks_now_ += base::TimeDelta::FromMilliseconds(ms);
}
« no previous file with comments | « components/network_time/network_time_tracker.cc ('k') | components/ntp_snippets/ntp_snippets_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698