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

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

Issue 2423803002: Removed use of IsRunningOnIOS8OrLater (Closed)
Patch Set: Created 4 years, 2 months 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 | « no previous file | ios/net/cookies/cookie_store_ios.mm » ('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 54e51616e1e9e54bc4fcaa7622aa11cd246f4f25..5a3f082d891f117ae953ea5deb772ea6032a935f 100644
--- a/ios/net/cookies/cookie_creation_time_manager_unittest.mm
+++ b/ios/net/cookies/cookie_creation_time_manager_unittest.mm
@@ -47,16 +47,10 @@ TEST_F(CookieCreationTimeManagerTest, GetFromSystemCookie) {
base::Time now = base::Time::Now();
ASSERT_FALSE(time.is_null());
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.
- if (base::ios::IsRunningOnIOS8OrLater()) {
- EXPECT_GT(delta, -100);
- EXPECT_LT(delta, 1100);
- } else {
- EXPECT_GT(delta, -600);
- EXPECT_LT(delta, 600);
- }
+ // On iOS 8, the range is (0, 1000) ms. The intervals tested are actually
+ // 1200 ms to allow some imprecision.
+ EXPECT_GT(delta, -100);
+ EXPECT_LT(delta, 1100);
}
TEST_F(CookieCreationTimeManagerTest, MakeUniqueCreationTime) {
« no previous file with comments | « no previous file | ios/net/cookies/cookie_store_ios.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698