Lines Matching refs:base

17 using base::FilePath;
22 EXPECT_GT(base::SysInfo::MaxSharedMemorySize(), 0u); in TEST_F()
28 EXPECT_GE(base::SysInfo::NumberOfProcessors(), 1); in TEST_F()
33 EXPECT_GT(base::SysInfo::AmountOfPhysicalMemory(), 0); in TEST_F()
34 EXPECT_GT(base::SysInfo::AmountOfPhysicalMemoryMB(), 0); in TEST_F()
36 EXPECT_GE(base::SysInfo::AmountOfVirtualMemory(), 0); in TEST_F()
42 ASSERT_TRUE(base::GetTempDir(&tmp_path)); in TEST_F()
43 EXPECT_GT(base::SysInfo::AmountOfFreeDiskSpace(tmp_path), 0) in TEST_F()
52 base::SysInfo::OperatingSystemVersionNumbers(&os_major_version, in TEST_F()
62 base::TimeDelta up_time_1 = base::SysInfo::Uptime(); in TEST_F()
65 base::PlatformThread::Sleep(base::TimeDelta::FromMilliseconds(20)); in TEST_F()
66 base::TimeDelta up_time_2 = base::SysInfo::Uptime(); in TEST_F()
73 std::string hardware_model = base::SysInfo::HardwareModelName(); in TEST_F()
87 base::SysInfo::SetChromeOSVersionInfoForTest(kLsbRelease, base::Time()); in TEST_F()
88 base::SysInfo::OperatingSystemVersionNumbers(&os_major_version, in TEST_F()
103 base::SysInfo::SetChromeOSVersionInfoForTest(kLsbRelease, base::Time()); in TEST_F()
104 base::SysInfo::OperatingSystemVersionNumbers(&os_major_version, in TEST_F()
117 base::SysInfo::SetChromeOSVersionInfoForTest(kLsbRelease, base::Time()); in TEST_F()
118 base::SysInfo::OperatingSystemVersionNumbers(&os_major_version, in TEST_F()
129 const base::Time lsb_release_time(base::Time::FromDoubleT(12345.6)); in TEST_F()
130 base::SysInfo::SetChromeOSVersionInfoForTest(kLsbRelease, lsb_release_time); in TEST_F()
131 base::Time parsed_lsb_release_time = base::SysInfo::GetLsbReleaseTime(); in TEST_F()
137 base::SysInfo::SetChromeOSVersionInfoForTest("", base::Time()); in TEST_F()
138 EXPECT_FALSE(base::SysInfo::IsRunningOnChromeOS()); in TEST_F()
143 base::SysInfo::SetChromeOSVersionInfoForTest(kLsbRelease1, base::Time()); in TEST_F()
144 EXPECT_FALSE(base::SysInfo::IsRunningOnChromeOS()); in TEST_F()
149 base::SysInfo::SetChromeOSVersionInfoForTest(kLsbRelease2, base::Time()); in TEST_F()
150 EXPECT_TRUE(base::SysInfo::IsRunningOnChromeOS()); in TEST_F()
154 base::SysInfo::SetChromeOSVersionInfoForTest(kLsbRelease3, base::Time()); in TEST_F()
155 EXPECT_TRUE(base::SysInfo::IsRunningOnChromeOS()); in TEST_F()