summaryrefslogtreecommitdiffstats
path: root/net/data
Commit message (Collapse)AuthorAgeFilesLines
* Added gtest filter for net_unittests that spawn processesglider@chromium.org2009-12-241-0/+4
| | | | | | | | | | (bug_31129) TBR=willchan Review URL: http://codereview.chromium.org/516024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35263 0039d316-1c4b-4281-b951-d872f2087c98
* Get the new certificate for https://www.unosoft.hu/ and re-enable thewtc@chromium.org2009-12-151-0/+0
| | | | | | | | | | | | | | | | | X509CertificateTest.UnoSoftCertParsing unit test. Add the https://www.unosoft.hu/ certificate as net/data/ssl/certificates/unosoft_hu_cert.der in preparation of changing the X509CertificateTest tests to read from external certificate data files. R=rvargas BUG=30345 TEST=X509CertificateTest.UnoSoftCertParsing should run and pass when running net_unittests. Review URL: http://codereview.chromium.org/495018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@34612 0039d316-1c4b-4281-b951-d872f2087c98
* Add support for MLSD FTP directory listing (RFC-3659)phajdan.jr@chromium.org2009-12-104-0/+58
| | | | | | | | | | | At least the format is specified... that's a good thing. TEST=Covered by net_unittests. BUG=25520, 29691 Review URL: http://codereview.chromium.org/479004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@34268 0039d316-1c4b-4281-b951-d872f2087c98
* Compatibility updates for "ls -l" style FTP LIST response parser:phajdan.jr@chromium.org2009-12-104-0/+109
| | | | | | | | | | | | - recognize permission listing with ACL indicator as valid - add one more test for non-ASCII encoding TEST=Covered by net_unittests. BUG=25520 Review URL: http://codereview.chromium.org/472003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@34240 0039d316-1c4b-4281-b951-d872f2087c98
* Compatibility improvements for "ls -l" FTP LIST response format.phajdan.jr@chromium.org2009-12-084-0/+58
| | | | | | | | | TEST=Covered by net_unittests. BUG=25520 Review URL: http://codereview.chromium.org/460139 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@34079 0039d316-1c4b-4281-b951-d872f2087c98
* Add support for wu-ftpd style FTP LIST response format.phajdan.jr@chromium.org2009-12-084-0/+140
| | | | | | | | | TEST=Covered by net_unittests. BUG=25520 Review URL: http://codereview.chromium.org/469010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@34049 0039d316-1c4b-4281-b951-d872f2087c98
* Implement parser for Netware-style FTP LIST response listing.phajdan.jr@chromium.org2009-12-074-0/+50
| | | | | | | | | TEST=Covered by net_unittests. BUG=25520 Review URL: http://codereview.chromium.org/465059 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33978 0039d316-1c4b-4281-b951-d872f2087c98
* Make new FTP LIST parsing code more robust.phajdan.jr@chromium.org2009-12-0312-0/+288
| | | | | | | | | | | | | | Some highlights: - more tests (including non-ASCII characters in different encodings) - handling more variants of "ls" listing - handling spaces in file names in "ls" listings TEST=Covered by net_unittests. BUG=25520 Review URL: http://codereview.chromium.org/449011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33688 0039d316-1c4b-4281-b951-d872f2087c98
* Add suppression while I fix this WriteError leak.mbelshe@google.com2009-11-301-0/+8
| | | | | | | | | BUG=29004 TEST=none Review URL: http://codereview.chromium.org/453008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33317 0039d316-1c4b-4281-b951-d872f2087c98
* Fix recognizing FTP listings consisting of only one line.phajdan.jr@chromium.org2009-11-232-0/+9
| | | | | | | | | | | | | | It turns out we have to be a little more strict with that. Before this change both ls and VMS listing parsers would claim that they recognize the format. Also fallback to Mozilla code was broken in that case. TEST=Covered by net_unittests. BUG=28263 Review URL: http://codereview.chromium.org/421006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32831 0039d316-1c4b-4281-b951-d872f2087c98
* Remove old files.nsylvain@chromium.org2009-11-209-102/+0
| | | | | | Review URL: http://codereview.chromium.org/425008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32711 0039d316-1c4b-4281-b951-d872f2087c98
* Remove the unnecessary suppressions.mbelshe@google.com2009-11-191-57/+0
| | | | | | | | | | BUG=none TEST=none TBR=thestig@chromium.org Review URL: http://codereview.chromium.org/404041 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32491 0039d316-1c4b-4281-b951-d872f2087c98
* Another attempt to silence valgrind for a moment.mbelshe@google.com2009-11-191-42/+0
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32481 0039d316-1c4b-4281-b951-d872f2087c98
* Suppress flip valgrindmbelshe@google.com2009-11-191-0/+99
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/403028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32471 0039d316-1c4b-4281-b951-d872f2087c98
* Implement Windows FTP directory listing parser.phajdan.jr@chromium.org2009-11-074-0/+178
| | | | | | | | | TEST=Covered by net_unittests. BUG=25520 Review URL: http://codereview.chromium.org/374010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31376 0039d316-1c4b-4281-b951-d872f2087c98
* Fix the "ls -l" FTP LIST format parser to understand correctlyphajdan.jr@chromium.org2009-11-064-0/+150
| | | | | | | | | | | listings sent by VMS MultiNet servers emulating Unix. TEST=Covered by net_unittests. BUG=22193, 25520 Review URL: http://codereview.chromium.org/368006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31217 0039d316-1c4b-4281-b951-d872f2087c98
* Coverity: Fix leaking UCharsetDetector in ftp code.mattm@chromium.org2009-11-052-0/+59
| | | | | | | | | | CID=7193 BUG=none TEST=using the additional test data, tools/valgrind/chrome_tests.sh -t net --gtest_filter="FtpDirectoryListingBufferTest.*" Review URL: http://codereview.chromium.org/355037 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31099 0039d316-1c4b-4281-b951-d872f2087c98
* Implement VMS FTP directory listing parser.phajdan.jr@chromium.org2009-11-048-0/+501
| | | | | | | | | | | | | This may not yet correctly handle all possible variants of VMS, because there multiple TCP/IP network stacks available for that system. TEST=Covered by net_unittests. BUG=22193, 25520 Review URL: http://codereview.chromium.org/348036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30995 0039d316-1c4b-4281-b951-d872f2087c98
* Also parse file size in new FTP LIST parsing code.phajdan.jr@chromium.org2009-10-292-0/+13
| | | | | | | | | TEST=Covered by net_unittests. BUG=25520 Review URL: http://codereview.chromium.org/343022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30445 0039d316-1c4b-4281-b951-d872f2087c98
* First parts of new FTP LIST response parsing code.phajdan.jr@chromium.org2009-10-284-0/+115
| | | | | | | | | | | Added parser for "ls" listing style, and tests. This is not yet used by the browser (will do that in a following CL). TEST=Covered by net_unittests. BUG=25520 Review URL: http://codereview.chromium.org/244008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30354 0039d316-1c4b-4281-b951-d872f2087c98
* Don't run SocketStreamTest.BasicAuthProxy under ThreadSanitizer on Mactimurrrr@chromium.org2009-10-271-0/+1
| | | | | | | | | BUG=http://code.google.com/p/data-race-test/issues/detail?id=11 TEST=net_unittests should become green on TSAN Mac bot TBR=dank Review URL: http://codereview.chromium.org/339025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30187 0039d316-1c4b-4281-b951-d872f2087c98
* Add three of the six extensions to PAC that Internet Explorer supports. eroman@chromium.org2009-10-262-1/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The following descriptions were taken from <http://blogs.msdn.com/wndp/articles/IPV6_PAC_Extensions_v0_9.aspx> ---------------------------- * myIpAddressEx(): Returns a semi-colon delimited string containing all IP addresses for localhost (IPv6 and/or IPv4), or an empty string if unable to resolve localhost to an IP address. * dnsResolveEx(host): Returns semi-colon delimited string containing IPv6 and IPv4 addresses or an empty string if host is not resolvable. * isResolvableEx(): Returns TRUE if the host is resolvable to a IPv4 or IPv6 address, FALSE otherwise. ---------------------------- These differ from the vanilla PAC functions in the following ways: * myIpAddressEx() returns all the addrsses for localhost (including IPv6 ones), whereas myIpAddress() only returns the first IPv4 one. * On failure, myIpAddress() returns "127.0.0.1" whereas on failure myIpAddressEx() returns empty string. * dnsResolveEx() returns a list of addresses (including IPV6 ones), whereas dnsResolve() only returns the first IPv4 address. * On failure, dnsResolve() returns |null|, whereas on failure dnsResolveEx() returns empty string. BUG=25407 TEST=ProxyResolverV8Test.DNSResolutionFailure, ProxyResolverJSBindingsTest.RestrictAddressFamily, ProxyResolverJSBindingsTest.ExFunctionsReturnList Review URL: http://codereview.chromium.org/333006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30127 0039d316-1c4b-4281-b951-d872f2087c98
* Wildcard the test cases if two or more tests maketimurrrr@chromium.org2009-10-262-5/+2
| | | | | | | | | | | ThreadSanitizer hang. Usually, if several tests hang in the same way, that means there's some common code between them that makes TSAN's address space manager unhappy. Then it's likely that a new test from the same test case exploits the same code and breaks ThreadSanitizer again. BUG=http://code.google.com/p/data-race-test/issues/detail?id=11 TBR=dank Review URL: http://codereview.chromium.org/335024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30043 0039d316-1c4b-4281-b951-d872f2087c98
* Disable the FlipNetworkTransactionTes because it crashes TSAN.nsylvain@chromium.org2009-10-251-0/+1
| | | | | | | BUG:25748 Review URL: http://codereview.chromium.org/334021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30026 0039d316-1c4b-4281-b951-d872f2087c98
* Don't run WebSocketTest.* under ThreadSanitizer on Mactimurrrr@chromium.org2009-10-211-0/+5
| | | | | | | | BUG=25392 TBR=dank Review URL: http://codereview.chromium.org/293046 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29643 0039d316-1c4b-4281-b951-d872f2087c98
* Don't run DiskCacheEntryTest.CancelSparseIO under ThreadSanitizer on Mactimurrrr@chromium.org2009-10-141-0/+1
| | | | | | | TBR=dank Review URL: http://codereview.chromium.org/276017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28954 0039d316-1c4b-4281-b951-d872f2087c98
* Do not run FlipNetworkTransactionTest.Connect under ThreadSanitizer on Mac OStimurrrr@chromium.org2009-10-131-0/+1
| | | | | | | | | | | | | | The pre-3.5 version of ThreadSanitizer reports "aspacem" warnings on this test, the latest Tsan hangs silently. This test case was enabled in http://src.chromium.org/viewvc/chrome?view=rev&revision=28793, so we haven't seen the complaints before. This patch was prepared by Alexander Potapenko (cc'ed) TBR=dank Review URL: http://codereview.chromium.org/270083 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28803 0039d316-1c4b-4281-b951-d872f2087c98
* Add an additional test for dnsDomainIs() to verify that it doesn't simply ↵eroman@chromium.org2009-09-251-2/+3
| | | | | | | | | | | | match any substring. This is working correctly, but since it was failing in WinHTTP we should have a regression test. BUG=18511 Review URL: http://codereview.chromium.org/245008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27246 0039d316-1c4b-4281-b951-d872f2087c98
* Add an additional unit-test for when PAC script is missing newline.eroman@chromium.org2009-09-251-0/+3
| | | | | | | | | | This variation uses a statement without semi-colon, rather than a comment, as the last line. BUG=http://crbug.com/22864 Review URL: http://codereview.chromium.org/238004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27171 0039d316-1c4b-4281-b951-d872f2087c98
* Set the mime-type on a test data file to binary.eroman@chromium.org2009-09-241-1/+1
| | | | | | | | | | | | I just checked this file in, and it shouldn't have a trailing newline. However when I checked it out, SVN seems to have put back an LF at the end. Hopefully this will prevent that from happening. BUG=http://crbug.com/22864 TBR=cpu Review URL: http://codereview.chromium.org/223020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27036 0039d316-1c4b-4281-b951-d872f2087c98
* Fix a bug where if a PAC script ended with a comment and no newline, it ↵eroman@chromium.org2009-09-241-0/+8
| | | | | | | | | | | | | would fail to parse. The library is now compiled and executed in a separate pass, rather than trying to append the source segments. BUG=http://crbug.com/22864 TEST=ProxyResolverV8Test.TrailingComment Review URL: http://codereview.chromium.org/223016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27035 0039d316-1c4b-4281-b951-d872f2087c98
* Respect the charset specified in PAC file responses.eroman@chromium.org2009-09-224-0/+5
| | | | | | | | | | | | I have updated the documentation of ProxyResolver and ProxyScriptFetcher to indicate that the response must always be given as UTF8. So ProxyScriptFetcher is responsible for any charset conversions internally. This CL also adds a unit-test to make sure that content-encodings are respected (like gzip). This was not previously broken, but it is a related area (and wasn't being tested.) BUG=http://crbug.com/22310 Review URL: http://codereview.chromium.org/210028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@26790 0039d316-1c4b-4281-b951-d872f2087c98
* Excluded a few tests that hang under ThreadSanitizer on Mactimurrrr@chromium.org2009-09-161-0/+22
| | | | | | | This patch was prepared by Alexander Potapenko (cc'ed) Review URL: http://codereview.chromium.org/205019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@26368 0039d316-1c4b-4281-b951-d872f2087c98
* Add trace points for the "dnsResolve()" and "myIpAddress()" PAC javascript ↵eroman@chromium.org2009-09-101-0/+21
| | | | | | | | | | | | | | bindings. This makes note of the calls in the request's LoadLog. Since the LoadLog is not thread-safe, SingleThreadedProxyResolver creates a private LoadLog for ProxyResolverV8 to write into, and then copies it into the mainLoadLog on completion (on the origin thread). BUG=http://crbug.com/14478 Review URL: http://codereview.chromium.org/193037 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@25926 0039d316-1c4b-4281-b951-d872f2087c98
* Fix 307 redirects of a POST request to actually send the body again, and add adarin@chromium.org2009-07-303-2/+2
| | | | | | | | | | | | | | | test. Note: the fix is trivial, but adding support for a test required teaching the FileHandler of testserver to consume a post body. BUG=16832 TEST=covered by unit test R=abarth Review URL: http://codereview.chromium.org/149710 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@22100 0039d316-1c4b-4281-b951-d872f2087c98
* Disk cache: Fix handling of invalid entries that are detectedrvargas@google.com2009-07-232-0/+4
| | | | | | | | | | | | | | | | | | | | when doing evictions or enumerations. This cl fixes an issue with dirty entries being deleted twice from disk, and improves the whole thing so that different flavors or corrupt entries are removed gracefully. We started deleting things twice when we created the map of currently-open entries, because we don't want to have dirty entries on that map, so it is possible to have multiple EntryImpl objects that refer to the same entry (for corrupt entries). BUG=17474 TEST=Unittests, stress_cache.exe Review URL: http://codereview.chromium.org/155951 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21360 0039d316-1c4b-4281-b951-d872f2087c98
* Change URLRequest to return net::ERR_INVALID_URL on redirects to invalid urls.willchan@chromium.org2009-07-212-0/+3
| | | | | | | | | BUG=http://crbug.com/17126 TEST=net_unittests Review URL: http://codereview.chromium.org/159034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21234 0039d316-1c4b-4281-b951-d872f2087c98
* Add a few more cases to NetUtilTest.IDN* tests. Because IDN*Slow test is ↵jshin@chromium.org2009-07-151-3/+0
| | | | | | | | | | | much faster ( > 20 times) than before (on my linux box - single core p4, it takes 5700 ms now.), enable the test under Linux valgrind. BUG=None TEST=Pass NetUtil*.IDN* and NetUtil*.IDN*Slow runs fast enough under valgrind on Linux. Review URL: http://codereview.chromium.org/149640 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20747 0039d316-1c4b-4281-b951-d872f2087c98
* Remove svn:executable property from some more files that don't need it.thestig@chromium.org2009-07-102-0/+0
| | | | | | | TBR=evmar Review URL: http://codereview.chromium.org/149471 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20406 0039d316-1c4b-4281-b951-d872f2087c98
* Disk cache: Keep a map of all open entries.rvargas@google.com2009-07-076-0/+67
| | | | | | | | | | | | | | | | | We still have a few crashes when for some reason we believe an entry is not dirty and we follow the pointer stored by its rankings node only to crash while accessing the memory. I have no explanation to why the dirty id matches the current one (a page boundary issue maybe?), but having a map with all open entries solves the issue of having to follow pointers from disk. BUG=15596, b/1120346 TEST=unittests Review URL: http://codereview.chromium.org/149218 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20067 0039d316-1c4b-4281-b951-d872f2087c98
* Disable the http cache when fetching PAC scripts. Also adds an extra log ↵eroman@chromium.org2009-06-032-0/+4
| | | | | | | | | | | | | | statement for when response is non-200. The cache is disabled to avoid problems when switching networks (wouldn't want to re-use cached response from old network after switching to new network). This is only a partial piece for 12293 (still needs to re-trigger auto-detect on network change). BUG=12293 Review URL: http://codereview.chromium.org/118032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17572 0039d316-1c4b-4281-b951-d872f2087c98
* Disk cache: fix the description of data\cache_tests\bad_rankings2rvargas@google.com2009-05-291-2/+2
| | | | | | | | | | | BUG=none TEST=none No actual code change. Review URL: http://codereview.chromium.org/118017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17236 0039d316-1c4b-4281-b951-d872f2087c98
* Disk cache: Reset mask_ when the disk cache is being restarted.rvargas@google.com2009-05-286-0/+66
| | | | | | | | | | | | | | | It is possible that the size for the index table is reduced when the cache is restarted (the available disk space could be lower than what it was when the cache was originally created). If that is the case, not resetting mask_ to 0 will prevent the mask to be set correctly for the new table size, resulting in a crash. BUG=12378 TEST=unittests Review URL: http://codereview.chromium.org/113930 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17052 0039d316-1c4b-4281-b951-d872f2087c98
* Split NetUtilTest.IDNToUnicode into IDNToUnicodeFast and IDNToUnicodeSlow. ↵thestig@chromium.org2009-05-131-5/+5
| | | | | | | | | Enable IDNToUnicodeFast test under Valgrind. BUG=9172 Review URL: http://codereview.chromium.org/113370 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16010 0039d316-1c4b-4281-b951-d872f2087c98
* Update Purify and Valgrind data to ignore a few new tests.rvargas@google.com2009-04-172-0/+10
| | | | | | | | | | | cl 13909 added more tests that intentionally leak memory. see http://codereview.chromium.org/79031 TBR=nsylvain Review URL: http://codereview.chromium.org/77010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13913 0039d316-1c4b-4281-b951-d872f2087c98
* Disk Cache: Make sure that an entry that pretends to bervargas@google.com2009-03-306-0/+67
| | | | | | | | | | | | | | | | "clean" is not really dirty. If for some reason an entry is left on disk with a pointer on the rankings node but without the dirty flag set, we now recognize it as dirty the next time we read it from disk. BUG=3987 TEST=DiskCacheTest.Backend_NotMarkedButDirty Review URL: http://codereview.chromium.org/57024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12820 0039d316-1c4b-4281-b951-d872f2087c98
* Reduce valgrind bot time from 12 minutes to 9 minutes by skipping one testdkegel@google.com2009-03-231-0/+3
| | | | | | Review URL: http://codereview.chromium.org/52011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12279 0039d316-1c4b-4281-b951-d872f2087c98
* Document how we avoid running leaky tests under Purify and Valgrind,dkegel@google.com2009-03-182-0/+12
| | | | | | | | and copy Purify's list of leaky net tests for Valgrind's benefit. Review URL: http://codereview.chromium.org/42309 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12042 0039d316-1c4b-4281-b951-d872f2087c98
* Add performance tests for the proxy resolver implementations.ericroman@google.com2009-03-061-0/+1362
| | | | | | | | | I downloaded the test data "no-ads.pac" from <http://ap.coova.org/wpad.dat>. BUG=2764 Review URL: http://codereview.chromium.org/40149 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11066 0039d316-1c4b-4281-b951-d872f2087c98
* Fix error being thrown in isInNet() PAC js.ericroman@google.com2009-03-041-19/+173
| | | | | | | | | | | | | | | | | | | Mozilla is using notation which treats regexp like a function: var regex = /foo/; var result = regex("str"); However v8 does not allow this (nor does IE), so we rewrite it in standard form: var regex = /foo/; var result = regex.exec("str") Also finishes off the tests in pac_library_unittest.js. I didn't test every single permutation of dateRange() and timeRange() as there are way too many; but did hit most common flavors. BUG=2764 Review URL: http://codereview.chromium.org/40006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10843 0039d316-1c4b-4281-b951-d872f2087c98