Index: base/sys_info_unittest.cc |
diff --git a/base/sys_info_unittest.cc b/base/sys_info_unittest.cc |
index 29409eed340c0af2f93e8419b054b04fbd0eca1e..15ae0989b1d7d4590c1cf5570a980fa901d1e1df 100644 |
--- a/base/sys_info_unittest.cc |
+++ b/base/sys_info_unittest.cc |
@@ -65,6 +65,13 @@ TEST_F(SysInfoTest, Uptime) { |
EXPECT_GT(up_time_2, up_time_1); |
} |
+#if defined(OS_MACOSX) && !defined(OS_IOS) |
+TEST_F(SysInfoTest, HardwareModelName) { |
+ std::string hardware_model = base::SysInfo::HardwareModelName(); |
+ EXPECT_FALSE(hardware_model.empty()); |
+} |
+#endif |
+ |
#if defined(OS_CHROMEOS) |
TEST_F(SysInfoTest, GoogleChromeOSVersionNumbers) { |