summaryrefslogtreecommitdiffstats
path: root/base/sys_info_unittest.cc
Commit message (Collapse)AuthorAgeFilesLines
* Add a unittest for base::SysInfo::MaxSharedMemorySizerobert.nagy@gmail.com2011-10-241-0/+7
| | | | | | | | | | | | | on all OS_POSIX systems where it's available by checking the return value. BUG= TEST=base_unittests SysInfoTest.MaxSharedMemorySize Review URL: http://codereview.chromium.org/8381022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@107014 0039d316-1c4b-4281-b951-d872f2087c98
* Remove version hacks for platform version.rkc@chromium.org2011-10-031-6/+6
| | | | | | | | | | | | ChromeOS is now using platform numbers as intended, hence the hacks put in place to extract the platform numbers from the old ChromeOS version numbers are no longer needed. Removed them. R=davemoore@chromium.org,evan@chromium.org,zelidrag@chromium.org BUG=chromium-os:20934 TEST=Checked all places where the version shows up. On the latest build it was breaking, it shows correctly again after this fix. Review URL: http://codereview.chromium.org/8068028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103687 0039d316-1c4b-4281-b951-d872f2087c98
* base: Move UI code out of SysInfo.derat@chromium.org2011-06-151-13/+0
| | | | | | | | | | | | | | | | This moves GetPrimaryDisplayDimensions() and DisplayCount() out of base and into a new DisplayUtils class (currently alongside the metrics code, since that's the only place that they're called). These methods add a GDK dependency that prevents Chrome OS from including process_util (which depends on SysInfo) in its libchrome library. BUG=chromium-os:16153 TEST=moved existing unit tests Review URL: http://codereview.chromium.org/7128001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89194 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 88545 - Revert 88470 (broke ServiceProcessStateTest.ForceShutdown on ↵rkc@chromium.org2011-06-091-7/+7
| | | | | | | | | | | | | | | | | | CrOS) - Fix for system version unit tests in cros. Unit test the revert was to fix is still failing after the revert. Also confirmed that the failing test has nothing to do with this CL. BUG=chromium-os:15789 TEST=Ran try servers to make sure the unit test is not failing anymore, plus viewed all the screens and took screenshots. Screen shots of all effected screens are attached to the cros bug TBR=rkc@chromium.org TBR=rkc@chromium.org Review URL: http://codereview.chromium.org/7044086 TBR=thakis@chromium.org Review URL: http://codereview.chromium.org/7044097 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@88595 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 88470 (broke ServiceProcessStateTest.ForceShutdown on CrOS) - Fix for ↵thakis@chromium.org2011-06-091-7/+7
| | | | | | | | | | | | | system version unit tests in cros. BUG=chromium-os:15789 TEST=Ran try servers to make sure the unit test is not failing anymore, plus viewed all the screens and took screenshots. Screen shots of all effected screens are attached to the cros bug TBR=rkc@chromium.org TBR=rkc@chromium.org Review URL: http://codereview.chromium.org/7044086 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@88545 0039d316-1c4b-4281-b951-d872f2087c98
* Fix for system version unit tests in cros.rkc@chromium.org2011-06-091-7/+7
| | | | | | | | BUG=chromium-os:15789 TEST=Ran try servers to make sure the unit test is not failing anymore, plus viewed all the screens and took screenshots. Screen shots of all effected screens are attached to the cros bug TBR=rkc@chromium.org git-svn-id: svn://svn.chromium.org/chrome/trunk/src@88470 0039d316-1c4b-4281-b951-d872f2087c98
* base: Get rid of the deprecated SysInfo::GetEnvVar.tfarina@chromium.org2010-07-081-5/+0
| | | | | | | | | | | Use the new EnvVarGetter::GetEnv instead. BUG=None TEST=trybots Review URL: http://codereview.chromium.org/2876045 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51829 0039d316-1c4b-4281-b951-d872f2087c98
* base: Get rid of the deprecated SysInfo::HasEnvVar.tfarina@chromium.org2010-07-051-6/+1
| | | | | | | | | | | Use the new EnvVarGetter::HasEnv instead. BUG=None TEST=trybots Review URL: http://codereview.chromium.org/2819042 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51648 0039d316-1c4b-4281-b951-d872f2087c98
* Fix test failure: SysInfoTest.GoogleChromeOSVersionNumbersFirstcmasone@google.com2009-12-091-9/+9
| | | | | | Review URL: http://codereview.chromium.org/467053 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@34129 0039d316-1c4b-4281-b951-d872f2087c98
* linux: implement some SysInfo bits to reduce NOTIMPL spewevan@chromium.org2009-11-121-0/+13
| | | | | | | | | | 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
* Convert SysInfo::AmountOfFreeDiskSpace from wstring to FilePath.tony@chromium.org2009-10-141-1/+1
| | | | | | | | BUG=24672 Review URL: http://codereview.chromium.org/276012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28927 0039d316-1c4b-4281-b951-d872f2087c98
* Fix to use FilePath in more unittests.phajdan.jr@chromium.org2009-09-141-2/+3
| | | | | | | | | | | Landing patch for Thiago Farina, original review: http://codereview.chromium.org/187005 BUG=None TEST=run unit_tests.exe, base_unittests.exe. Review URL: http://codereview.chromium.org/193101 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@26142 0039d316-1c4b-4281-b951-d872f2087c98
* Creating a unique user-agent string for ChromeOS builds, so that metrics can ↵evan@chromium.org2009-07-221-4/+51
| | | | | | | | | be aggregated separately from standard Chrome on Linux Review URL: http://codereview.chromium.org/155101 Patch from Chris Masone <cmasone@google.com>. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21247 0039d316-1c4b-4281-b951-d872f2087c98
* Recommit r10259 after successful try server run.jeremy@chromium.org2009-02-241-0/+16
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10265 0039d316-1c4b-4281-b951-d872f2087c98
* Revert r10259 & subsequent fixes.jeremy@chromium.org2009-02-241-17/+0
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10262 0039d316-1c4b-4281-b951-d872f2087c98
* Fix Win32 unit tests broken by r10259.jeremy@chromium.org2009-02-241-1/+2
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10261 0039d316-1c4b-4281-b951-d872f2087c98
* Fix for Sandboxed WebKit on OS X:jeremy@chromium.org2009-02-241-0/+16
| | | | | | | | | | * Cache Gestalt's value since it opens files. * Do a little cleanup in sys_info while I'm there and add a unit test. * Label some methods as not being threadsafe on OSX/POSIX. Review URL: http://codereview.chromium.org/27088 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10259 0039d316-1c4b-4281-b951-d872f2087c98
* * Cleanup: move base/platform_test.h -> testing/jeremy@chromium.org2008-12-021-1/+1
| | | | | | | | * Add support for "Debug On Start" switch to MultiprocessTest::SpawnChild Review URL: http://codereview.chromium.org/13052 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6227 0039d316-1c4b-4281-b951-d872f2087c98
* Refactoring for portability:mark@chromium.org2008-09-291-0/+10
| | | | | | | | | | | | | - Move chrome/common/env_util to base/sys_info - Move chrome/common/rand_util to base/rand_util (new), simplify its public interface, and fix its implementation Patch by Paweł Hajdan, Jr. <phajdan.jr@gmail.com> http://codereview.chromium.org/4079 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2697 0039d316-1c4b-4281-b951-d872f2087c98
* Display the tmp path to help debug an issue with a build bot.maruel@google.com2008-09-291-1/+1
| | | | | | Review URL: http://codereview.chromium.org/4336 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2686 0039d316-1c4b-4281-b951-d872f2087c98
* Provide autorelease pool management on the Mac in all types of message pumps.mark@chromium.org2008-09-251-3/+6
| | | | | | | Fix a few unit tests to use autorelease pools as needed. Review URL: http://codereview.chromium.org/3805 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2603 0039d316-1c4b-4281-b951-d872f2087c98
* Move GetFreeDiskSpace to SysInfo.deanm@chromium.org2008-09-181-0/+9
| | | | | | | Patch from Pawel Hajdan Jr. Review URL: http://codereview.chromium.org/3141 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2359 0039d316-1c4b-4281-b951-d872f2087c98
* Add support for querying the amount of memory on a system to sys_info.deanm@chromium.org2008-09-171-0/+5
| | | | | | Review URL: http://codereview.chromium.org/2927 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2303 0039d316-1c4b-4281-b951-d872f2087c98
* Add a class for extracting system-specific information, like the number of ↵deanm@chromium.org2008-09-171-0/+11
processors. Review URL: http://codereview.chromium.org/3084 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2302 0039d316-1c4b-4281-b951-d872f2087c98