OLD | NEW |
1 // Copyright (c) 2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2008 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 #include "base/file_util.h" | 5 #include "base/file_util.h" |
6 #include "base/platform_test.h" | |
7 #include "base/sys_info.h" | 6 #include "base/sys_info.h" |
8 #include "testing/gtest/include/gtest/gtest.h" | 7 #include "testing/gtest/include/gtest/gtest.h" |
| 8 #include "testing/platform_test.h" |
9 | 9 |
10 typedef PlatformTest SysInfoTest; | 10 typedef PlatformTest SysInfoTest; |
11 | 11 |
12 TEST_F(SysInfoTest, NumProcs) { | 12 TEST_F(SysInfoTest, NumProcs) { |
13 // We aren't actually testing that it's correct, just that it's sane. | 13 // We aren't actually testing that it's correct, just that it's sane. |
14 EXPECT_GE(base::SysInfo::NumberOfProcessors(), 1); | 14 EXPECT_GE(base::SysInfo::NumberOfProcessors(), 1); |
15 } | 15 } |
16 | 16 |
17 TEST_F(SysInfoTest, AmountOfMem) { | 17 TEST_F(SysInfoTest, AmountOfMem) { |
18 // We aren't actually testing that it's correct, just that it's sane. | 18 // We aren't actually testing that it's correct, just that it's sane. |
(...skipping 10 matching lines...) Expand all Loading... |
29 | 29 |
30 TEST_F(SysInfoTest, GetEnvVar) { | 30 TEST_F(SysInfoTest, GetEnvVar) { |
31 // Every setup should have non-empty PATH... | 31 // Every setup should have non-empty PATH... |
32 EXPECT_NE(base::SysInfo::GetEnvVar(L"PATH"), L""); | 32 EXPECT_NE(base::SysInfo::GetEnvVar(L"PATH"), L""); |
33 } | 33 } |
34 | 34 |
35 TEST_F(SysInfoTest, HasEnvVar) { | 35 TEST_F(SysInfoTest, HasEnvVar) { |
36 // Every setup should have PATH... | 36 // Every setup should have PATH... |
37 EXPECT_TRUE(base::SysInfo::HasEnvVar(L"PATH")); | 37 EXPECT_TRUE(base::SysInfo::HasEnvVar(L"PATH")); |
38 } | 38 } |
OLD | NEW |