Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3330)

Unified Diff: base/sys_info_unittest.cc

Issue 384070: linux: implement some SysInfo bits to reduce NOTIMPL spew (Closed)
Patch Set: Created 11 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/sys_info_posix.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/sys_info_unittest.cc
diff --git a/base/sys_info_unittest.cc b/base/sys_info_unittest.cc
index 31f314f1acf48e3a0a94d8c15f4234b221a21752..40caf726b6c4779a250567828f505db5c907d809 100644
--- a/base/sys_info_unittest.cc
+++ b/base/sys_info_unittest.cc
@@ -52,6 +52,19 @@ TEST_F(SysInfoTest, OperatingSystemVersionNumbers) {
}
#endif
+TEST_F(SysInfoTest, GetPrimaryDisplayDimensions) {
+ // We aren't actually testing that it's correct, just that it's sane.
+ int width, height;
+ base::SysInfo::GetPrimaryDisplayDimensions(&width, &height);
+ EXPECT_GE(width, 10);
+ EXPECT_GE(height, 10);
+}
+
+TEST_F(SysInfoTest, DisplayCount) {
+ // We aren't actually testing that it's correct, just that it's sane.
+ EXPECT_GE(base::SysInfo::DisplayCount(), 1);
+}
+
#if defined(OS_CHROMEOS)
TEST_F(SysInfoTest, GoogleChromeOSVersionNumbers) {
int32 os_major_version = -1;
« no previous file with comments | « base/sys_info_posix.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698