| Index: base/sys_info_unittest.cc
|
| ===================================================================
|
| --- base/sys_info_unittest.cc (revision 2357)
|
| +++ base/sys_info_unittest.cc (working copy)
|
| @@ -2,6 +2,7 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| +#include "base/file_util.h"
|
| #include "base/sys_info.h"
|
| #include "testing/gtest/include/gtest/gtest.h"
|
|
|
| @@ -13,4 +14,12 @@
|
| TEST(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) {
|
| + // 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));
|
| + EXPECT_GT(base::SysInfo::AmountOfFreeDiskSpace(tmp_path), 0);
|
| +}
|
|
|