diff options
Diffstat (limited to 'base/sys_info_unittest.cc')
-rw-r--r-- | base/sys_info_unittest.cc | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/base/sys_info_unittest.cc b/base/sys_info_unittest.cc index c10b1b7..3ad2ae0 100644 --- a/base/sys_info_unittest.cc +++ b/base/sys_info_unittest.cc @@ -3,21 +3,24 @@ // found in the LICENSE file. #include "base/file_util.h" +#include "base/platform_test.h" #include "base/sys_info.h" #include "testing/gtest/include/gtest/gtest.h" -TEST(SysInfoTest, NumProcs) { +typedef PlatformTest SysInfoTest; + +TEST_F(SysInfoTest, NumProcs) { // We aren't actually testing that it's correct, just that it's sane. EXPECT_GE(base::SysInfo::NumberOfProcessors(), 1); } -TEST(SysInfoTest, AmountOfMem) { +TEST_F(SysInfoTest, AmountOfMem) { // We aren't actually testing that it's correct, just that it's sane. EXPECT_GT(base::SysInfo::AmountOfPhysicalMemory(), 0); EXPECT_GT(base::SysInfo::AmountOfPhysicalMemoryMB(), 0); } -TEST(SysInfoTest, AmountOfFreeDiskSpace) { +TEST_F(SysInfoTest, AmountOfFreeDiskSpace) { // We aren't actually testing that it's correct, just that it's sane. std::wstring tmp_path; ASSERT_TRUE(file_util::GetTempDir(&tmp_path)); |