linux: implement some SysInfo bits to reduce NOTIMPL spew

Also added basic tests for these functions.

BUG=21732

Review URL: http://codereview.chromium.org/384070

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31762 0039d316-1c4b-4281-b951-d872f2087c98


CrOS-Libchrome-Original-Commit: 1b4b23a7d82fce6e0637ed96b124af229fc21f22
diff --git a/base/sys_info_unittest.cc b/base/sys_info_unittest.cc
index 31f314f..40caf72 100644
--- a/base/sys_info_unittest.cc
+++ b/base/sys_info_unittest.cc
@@ -52,6 +52,19 @@
 }
 #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;