summaryrefslogtreecommitdiffstats
path: root/base/sys_info_unittest.cc
diff options
context:
space:
mode:
authormark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-09-25 20:33:42 +0000
committermark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-09-25 20:33:42 +0000
commit89836e2574a390828deb9bf86f0d169f7aacfd39 (patch)
treed41fc75cbd5d348051cf66fe12a2bf0c8f9987d4 /base/sys_info_unittest.cc
parent1a8f5d1d016723fb1fcc49b1fc5290fa1b7f2706 (diff)
downloadchromium_src-89836e2574a390828deb9bf86f0d169f7aacfd39.zip
chromium_src-89836e2574a390828deb9bf86f0d169f7aacfd39.tar.gz
chromium_src-89836e2574a390828deb9bf86f0d169f7aacfd39.tar.bz2
Provide autorelease pool management on the Mac in all types of message pumps.
Fix a few unit tests to use autorelease pools as needed. Review URL: http://codereview.chromium.org/3805 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2603 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/sys_info_unittest.cc')
-rw-r--r--base/sys_info_unittest.cc9
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));