Lines Matching full:base
7 #include "base/environment.h"
8 #include "base/files/file_util.h"
9 #include "base/sys_info.h"
10 #include "base/threading/platform_thread.h"
11 #include "base/time/time.h"
17 using base::FilePath;
21 EXPECT_GE(base::SysInfo::NumberOfProcessors(), 1);
26 EXPECT_GT(base::SysInfo::AmountOfPhysicalMemory(), 0);
27 EXPECT_GT(base::SysInfo::AmountOfPhysicalMemoryMB(), 0);
29 EXPECT_GE(base::SysInfo::AmountOfVirtualMemory(), 0);
35 ASSERT_TRUE(base::GetTempDir(&tmp_path));
36 EXPECT_GE(base::SysInfo::AmountOfFreeDiskSpace(tmp_path), 0)
43 ASSERT_TRUE(base::GetTempDir(&tmp_path));
44 EXPECT_GT(base::SysInfo::AmountOfTotalDiskSpace(tmp_path), 0)
53 base::SysInfo::OperatingSystemVersionNumbers(&os_major_version,
63 base::TimeDelta up_time_1 = base::SysInfo::Uptime();
66 base::PlatformThread::Sleep(base::TimeDelta::FromMilliseconds(20));
67 base::TimeDelta up_time_2 = base::SysInfo::Uptime();
74 std::string hardware_model = base::SysInfo::HardwareModelName();
88 base::SysInfo::SetChromeOSVersionInfoForTest(kLsbRelease, base::Time());
89 base::SysInfo::OperatingSystemVersionNumbers(&os_major_version,
104 base::SysInfo::SetChromeOSVersionInfoForTest(kLsbRelease, base::Time());
105 base::SysInfo::OperatingSystemVersionNumbers(&os_major_version,
118 base::SysInfo::SetChromeOSVersionInfoForTest(kLsbRelease, base::Time());
119 base::SysInfo::OperatingSystemVersionNumbers(&os_major_version,
130 const base::Time lsb_release_time(base::Time::FromDoubleT(12345.6));
131 base::SysInfo::SetChromeOSVersionInfoForTest(kLsbRelease, lsb_release_time);
132 base::Time parsed_lsb_release_time = base::SysInfo::GetLsbReleaseTime();
138 base::SysInfo::SetChromeOSVersionInfoForTest("", base::Time());
139 EXPECT_FALSE(base::SysInfo::IsRunningOnChromeOS());
144 base::SysInfo::SetChromeOSVersionInfoForTest(kLsbRelease1, base::Time());
145 EXPECT_FALSE(base::SysInfo::IsRunningOnChromeOS());
150 base::SysInfo::SetChromeOSVersionInfoForTest(kLsbRelease2, base::Time());
151 EXPECT_TRUE(base::SysInfo::IsRunningOnChromeOS());
155 base::SysInfo::SetChromeOSVersionInfoForTest(kLsbRelease3, base::Time());
156 EXPECT_TRUE(base::SysInfo::IsRunningOnChromeOS());