summaryrefslogtreecommitdiffstats
path: root/base
Commit message (Collapse)AuthorAgeFilesLines
* Add tests for From / In converions and LocalMidnight. Add InMinutes().deanm@google.com2008-08-194-2/+43
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1024 0039d316-1c4b-4281-b951-d872f2087c98
* Fix some warnings found in string unittests.evanm@google.com2008-08-192-91/+96
| | | | | | | (Preparation for enabling -Wall -Werror.) git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1012 0039d316-1c4b-4281-b951-d872f2087c98
* Use LF for newlines in all DEPS filesmmentovai@google.com2008-08-182-6/+6
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1011 0039d316-1c4b-4281-b951-d872f2087c98
* Rearrange and add notes on remaining base modules that are in the ↵evanm@google.com2008-08-181-10/+15
| | | | | | Windows-specific branch of the SConscript. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@998 0039d316-1c4b-4281-b951-d872f2087c98
* Make some net unittests compile and pass on linux.tc@google.com2008-08-182-0/+14
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@991 0039d316-1c4b-4281-b951-d872f2087c98
* Add more useful settings to the xcconfigs.mmentovai@google.com2008-08-181-0/+10
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@988 0039d316-1c4b-4281-b951-d872f2087c98
* Use a common directory for all build output on the Mac.mmentovai@google.com2008-08-182-8/+9
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@986 0039d316-1c4b-4281-b951-d872f2087c98
* Cleanup some comment typos.ericroman@google.com2008-08-1813-20/+20
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@984 0039d316-1c4b-4281-b951-d872f2087c98
* Fix incorrect unsigned math in pr_time.cc on Windows which incorrectly ↵deanm@google.com2008-08-182-17/+98
| | | | | | | | | | | | handled times before 1970 Epoch. Improved Linux's handling of timegm() failure. Adding more test cases at / around Epoch. BUG=1327608 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@982 0039d316-1c4b-4281-b951-d872f2087c98
* Take 2 at the new MessageLoop implementation.darin@google.com2008-08-164-878/+258
| | | | | | | | R=jar git-svn-id: svn://svn.chromium.org/chrome/trunk/src@973 0039d316-1c4b-4281-b951-d872f2087c98
* Fix the bug where (a < b && b < a) is true. This is producing an assert when ↵maruel@google.com2008-08-161-6/+6
| | | | | | breakpad is correctly disabled. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@971 0039d316-1c4b-4281-b951-d872f2087c98
* Revert r966, as it broke the Windows build.evanm@google.com2008-08-151-8/+8
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@967 0039d316-1c4b-4281-b951-d872f2087c98
* Fix signed/unsigned in prep for -Wall.evanm@google.com2008-08-151-8/+8
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@966 0039d316-1c4b-4281-b951-d872f2087c98
* a few unit tests broke on windows, fix those bugserikkay@google.com2008-08-151-2/+5
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@950 0039d316-1c4b-4281-b951-d872f2087c98
* sigherikkay@google.com2008-08-151-1/+3
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@949 0039d316-1c4b-4281-b951-d872f2087c98
* one more try before reverterikkay@google.com2008-08-152-15/+15
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@948 0039d316-1c4b-4281-b951-d872f2087c98
* Move all settings except for the ones that really need to be per-target intommentovai@google.com2008-08-151-61/+36
| | | | | | xcconfig files, which we can use on many project files. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@947 0039d316-1c4b-4281-b951-d872f2087c98
* fix build bustageerikkay@google.com2008-08-151-1/+1
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@946 0039d316-1c4b-4281-b951-d872f2087c98
* Part two of file_util porting. Almost all of the functionality has been ↵erikkay@google.com2008-08-1511-166/+420
| | | | | | ported, including the unit tests now. Some of this API isn't great, and should be cleaned up, but I'd like to hold off and do that in a followup changelist. More general code cleanup is likely needed here as well. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@944 0039d316-1c4b-4281-b951-d872f2087c98
* Make the error message extra verbose when the external developper didn't ↵maruel@google.com2008-08-151-1/+5
| | | | | | correctly install and register the SDK. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@942 0039d316-1c4b-4281-b951-d872f2087c98
* Add ref_counted.cc to the Mac build.mmentovai@google.com2008-08-153-2/+6
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@938 0039d316-1c4b-4281-b951-d872f2087c98
* Large patch set (159 files total) to cleanup the includes.maruel@google.com2008-08-154-65/+170
| | | | | | | | | | - Slightly reduce the size of the generated .lib files ~3%. - Reduce the number of implicit and explicit atl and windows includes. hooray! - Help incremental build by reducing the number of unnecessary included files. - Split some template class in two, one base class for the common code and the specialization that inherits from the base class. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@937 0039d316-1c4b-4281-b951-d872f2087c98
* rollback portions of r928 to test to see if it impacts perfdarin@google.com2008-08-152-251/+858
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@936 0039d316-1c4b-4281-b951-d872f2087c98
* Just like HandleWorkMessage, we have to be concerned with HandleTimerMessagedarin@google.com2008-08-151-0/+6
| | | | | | | | | | | being called outside the context of our Run method. In such cases, just kill the timer, and return. This fixes the crash that was observed with the Firefox3 importer unit test on Vista. TBR=jar git-svn-id: svn://svn.chromium.org/chrome/trunk/src@933 0039d316-1c4b-4281-b951-d872f2087c98
* SCons build: add base\message_pump_win.cc.sgk@google.com2008-08-151-0/+1
| | | | | | TBR: darin git-svn-id: svn://svn.chromium.org/chrome/trunk/src@932 0039d316-1c4b-4281-b951-d872f2087c98
* Try only re-scheduling work when HandleWorkMessage is called.darin@google.com2008-08-152-1/+5
| | | | | | | TBR=jar git-svn-id: svn://svn.chromium.org/chrome/trunk/src@930 0039d316-1c4b-4281-b951-d872f2087c98
* remove some testing code that i didn't mean to checkindarin@google.com2008-08-151-16/+0
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@929 0039d316-1c4b-4281-b951-d872f2087c98
* Introduce MessagePump to represent the native message pump used to drive adarin@google.com2008-08-159-872/+1177
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | MessageLoop. A MessageLoop now has a MessagePump. This will make it possible to port the MessagePump interface to other platforms as well as to use an IO completion port for our worker threads on Windows. Currently, there is only MessagePumpWin, which attempts to preserve the pre-existing behavior of the MessageLoop. API changes to MessageLoop: 1. MessageLoop::Quit means return from Run when the MessageLoop would otherwise wait for more work. 2. MessageLoop::Quit can no longer be called outside the context of an active Run call. So, things like this: MessageLoop::current()->Quit(); MessageLoop::current()->Run(); are now: MessageLoop::current()->RunAllPending(); 3. MessageLoop::Quit can no longer be called from other threads. This means that PostTask(..., new MessageLoop::QuitTask()) must be used explicitly to Quit across thread boundaries. 4. No protection is made to deal with nested MessageLoops involving watched objects or APCs. In fact, an assertion is added to flag such cases. This is a temporary measure until object watching and APC facilities are removed in favor of a MessagePump designed around an IO completion port. As part of this CL, I also changed the automation system to use an IPC::ChannelProxy instead of an IPC::Channel. This moves the automation IPC onto Chrome's IO thread where it belongs. I also fixed some abuses of RefCounted in the AutomationProvider class. It was deleting itself in some cases! This led to having to fix the ownership model for AutomationProvider, which explains the changes to AutomationProviderList and so on. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@928 0039d316-1c4b-4281-b951-d872f2087c98
* more bustage fixesdarin@google.com2008-08-151-2/+3
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@925 0039d316-1c4b-4281-b951-d872f2087c98
* rollback r922 to fix windows bustagedarin@google.com2008-08-152-93/+93
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@924 0039d316-1c4b-4281-b951-d872f2087c98
* Unify all of the build settings, and tweak a couple. Set as many things as ↵mmentovai@google.com2008-08-151-618/+361
| | | | | | possible per project, not per target. Make base_unittests link with libbase.a instead of compiling everything separately in each target. Sort everything so files are easier to find and to reduce merge conflicts. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@923 0039d316-1c4b-4281-b951-d872f2087c98
* Fix more compiler warnings.darin@google.com2008-08-157-109/+108
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@922 0039d316-1c4b-4281-b951-d872f2087c98
* To pass string_util_unittest, we need the ICU data file. To get the ICU ↵evanm@google.com2008-08-1512-20/+197
| | | | | | data file, we need some of PathService, which brings along with it a bunch of other needed functions. So here are a bunch of stubs, along with another file's worth of passing tests. (Based on a patch from Dean.) git-svn-id: svn://svn.chromium.org/chrome/trunk/src@921 0039d316-1c4b-4281-b951-d872f2087c98
* Add command_line_unittest and pr_time_test to the linux set of unittests. ↵tc@google.com2008-08-144-14/+14
| | | | | | Fix the const-ness of argv in CommandLine on posix. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@901 0039d316-1c4b-4281-b951-d872f2087c98
* Add waitable_event_generic.cc, waitable_event_unittest.cc, and ↵darin@google.com2008-08-141-0/+14
| | | | | | condition_variable_posix.cc to the base_unittests target. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@894 0039d316-1c4b-4281-b951-d872f2087c98
* fix unit test bustagedarin@google.com2008-08-141-4/+2
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@887 0039d316-1c4b-4281-b951-d872f2087c98
* Fix some compiler warnings, and cleanup EXPECT_EQ comparisons. Hello "U" ↵darin@google.com2008-08-144-41/+41
| | | | | | suffix :-) git-svn-id: svn://svn.chromium.org/chrome/trunk/src@882 0039d316-1c4b-4281-b951-d872f2087c98
* Add skia and our png wrappers. png_codec_unittest and ↵tc@google.com2008-08-142-15/+9
| | | | | | image_operations_unittest pass. This gives us 70 passing unittests. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@878 0039d316-1c4b-4281-b951-d872f2087c98
* SCons build accommodation of renaming base\gfx\*platform*.cc to ↵sgk@google.com2008-08-141-3/+8
| | | | | | | | base\gfx\*platform*_win.cc. TBR: awalker git-svn-id: svn://svn.chromium.org/chrome/trunk/src@875 0039d316-1c4b-4281-b951-d872f2087c98
* The SHA2 files compile, and the unittests pass, now that ↵mmoss@google.com2008-08-141-3/+3
| | | | | | nspr/prcpucfg_linux.h is in, so move to the common build sections. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@874 0039d316-1c4b-4281-b951-d872f2087c98
* git-svn-id: svn://svn.chromium.org/chrome/trunk/src@873 ↵awalker@google.com2008-08-1415-138/+138
| | | | 0039d316-1c4b-4281-b951-d872f2087c98
* Fix the flaky atexit test by preventing it from running the global atexit ↵mmentovai@google.com2008-08-142-2/+13
| | | | | | callbacks. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@869 0039d316-1c4b-4281-b951-d872f2087c98
* Build stack_container_unittest everywhere, it can build with GCC.deanm@google.com2008-08-141-1/+1
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@866 0039d316-1c4b-4281-b951-d872f2087c98
* Add a trailing EOL to source files. This eliminates warnings in GCC.deanm@google.com2008-08-1411-11/+11
| | | | | | No code change. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@865 0039d316-1c4b-4281-b951-d872f2087c98
* Implement nspr time on Linux.deanm@google.com2008-08-144-6/+745
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@863 0039d316-1c4b-4281-b951-d872f2087c98
* DCHECK vswprintf format string cross-platform portability. Use %ls, not %s, ↵mmentovai@google.com2008-08-145-5/+109
| | | | | | for wchar_t* fields. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@849 0039d316-1c4b-4281-b951-d872f2087c98
* I removed a questionable use of Quit() on a message loopjar@google.com2008-08-141-3/+3
| | | | | | | | | | | in test (it was a redundant use of quit which was caught when I wrote code to detect this construct, which caused hangs in some race scenarios). r=darin git-svn-id: svn://svn.chromium.org/chrome/trunk/src@848 0039d316-1c4b-4281-b951-d872f2087c98
* Add missing methods to thread_posix.ccpaulg@google.com2008-08-141-1/+20
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@847 0039d316-1c4b-4281-b951-d872f2087c98
* Use %ls instead of %s in wprintf format strings for wchar_t fields.mmentovai@google.com2008-08-144-4/+4
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@846 0039d316-1c4b-4281-b951-d872f2087c98
* Use syscall instead since gettid doesn't seem to exist.tc@google.com2008-08-131-2/+2
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@845 0039d316-1c4b-4281-b951-d872f2087c98