summaryrefslogtreecommitdiffstats
path: root/base
Commit message (Collapse)AuthorAgeFilesLines
* Turn on -Wall -Werror, fixing a few files while I'm here and *temporarily* ↵evanm@google.com2008-08-201-1/+1
| | | | | | disabling some other warnings that take more effort to fix. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1123 0039d316-1c4b-4281-b951-d872f2087c98
* TrackedObjects assumes you can use a "TLS slot" of -1 to indicate ↵evanm@google.com2008-08-209-98/+143
| | | | | | uninitialized. This isn't true for the pthread_key_t type, which is unsigned on Linux and reportedly a struct on Macs. This change modifies the Slot type to be a struct containing an "initialized" flag. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1122 0039d316-1c4b-4281-b951-d872f2087c98
* No need for size_mac.cc; subsumed by size.ccavi@google.com2008-08-201-48/+0
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1119 0039d316-1c4b-4281-b951-d872f2087c98
* Revert. Failing unit tests.evanm@google.com2008-08-208-135/+90
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1118 0039d316-1c4b-4281-b951-d872f2087c98
* TrackedObjects assumes you can use a "TLS slot" of -1 to indicate ↵evanm@google.com2008-08-208-90/+135
| | | | | | uninitialized. This isn't true for the pthread_key_t type, which is unsigned on Linux and reportedly a struct on Macs. This change modifies the Slot type to be a struct containing an "initialized" flag. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1113 0039d316-1c4b-4281-b951-d872f2087c98
* fix hammer builddarin@google.com2008-08-202-1/+1
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1108 0039d316-1c4b-4281-b951-d872f2087c98
* Disable warning 4355 on Windows builds: "'this' : used in base member ↵maruel@google.com2008-08-201-1/+0
| | | | | | initializer list". git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1100 0039d316-1c4b-4281-b951-d872f2087c98
* Merges in updated versions of Mac graphics platform classes, adds generic ↵awalker@google.com2008-08-2015-5/+1338
| | | | | | typedefs for use by higher level classes that just need to hold a reference (though does not yet refactor those classes). git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1099 0039d316-1c4b-4281-b951-d872f2087c98
* Add MimeSnifferTest to net_unittests. Take message_pump_default.cc out ofmmentovai@google.com2008-08-201-2/+0
| | | | | | base_unittests, because it's already part of base. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1096 0039d316-1c4b-4281-b951-d872f2087c98
* Create a gtest test fixture subclass that allows for platform specific setup ↵erikkay@google.com2008-08-205-4/+123
| | | | | | and teardown hooks. On the Mac use this to create an outer Autorelease pool. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1089 0039d316-1c4b-4281-b951-d872f2087c98
* For some reason, when I changed PathData to be a singleton (r722) Purify ↵erikkay@google.com2008-08-201-7/+23
| | | | | | | | | | started noticing the leak that had existed in this data structure all along. Now we clean up the heap objects correctly. BUG=1334485 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1088 0039d316-1c4b-4281-b951-d872f2087c98
* Pass StringPieces by constant reference.deanm@google.com2008-08-204-10/+10
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1085 0039d316-1c4b-4281-b951-d872f2087c98
* reland r1075 w/ tweak to fix test failuresdarin@google.com2008-08-2010-63/+81
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1084 0039d316-1c4b-4281-b951-d872f2087c98
* Fix a few warnings in the tracked object comparatormmentovai@google.com2008-08-201-11/+19
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1081 0039d316-1c4b-4281-b951-d872f2087c98
* rollback r1075 to see if it helps resolve test failuresdarin@google.com2008-08-2010-81/+63
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1078 0039d316-1c4b-4281-b951-d872f2087c98
* Eliminate TimerManager::GetCurrentDelay in favor of always referring to the ↵darin@google.com2008-08-2010-63/+81
| | | | | | | | | | | fire time of the next timer. I changed the MessagePump API to refer to a delayed_work_time instead of a delay. I moved the ceil-based rounding code into the Window's implementations of WaitableEvent and MessagePump. R=jar git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1075 0039d316-1c4b-4281-b951-d872f2087c98
* Send log messages to stderr when uninitialized on POSIX platforms.mmentovai@google.com2008-08-191-15/+28
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1071 0039d316-1c4b-4281-b951-d872f2087c98
* Add time_format (r1063) to the xcode projavi@google.com2008-08-191-0/+6
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1069 0039d316-1c4b-4281-b951-d872f2087c98
* Get base/gfx into shape, and start running/passing some base_gfx testsmmentovai@google.com2008-08-191-42/+107
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1066 0039d316-1c4b-4281-b951-d872f2087c98
* Move time formatters that only use ICU into base/time.*tc@google.com2008-08-194-0/+164
| | | | | | | | | | | | | This allows us to use the time formatters in, e.g., net or webkit. Remove CookieExpires since it's not used. BUG=1164516 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1063 0039d316-1c4b-4281-b951-d872f2087c98
* ThreadLocalStorage::Set should take care of validating its inputs. No need todarin@google.com2008-08-191-1/+0
| | | | | | | | | do that in the MessageLoop constructor. TBR=evanm git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1058 0039d316-1c4b-4281-b951-d872f2087c98
* disable test while we wait for linux fixdarin@google.com2008-08-191-1/+1
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1057 0039d316-1c4b-4281-b951-d872f2087c98
* fix build bustagedarin@google.com2008-08-191-2/+3
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1054 0039d316-1c4b-4281-b951-d872f2087c98
* Define MessagePumpDefault and use it to implement MessageLoop on non-Windowsdarin@google.com2008-08-1912-53/+321
| | | | | | | | | | | | | | | | | platforms. This is actually just a first-step toward the real fix which is to use MessagePumpDefault on all platforms on non-UI and non-IO threads. This CL also fixes some GCC compilation errors. I renamed MessageLoopOwnable to TaskBase, which seems more appropriate since a MessageLoopOwnable has a next Task pointer and clearly is only meaningful in the context of Task. (I wonder why it is even a separate class, but that is another issue.) I had to make the next_task / set_next_task methods public since they are used by an inner class of MessageLoop. Perhaps those inner classes should be made into top-level classes, but that seemed like too much to change at this time. R=jar,mmentovai git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1045 0039d316-1c4b-4281-b951-d872f2087c98
* Add mime_util and http_chunked_decoder to mac project.ericroman@google.com2008-08-191-1/+1
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1041 0039d316-1c4b-4281-b951-d872f2087c98
* Update SCons base_unittests build to track recent (?) VS build changes:sgk@google.com2008-08-191-2/+4
| | | | | | | | | | * Add $GTEST_DIR{,/include} to CPPPATH. * Fix a typo in $ICU38/_DIRpublic/i18n. * Add GOOGLE_CHROME_BUILD to CPPDEFINES. * Remove /Wp64. TBR: bradnelson git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1037 0039d316-1c4b-4281-b951-d872f2087c98
* Move more files to non-Win32-specific blocks. These build and pass tests on ↵mmoss@google.com2008-08-191-1/+2
| | | | | | Linux. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1035 0039d316-1c4b-4281-b951-d872f2087c98
* Fix sys_strings_conversion_mac to use .data() rather than .c_str() now thatmmentovai@google.com2008-08-191-1/+1
| | | | | | | the input string is a StringPiece. This should be fine, as we pass a byte count to CFStringCreateWithBytesNoCopy. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1033 0039d316-1c4b-4281-b951-d872f2087c98
* Fix a new[] / delete mismatch in a unittest.deanm@google.com2008-08-191-1/+1
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1030 0039d316-1c4b-4281-b951-d872f2087c98
* Move the system string conversion functions from std::string to StringPiece. ↵deanm@google.com2008-08-198-14/+28
| | | | | | We often work with char* in the system layer, so this should save extra copying. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1027 0039d316-1c4b-4281-b951-d872f2087c98
* Add a few tests to string_escape improving code coverage.deanm@google.com2008-08-191-0/+10
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1026 0039d316-1c4b-4281-b951-d872f2087c98
* Use __ImageBase linker variable instead of VirtualQuery on a global variable.deanm@google.com2008-08-191-7/+4
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1025 0039d316-1c4b-4281-b951-d872f2087c98
* 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