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

Side by Side Diff: base/mac/mac_util_unittest.mm

Issue 11348360: Speculatively reverting 166585 to see if it fixes issue 160300 - 6% startup regression on Mac 10.6 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « base/mac/mac_util.mm ('k') | base/process_util_mac.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #import <Cocoa/Cocoa.h> 5 #import <Cocoa/Cocoa.h>
6 6
7 #include "base/mac/mac_util.h" 7 #include "base/mac/mac_util.h"
8 8
9 #include "base/file_path.h" 9 #include "base/file_path.h"
10 #include "base/file_util.h" 10 #include "base/file_util.h"
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 base::SysInfo::OperatingSystemVersionNumbers(&major, &minor, &bugfix); 151 base::SysInfo::OperatingSystemVersionNumbers(&major, &minor, &bugfix);
152 152
153 if (major == 10) { 153 if (major == 10) {
154 if (minor == 6) { 154 if (minor == 6) {
155 EXPECT_TRUE(IsOSSnowLeopard()); 155 EXPECT_TRUE(IsOSSnowLeopard());
156 EXPECT_FALSE(IsOSLion()); 156 EXPECT_FALSE(IsOSLion());
157 EXPECT_TRUE(IsOSLionOrEarlier()); 157 EXPECT_TRUE(IsOSLionOrEarlier());
158 EXPECT_FALSE(IsOSLionOrLater()); 158 EXPECT_FALSE(IsOSLionOrLater());
159 EXPECT_FALSE(IsOSMountainLion()); 159 EXPECT_FALSE(IsOSMountainLion());
160 EXPECT_FALSE(IsOSMountainLionOrLater()); 160 EXPECT_FALSE(IsOSMountainLionOrLater());
161 EXPECT_FALSE(IsOSLaterThanMountainLion_DontCallThis()); 161 EXPECT_FALSE(
162 IsOSDangerouslyLaterThanMountainLionForUseByCFAllocatorReplacement());
162 } else if (minor == 7) { 163 } else if (minor == 7) {
163 EXPECT_FALSE(IsOSSnowLeopard()); 164 EXPECT_FALSE(IsOSSnowLeopard());
164 EXPECT_TRUE(IsOSLion()); 165 EXPECT_TRUE(IsOSLion());
165 EXPECT_TRUE(IsOSLionOrEarlier()); 166 EXPECT_TRUE(IsOSLionOrEarlier());
166 EXPECT_TRUE(IsOSLionOrLater()); 167 EXPECT_TRUE(IsOSLionOrLater());
167 EXPECT_FALSE(IsOSMountainLion()); 168 EXPECT_FALSE(IsOSMountainLion());
168 EXPECT_FALSE(IsOSMountainLionOrLater()); 169 EXPECT_FALSE(IsOSMountainLionOrLater());
169 EXPECT_FALSE(IsOSLaterThanMountainLion_DontCallThis()); 170 EXPECT_FALSE(
171 IsOSDangerouslyLaterThanMountainLionForUseByCFAllocatorReplacement());
170 } else if (minor == 8) { 172 } else if (minor == 8) {
171 EXPECT_FALSE(IsOSSnowLeopard()); 173 EXPECT_FALSE(IsOSSnowLeopard());
172 EXPECT_FALSE(IsOSLion()); 174 EXPECT_FALSE(IsOSLion());
173 EXPECT_FALSE(IsOSLionOrEarlier()); 175 EXPECT_FALSE(IsOSLionOrEarlier());
174 EXPECT_TRUE(IsOSLionOrLater()); 176 EXPECT_TRUE(IsOSLionOrLater());
175 EXPECT_TRUE(IsOSMountainLion()); 177 EXPECT_TRUE(IsOSMountainLion());
176 EXPECT_TRUE(IsOSMountainLionOrLater()); 178 EXPECT_TRUE(IsOSMountainLionOrLater());
177 EXPECT_FALSE(IsOSLaterThanMountainLion_DontCallThis()); 179 EXPECT_FALSE(
180 IsOSDangerouslyLaterThanMountainLionForUseByCFAllocatorReplacement());
178 } else { 181 } else {
179 // Not five, six, seven, or eight. Ah, ah, ah. 182 // Not five, six, seven, or eight. Ah, ah, ah.
180 EXPECT_TRUE(false); 183 EXPECT_TRUE(false);
181 } 184 }
182 } else { 185 } else {
183 // Not ten. What you gonna do? 186 // Not ten. What you gonna do?
184 EXPECT_FALSE(true); 187 EXPECT_FALSE(true);
185 } 188 }
186 } 189 }
187 190
(...skipping 15 matching lines...) Expand all
203 EXPECT_TRUE(ParseModelIdentifier("MacBookPro6,2", &model, &major, &minor)); 206 EXPECT_TRUE(ParseModelIdentifier("MacBookPro6,2", &model, &major, &minor));
204 EXPECT_EQ(model, "MacBookPro"); 207 EXPECT_EQ(model, "MacBookPro");
205 EXPECT_EQ(6, major); 208 EXPECT_EQ(6, major);
206 EXPECT_EQ(2, minor); 209 EXPECT_EQ(2, minor);
207 } 210 }
208 211
209 } // namespace 212 } // namespace
210 213
211 } // namespace mac 214 } // namespace mac
212 } // namespace base 215 } // namespace base
OLDNEW
« 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