summaryrefslogtreecommitdiffstats
path: root/net
Commit message (Collapse)AuthorAgeFilesLines
* Filter out tests from purify tests that intentionally leak.erikkay@google.com2008-08-223-182/+7
| | | | | | | | | | Remove stacks for these tests from the known errors list. BUG=1339773 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1262 0039d316-1c4b-4281-b951-d872f2087c98
* Fix spurious gcc warning dkegel@google.com2008-08-221-1/+1
| | | | | | | net/base/net_util.cc:176: warning: suggest parentheses around && within || git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1261 0039d316-1c4b-4281-b951-d872f2087c98
* We can link with secur32.lib and call the SSPI functions directly.wtc@google.com2008-08-221-48/+18
| | | | | | | | | | | The Platform SDK sample code loads the DLL and looks up the function pointer table dynamically, probably because it was written back when Win 9x and NT used different DLLs (secur32.dll and security.dll). R=maruel,darin BUG=1272567 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1256 0039d316-1c4b-4281-b951-d872f2087c98
* Add missing framework to link Mac mime changes.avi@google.com2008-08-221-0/+4
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1251 0039d316-1c4b-4281-b951-d872f2087c98
* Disk cache: Delete all files from the cache folder, instead of only thervargas@google.com2008-08-221-17/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | files created by the cache. I changed the code that deletes the cache files from the unit tests to use the same code used by the cache itself to discard old caches. However, said code performs a selective deletion of files, and leave anything that it doesn't know about on the folder, and then attempts to remove the folder (knowing that it will fail if there are extra files or directories there). That causes a problem with the unit tests, because some of the tests create an extra file in that folder, so the folder cannot be deleted. As a result, we start accumulating extra folders until we reach our pre-defined limit, and at that time the tests start to fail. We could modify the code to also delete this extra file, but given that the whole cache lives under a hidden folder, it makes sense to simplify the code and just delete every file when we want to discard an old file. So this means that if a user decides to write a file to that folder, we will delete it whenever we update the cache version, or when the user chooses to "Clear browsing data/ cache". Note that if the foreign object is a directory, we won't delete it and it will be moved aside. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1244 0039d316-1c4b-4281-b951-d872f2087c98
* Impl of platform mime typing for Mac.avi@google.com2008-08-221-6/+43
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1238 0039d316-1c4b-4281-b951-d872f2087c98
* Use PlatformTest to manage autorelease pools in net tests that use the path ↵mmentovai@google.com2008-08-223-4/+22
| | | | | | service git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1233 0039d316-1c4b-4281-b951-d872f2087c98
* Some stacks for known memory leaks in net_unittests have changed.erikkay@google.com2008-08-221-12/+4
| | | | | | | | TBR=pamg git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1221 0039d316-1c4b-4281-b951-d872f2087c98
* Move FileURLToFilePath into platform specific files. Most of the logic in ↵tc@google.com2008-08-227-77/+229
| | | | | | this function is specific to windows' file system. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1211 0039d316-1c4b-4281-b951-d872f2087c98
* Enable -Werror on the Mac. Fix two more warnings just added to our build. ↵mmentovai@google.com2008-08-222-7/+8
| | | | | | Note that the targets for libskia and libicuuc still exclude themselves from -Werror. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1205 0039d316-1c4b-4281-b951-d872f2087c98
* Bandaid to fix build breakage; this isn't the real cause though.avi@google.com2008-08-221-0/+12
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1202 0039d316-1c4b-4281-b951-d872f2087c98
* Disk cache: add a delay after TruncateData unit test to wait for IO completions.rvargas@google.com2008-08-211-0/+5
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1200 0039d316-1c4b-4281-b951-d872f2087c98
* This line should not have ever changedmmentovai@google.com2008-08-211-1/+1
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1199 0039d316-1c4b-4281-b951-d872f2087c98
* Fix warnings. The unused var one was introduced two repositories ago, and ↵avi@google.com2008-08-211-4/+1
| | | | | | has always been that way. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1196 0039d316-1c4b-4281-b951-d872f2087c98
* r1194 missed some sites to disable the warningmmentovai@google.com2008-08-211-3/+3
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1195 0039d316-1c4b-4281-b951-d872f2087c98
* Fix the final gcc warnings in base and net. Provide some macros to ↵mmentovai@google.com2008-08-213-18/+17
| | | | | | selectively disable MSVC warnings. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1194 0039d316-1c4b-4281-b951-d872f2087c98
* More net files brought into compilation for Mac/Linux.avi@google.com2008-08-214-11/+28
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1192 0039d316-1c4b-4281-b951-d872f2087c98
* Add the net_util_unittest to the mac net project.paulg@google.com2008-08-211-0/+2
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1191 0039d316-1c4b-4281-b951-d872f2087c98
* Blind fix for net unittest failure.evanm@google.com2008-08-212-3/+3
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1189 0039d316-1c4b-4281-b951-d872f2087c98
* Make upload_data not be windows specific. Add it to the SCons build.tc@google.com2008-08-213-14/+10
| | | | | | | Also add mime_sniffer_unittest which already passes. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1178 0039d316-1c4b-4281-b951-d872f2087c98
* Pass 100 more tests on Linux. Puts my money where my mouth is.mmentovai@google.com2008-08-211-11/+13
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1171 0039d316-1c4b-4281-b951-d872f2087c98
* Add net_util* to the SCons build. Fixes some ICU UChar issues in net_util. ↵tc@google.com2008-08-214-47/+67
| | | | | | | | | Also disable NetUtilTest.FileURLConversion because it seems to have Windows specific output (is this the right thing to do?). The other changes to net_util_unittest is to get arraysize to work (see the comment in base/basictypes.h). git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1168 0039d316-1c4b-4281-b951-d872f2087c98
* Port cookie_monster, net_util, and registry_controlled_domain to POSIXish ↵mmentovai@google.com2008-08-218-158/+203
| | | | | | platforms git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1164 0039d316-1c4b-4281-b951-d872f2087c98
* Mark static method defined in header as inlinemmentovai@google.com2008-08-211-4/+4
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1162 0039d316-1c4b-4281-b951-d872f2087c98
* Fix signedness warnings in http_response_headersmmentovai@google.com2008-08-211-3/+3
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1159 0039d316-1c4b-4281-b951-d872f2087c98
* Back out r1154 due to test failuresmmentovai@google.com2008-08-218-195/+158
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1156 0039d316-1c4b-4281-b951-d872f2087c98
* Port cookie_monster, net_util, and registry_controlled_domain to POSIXish ↵mmentovai@google.com2008-08-218-158/+195
| | | | | | platforms git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1154 0039d316-1c4b-4281-b951-d872f2087c98
* Fix WaitForPendingIO to actually exit the wait at some point.rvargas@google.com2008-08-214-6/+6
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1143 0039d316-1c4b-4281-b951-d872f2087c98
* Fix the linux build again. http_response_headers.cc hastc@google.com2008-08-211-2/+2
| | | | | | | | | size_t i = -1 which doesn't compile on gcc 4.0.3. TBR=erg git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1136 0039d316-1c4b-4281-b951-d872f2087c98
* Make the disk cache unit tests use some common code from the disk cache.rvargas@google.com2008-08-211-10/+11
| | | | | | | | In particular, this removes the last piece of code on the disk cache that uses SHFileOperation. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1135 0039d316-1c4b-4281-b951-d872f2087c98
* Fix net build on linux by moving http_vary_data to the win only section ↵tc@google.com2008-08-211-2/+2
| | | | | | | | | until we port it. TBR=evanm@google.com git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1134 0039d316-1c4b-4281-b951-d872f2087c98
* Final character conversions for net_util.paulg@google.com2008-08-201-4/+17
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1132 0039d316-1c4b-4281-b951-d872f2087c98
* M net/base/cookie_monster.hawalker@google.com2008-08-201-2/+2
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1131 0039d316-1c4b-4281-b951-d872f2087c98
* Fix some more warnings.evanm@google.com2008-08-201-1/+1
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1130 0039d316-1c4b-4281-b951-d872f2087c98
* Fix some more warnings.evanm@google.com2008-08-202-2/+1
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1127 0039d316-1c4b-4281-b951-d872f2087c98
* More of net compiling on the Mac.avi@google.com2008-08-205-48/+63
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1125 0039d316-1c4b-4281-b951-d872f2087c98
* Fix some character conversions and Mac compile errors for net_util.cc.paulg@google.com2008-08-202-18/+39
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1112 0039d316-1c4b-4281-b951-d872f2087c98
* Use the right mode in HttpCache::Transaction::RequiresValidationmmentovai@google.com2008-08-201-1/+1
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1107 0039d316-1c4b-4281-b951-d872f2087c98
* Quick fix; it's a struct not a class.avi@google.com2008-08-201-1/+1
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1104 0039d316-1c4b-4281-b951-d872f2087c98
* Build more files with sconsavi@google.com2008-08-201-3/+3
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1102 0039d316-1c4b-4281-b951-d872f2087c98
* Fixing extended verification code for non-windowsavi@google.com2008-08-203-2/+4
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1101 0039d316-1c4b-4281-b951-d872f2087c98
* Add MimeSnifferTest to net_unittests. Take message_pump_default.cc out ofmmentovai@google.com2008-08-201-0/+2
| | | | | | 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
* We should reset content_length_remaining_ (to -1) when wewtc@google.com2008-08-201-0/+3
| | | | | | | | | | | | | restart a transaction. Otherwise, the stale value of content_length_remaining_ may be incorrectly applied to the response to the restarted request. I also reset upload_progress_ just to be safe. R=darin BUG=1314424 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1093 0039d316-1c4b-4281-b951-d872f2087c98
* Make mime sniffer compile for Mac.avi@google.com2008-08-202-6/+7
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1092 0039d316-1c4b-4281-b951-d872f2087c98
* Portability changes to http_response_headers.ericroman@google.com2008-08-202-10/+48
| | | | | | | | | | | | | | | | | | | | | | | | The parsing changes will also behave differently for these cases (added as unit-tests): "Content-Length: +10\n" Before: 10 After: -1 "Content-Length: 40000000000000000000\n" Before: 9223372036854775807 After: -1 "Content-Length: \v10\n" Before: 10 After: -1 "Content-Length: \f10\n" Before: 10 After: -1 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1083 0039d316-1c4b-4281-b951-d872f2087c98
* Run a couple more tests in net, and get rid of a couple more warningsmmentovai@google.com2008-08-203-3/+13
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1076 0039d316-1c4b-4281-b951-d872f2087c98
* Add more files to the net module compile list. Had to make some small ↵tc@google.com2008-08-203-53/+66
| | | | | | changes to how static struct arrays were declared so arraysize() would work with gcc. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1074 0039d316-1c4b-4281-b951-d872f2087c98
* Update the list of files that should compile.rvargas@google.com2008-08-191-18/+16
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1073 0039d316-1c4b-4281-b951-d872f2087c98
* add http_cache to mac build.ericroman@google.com2008-08-196-30/+38
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1068 0039d316-1c4b-4281-b951-d872f2087c98
* Remove warnings for the net module.rvargas@google.com2008-08-195-10/+12
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1067 0039d316-1c4b-4281-b951-d872f2087c98