diff options
author | jeremy@chromium.org <jeremy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-24 16:37:13 +0000 |
---|---|---|
committer | jeremy@chromium.org <jeremy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-24 16:37:13 +0000 |
commit | 71aa16c5feea0cdfb7bb306c414d0dd8e7f167ae (patch) | |
tree | 1b27e2cc4021b3241c1ecc736306a3aa47085713 /base/sys_info_unittest.cc | |
parent | e537805e0f3c0d1559ec1db9d9d4d6d03642498f (diff) | |
download | chromium_src-71aa16c5feea0cdfb7bb306c414d0dd8e7f167ae.zip chromium_src-71aa16c5feea0cdfb7bb306c414d0dd8e7f167ae.tar.gz chromium_src-71aa16c5feea0cdfb7bb306c414d0dd8e7f167ae.tar.bz2 |
Recommit r10259 after successful try server run.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10265 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/sys_info_unittest.cc')
-rw-r--r-- | base/sys_info_unittest.cc | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/base/sys_info_unittest.cc b/base/sys_info_unittest.cc index ec43c05..64fcacf 100644 --- a/base/sys_info_unittest.cc +++ b/base/sys_info_unittest.cc @@ -36,3 +36,19 @@ TEST_F(SysInfoTest, HasEnvVar) { // Every setup should have PATH... EXPECT_TRUE(base::SysInfo::HasEnvVar(L"PATH")); } + +// TODO(port): If and when there's a LINUX version of this method, enable this +// unit test. +#if defined(OS_WIN) || defined(OS_MACOSX) +TEST_F(SysInfoTest, OperatingSystemVersionNumbers) { + int32 os_major_version = -1; + int32 os_minor_version = -1; + int32 os_bugfix_version = -1; + base::SysInfo::OperatingSystemVersionNumbers(&os_major_version, + &os_minor_version, + &os_bugfix_version); + EXPECT_GT(os_major_version, -1); + EXPECT_GT(os_minor_version, -1); + EXPECT_GT(os_bugfix_version, -1); +} +#endif // OS_WIN || OS_MACOSX |