| OLD | NEW |
| 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" |
| 11 #include "base/files/scoped_temp_dir.h" |
| 11 #include "base/mac/foundation_util.h" | 12 #include "base/mac/foundation_util.h" |
| 12 #include "base/mac/scoped_cftyperef.h" | 13 #include "base/mac/scoped_cftyperef.h" |
| 13 #include "base/memory/scoped_nsobject.h" | 14 #include "base/memory/scoped_nsobject.h" |
| 14 #include "base/scoped_temp_dir.h" | |
| 15 #include "base/sys_info.h" | 15 #include "base/sys_info.h" |
| 16 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
| 17 #include "testing/platform_test.h" | 17 #include "testing/platform_test.h" |
| 18 | 18 |
| 19 namespace base { | 19 namespace base { |
| 20 namespace mac { | 20 namespace mac { |
| 21 | 21 |
| 22 namespace { | 22 namespace { |
| 23 | 23 |
| 24 typedef PlatformTest MacUtilTest; | 24 typedef PlatformTest MacUtilTest; |
| (...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 203 EXPECT_TRUE(ParseModelIdentifier("MacBookPro6,2", &model, &major, &minor)); | 203 EXPECT_TRUE(ParseModelIdentifier("MacBookPro6,2", &model, &major, &minor)); |
| 204 EXPECT_EQ(model, "MacBookPro"); | 204 EXPECT_EQ(model, "MacBookPro"); |
| 205 EXPECT_EQ(6, major); | 205 EXPECT_EQ(6, major); |
| 206 EXPECT_EQ(2, minor); | 206 EXPECT_EQ(2, minor); |
| 207 } | 207 } |
| 208 | 208 |
| 209 } // namespace | 209 } // namespace |
| 210 | 210 |
| 211 } // namespace mac | 211 } // namespace mac |
| 212 } // namespace base | 212 } // namespace base |
| OLD | NEW |