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

Unified Diff: base/mac/mac_util_unittest.mm

Issue 1849343003: mac: Remove IsOSSnowLeopard(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 9 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/memory/shared_memory_mac_unittest.cc » ('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 c5042a05f0be8b6a2bbeb49b1e9232eddf6b00a1..eac627ed82fd2c8eb60144520dc3ad14d6e00114 100644
--- a/base/mac/mac_util_unittest.mm
+++ b/base/mac/mac_util_unittest.mm
@@ -145,25 +145,7 @@ TEST_F(MacUtilTest, IsOSEllipsis) {
base::SysInfo::OperatingSystemVersionNumbers(&major, &minor, &bugfix);
if (major == 10) {
- if (minor == 6) {
- EXPECT_TRUE(IsOSSnowLeopard());
- EXPECT_FALSE(IsOSLion());
- EXPECT_TRUE(IsOSLionOrEarlier());
- EXPECT_FALSE(IsOSLionOrLater());
- EXPECT_FALSE(IsOSMountainLion());
- EXPECT_TRUE(IsOSMountainLionOrEarlier());
- EXPECT_FALSE(IsOSMountainLionOrLater());
- EXPECT_FALSE(IsOSMavericks());
- EXPECT_TRUE(IsOSMavericksOrEarlier());
- EXPECT_FALSE(IsOSMavericksOrLater());
- EXPECT_FALSE(IsOSYosemite());
- EXPECT_TRUE(IsOSYosemiteOrEarlier());
- EXPECT_FALSE(IsOSYosemiteOrLater());
- EXPECT_FALSE(IsOSElCapitan());
- EXPECT_FALSE(IsOSElCapitanOrLater());
- EXPECT_FALSE(IsOSLaterThanElCapitan_DontCallThis());
- } else if (minor == 7) {
- EXPECT_FALSE(IsOSSnowLeopard());
+ if (minor == 7) {
EXPECT_TRUE(IsOSLion());
EXPECT_TRUE(IsOSLionOrEarlier());
EXPECT_TRUE(IsOSLionOrLater());
@@ -180,7 +162,6 @@ TEST_F(MacUtilTest, IsOSEllipsis) {
EXPECT_FALSE(IsOSElCapitanOrLater());
EXPECT_FALSE(IsOSLaterThanElCapitan_DontCallThis());
} else if (minor == 8) {
- EXPECT_FALSE(IsOSSnowLeopard());
EXPECT_FALSE(IsOSLion());
EXPECT_FALSE(IsOSLionOrEarlier());
EXPECT_TRUE(IsOSLionOrLater());
@@ -197,7 +178,6 @@ TEST_F(MacUtilTest, IsOSEllipsis) {
EXPECT_FALSE(IsOSElCapitanOrLater());
EXPECT_FALSE(IsOSLaterThanElCapitan_DontCallThis());
} else if (minor == 9) {
- EXPECT_FALSE(IsOSSnowLeopard());
EXPECT_FALSE(IsOSLion());
EXPECT_FALSE(IsOSLionOrEarlier());
EXPECT_TRUE(IsOSLionOrLater());
@@ -214,7 +194,6 @@ TEST_F(MacUtilTest, IsOSEllipsis) {
EXPECT_FALSE(IsOSElCapitanOrLater());
EXPECT_FALSE(IsOSLaterThanElCapitan_DontCallThis());
} else if (minor == 10) {
- EXPECT_FALSE(IsOSSnowLeopard());
EXPECT_FALSE(IsOSLion());
EXPECT_FALSE(IsOSLionOrEarlier());
EXPECT_TRUE(IsOSLionOrLater());
@@ -231,7 +210,6 @@ TEST_F(MacUtilTest, IsOSEllipsis) {
EXPECT_FALSE(IsOSElCapitanOrLater());
EXPECT_FALSE(IsOSLaterThanElCapitan_DontCallThis());
} else if (minor == 11) {
- EXPECT_FALSE(IsOSSnowLeopard());
EXPECT_FALSE(IsOSLion());
EXPECT_FALSE(IsOSLionOrEarlier());
EXPECT_TRUE(IsOSLionOrLater());
« no previous file with comments | « base/mac/mac_util.mm ('k') | base/memory/shared_memory_mac_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698