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

Unified Diff: base/mac/mac_util_unittest.mm

Issue 10837158: mac: Delete more 10.5-only code (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: mark Created 8 years, 4 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 | « base/mac/mac_util.mm ('k') | base/process_util_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/mac/mac_util_unittest.mm
diff --git a/base/mac/mac_util_unittest.mm b/base/mac/mac_util_unittest.mm
index b09d6850b78bddea9af35bba9bac7ec34c3cb737..94ec5bdb5431cb860288ac03b00a2ecb9836959e 100644
--- a/base/mac/mac_util_unittest.mm
+++ b/base/mac/mac_util_unittest.mm
@@ -151,22 +151,7 @@ TEST_F(MacUtilTest, IsOSEllipsis) {
base::SysInfo::OperatingSystemVersionNumbers(&major, &minor, &bugfix);
if (major == 10) {
- if (minor == 5) {
- EXPECT_TRUE(IsOSLeopard());
- EXPECT_TRUE(IsOSLeopardOrEarlier());
- EXPECT_FALSE(IsOSSnowLeopard());
- EXPECT_TRUE(IsOSSnowLeopardOrEarlier());
- EXPECT_FALSE(IsOSSnowLeopardOrLater());
- EXPECT_FALSE(IsOSLion());
- EXPECT_TRUE(IsOSLionOrEarlier());
- EXPECT_FALSE(IsOSLionOrLater());
- EXPECT_FALSE(IsOSMountainLion());
- EXPECT_FALSE(IsOSMountainLionOrLater());
- EXPECT_FALSE(
- IsOSDangerouslyLaterThanMountainLionForUseByCFAllocatorReplacement());
- } else if (minor == 6) {
- EXPECT_FALSE(IsOSLeopard());
- EXPECT_FALSE(IsOSLeopardOrEarlier());
+ if (minor == 6) {
EXPECT_TRUE(IsOSSnowLeopard());
EXPECT_TRUE(IsOSSnowLeopardOrEarlier());
EXPECT_TRUE(IsOSSnowLeopardOrLater());
@@ -178,8 +163,6 @@ TEST_F(MacUtilTest, IsOSEllipsis) {
EXPECT_FALSE(
IsOSDangerouslyLaterThanMountainLionForUseByCFAllocatorReplacement());
} else if (minor == 7) {
- EXPECT_FALSE(IsOSLeopard());
- EXPECT_FALSE(IsOSLeopardOrEarlier());
EXPECT_FALSE(IsOSSnowLeopard());
EXPECT_FALSE(IsOSSnowLeopardOrEarlier());
EXPECT_TRUE(IsOSSnowLeopardOrLater());
@@ -191,8 +174,6 @@ TEST_F(MacUtilTest, IsOSEllipsis) {
EXPECT_FALSE(
IsOSDangerouslyLaterThanMountainLionForUseByCFAllocatorReplacement());
} else if (minor == 8) {
- EXPECT_FALSE(IsOSLeopard());
- EXPECT_FALSE(IsOSLeopardOrEarlier());
EXPECT_FALSE(IsOSSnowLeopard());
EXPECT_FALSE(IsOSSnowLeopardOrEarlier());
EXPECT_TRUE(IsOSSnowLeopardOrLater());
« no previous file with comments | « base/mac/mac_util.mm ('k') | base/process_util_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698