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

Unified Diff: ios/net/cookies/cookie_creation_time_manager_unittest.mm

Issue 1544743002: Switch to standard integer types in ios/. (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 | « ios/net/cookies/cookie_creation_time_manager.mm ('k') | ios/net/cookies/cookie_store_ios.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/net/cookies/cookie_creation_time_manager_unittest.mm
diff --git a/ios/net/cookies/cookie_creation_time_manager_unittest.mm b/ios/net/cookies/cookie_creation_time_manager_unittest.mm
index ac73d383816cdb40be3ca7847c6b6161755f76a1..54e51616e1e9e54bc4fcaa7622aa11cd246f4f25 100644
--- a/ios/net/cookies/cookie_creation_time_manager_unittest.mm
+++ b/ios/net/cookies/cookie_creation_time_manager_unittest.mm
@@ -5,6 +5,7 @@
#include "ios/net/cookies/cookie_creation_time_manager.h"
#import <Foundation/Foundation.h>
+#include <stdint.h>
#include "base/ios/ios_util.h"
#include "base/time/time.h"
@@ -45,7 +46,7 @@ TEST_F(CookieCreationTimeManagerTest, GetFromSystemCookie) {
base::Time time = creation_time_manager_.GetCreationTime(cookie);
base::Time now = base::Time::Now();
ASSERT_FALSE(time.is_null());
- int64 delta = (now - time).InMilliseconds();
+ int64_t delta = (now - time).InMilliseconds();
// On iOS 8, the range is (0, 1000) ms, but on earlier iOS versions the range
// is (-500, 500) ms. The intervals tested are actually 1200 ms to allow some
// imprecision.
@@ -99,7 +100,7 @@ TEST_F(CookieCreationTimeManagerTest, MakeUniqueCreationTime) {
TEST_F(CookieCreationTimeManagerTest, MakeUniqueCreationTimeConflicts) {
base::Time creation_time = base::Time::Now();
- int64 time_internal_value = creation_time.ToInternalValue();
+ int64_t time_internal_value = creation_time.ToInternalValue();
// Insert two cookies with consecutive times.
creation_time_manager_.SetCreationTime(GetCookie(@"A=B"), creation_time);
creation_time_manager_.SetCreationTime(
« no previous file with comments | « ios/net/cookies/cookie_creation_time_manager.mm ('k') | ios/net/cookies/cookie_store_ios.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698