Index: base/sys_info_unittest.cc |
=================================================================== |
--- base/sys_info_unittest.cc (revision 2601) |
+++ base/sys_info_unittest.cc (working copy) |
@@ -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)); |