summaryrefslogtreecommitdiffstats
path: root/net/test
Commit message (Collapse)AuthorAgeFilesLines
* Explicitly whitelist the test server port.bauerb@chromium.org2010-12-102-0/+7
| | | | | | | | | BUG=65859 TEST=yes please Review URL: http://codereview.chromium.org/5519015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68853 0039d316-1c4b-4281-b951-d872f2087c98
* Fixes the remaining unit tests failures for OpenSSL:joth@chromium.org2010-12-022-3/+3
| | | | | | | | | | | | | | | | - implements basic client certificate support in ssl socket - adds special-case IP address support to allow SSL connections to the test server (iff there is a trusted certificate in the store with 127.0.0.1 in its name) - enables the test server for loading the temporary cert - implements the DES encryptor (removed TODO about refactoring the file layout as it's already covered by a TODO in the .h file) - disabled KeygenHandler tests, as this is not implemented for openssl - disables the (firefox) importer unittests. BUG=None TEST=net_unittests now run green Review URL: http://codereview.chromium.org/5195001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67990 0039d316-1c4b-4281-b951-d872f2087c98
* [Sync] Make sync integration tests use local xmpp servers.akalin@chromium.org2010-11-272-2/+12
| | | | | | | | | | | Fixed signed/unsigned bug with the port number. BUG=53934 TEST=sync integration tests Review URL: http://codereview.chromium.org/5239001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67491 0039d316-1c4b-4281-b951-d872f2087c98
* Fixed port boundary check in test_server.ccakalin@chromium.org2010-11-271-1/+1
| | | | | | | | | BUG=53934 TEST=manual Review URL: http://codereview.chromium.org/5377005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67487 0039d316-1c4b-4281-b951-d872f2087c98
* Made testserver communicate to parent process with JSONakalin@chromium.org2010-11-274-12/+65
| | | | | | | | | | | | | | | | | | | | | This is so that if the testserver needs to communicate anything more than the port in the future (e.g., xmpp port for the test sync server), it can do so in a flexible manner. BUG=53934 TEST=manually Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=66879 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=67018 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=67386 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=67398 Review URL: http://codereview.chromium.org/5196001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67481 0039d316-1c4b-4281-b951-d872f2087c98
* Fixed UnblockPipe() in test_server_win.cc to work with any number of bytesakalin@chromium.org2010-11-261-7/+11
| | | | | | | | | | | | Since ReadData() can be told to read any number of bytes, UnblockPipe() must write at least that number of bytes to guarantee to unblock ReadData(). BUG=53934 TEST=Manual Review URL: http://codereview.chromium.org/5329004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67445 0039d316-1c4b-4281-b951-d872f2087c98
* Added third_party to python path for testserver.akalin@chromium.org2010-11-261-0/+5
| | | | | | | | | | | | This is split off from 5196001. BUG=53934 TEST=manually TBR=cbentzel Review URL: http://codereview.chromium.org/5370003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67434 0039d316-1c4b-4281-b951-d872f2087c98
* Added ReadData() function to test_server_{posix,win}.ccakalin@chromium.org2010-11-262-64/+92
| | | | | | | | | | This is split off from 5196001. BUG=53934 TEST=manually TBR=cbentzel git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67430 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 67428 - Added server_data json dictionary to testserver.pyakalin@chromium.org2010-11-261-5/+0
| | | | | | | | | | | | | This is split off from 5196001. BUG=53934 TEST=manually TBR=cbentzel TBR=akalin@chromium.org Review URL: http://codereview.chromium.org/5279005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67429 0039d316-1c4b-4281-b951-d872f2087c98
* Added server_data json dictionary to testserver.pyakalin@chromium.org2010-11-261-0/+5
| | | | | | | | | | This is split off from 5196001. BUG=53934 TEST=manually TBR=cbentzel git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67428 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 67398 - Made testserver communicate to parent process with JSONakalin@chromium.org2010-11-254-141/+67
| | | | | | | | | | | | | | | | | | | | | | This is so that if the testserver needs to communicate anything more than the port in the future (e.g., xmpp port for the test sync server), it can do so in a flexible manner. BUG=53934 TEST=manually Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=66879 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=67018 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=67386 Review URL: http://codereview.chromium.org/5196001 TBR=akalin@chromium.org Review URL: http://codereview.chromium.org/5373004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67400 0039d316-1c4b-4281-b951-d872f2087c98
* Made testserver communicate to parent process with JSONakalin@chromium.org2010-11-254-67/+141
| | | | | | | | | | | | | | | | | | | This is so that if the testserver needs to communicate anything more than the port in the future (e.g., xmpp port for the test sync server), it can do so in a flexible manner. BUG=53934 TEST=manually Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=66879 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=67018 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=67386 Review URL: http://codereview.chromium.org/5196001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67398 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 67386 - Made testserver communicate to parent process with JSONakalin@chromium.org2010-11-254-133/+70
| | | | | | | | | | | | | | | | | | | | This is so that if the testserver needs to communicate anything more than the port in the future (e.g., xmpp port for the test sync server), it can do so in a flexible manner. BUG=53934 TEST=manually Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=66879 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=67018 Review URL: http://codereview.chromium.org/5196001 TBR=akalin@chromium.org Review URL: http://codereview.chromium.org/5343003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67393 0039d316-1c4b-4281-b951-d872f2087c98
* Made testserver communicate to parent process with JSONakalin@chromium.org2010-11-254-70/+133
| | | | | | | | | | | | | | | | | This is so that if the testserver needs to communicate anything more than the port in the future (e.g., xmpp port for the test sync server), it can do so in a flexible manner. BUG=53934 TEST=manually Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=66879 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=67018 Review URL: http://codereview.chromium.org/5196001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67386 0039d316-1c4b-4281-b951-d872f2087c98
* Reconstructing 67000.bradnelson@google.com2010-11-232-2/+2
| | | | | | | | | | | | | | (python24 -> python26). Regression in nacl fixed, new DEPS change. BUG=None TEST=NOne Review URL: http://codereview.chromium.org/5310001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67057 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 67018 - Made testserver communicate to parent process with JSONakalin@chromium.org2010-11-234-133/+59
| | | | | | | | | | | | | | | | | | This is so that if the testserver needs to communicate anything more than the port in the future (e.g., xmpp port for the test sync server), it can do so in a flexible manner. BUG=53934 TEST=manually Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=66879 Review URL: http://codereview.chromium.org/5196001 TBR=akalin@chromium.org Review URL: http://codereview.chromium.org/5291002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67025 0039d316-1c4b-4281-b951-d872f2087c98
* Made testserver communicate to parent process with JSONakalin@chromium.org2010-11-224-59/+133
| | | | | | | | | | | | | | | This is so that if the testserver needs to communicate anything more than the port in the future (e.g., xmpp port for the test sync server), it can do so in a flexible manner. BUG=53934 TEST=manually Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=66879 Review URL: http://codereview.chromium.org/5196001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67018 0039d316-1c4b-4281-b951-d872f2087c98
* Reverting 67000.bradnelson@google.com2010-11-222-2/+2
| | | | | | | | | | BUG=None TEST=None TBR=nsylvain Review URL: http://codereview.chromium.org/5272001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67004 0039d316-1c4b-4281-b951-d872f2087c98
* Switching chrome to use python26 in place of python24.bradnelson@google.com2010-11-222-2/+2
| | | | | | | | | BUG=None TEST=None Review URL: http://codereview.chromium.org/5121009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67000 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 66879 - Made testserver communicate to parent process with JSONakalin@chromium.org2010-11-204-116/+62
| | | | | | | | | | | | | | | | This is so that if the testserver needs to communicate anything more than the port in the future (e.g., xmpp port for the test sync server), it can do so in a flexible manner. BUG=53934 TEST=manually Review URL: http://codereview.chromium.org/5196001 TBR=akalin@chromium.org Review URL: http://codereview.chromium.org/5177008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@66881 0039d316-1c4b-4281-b951-d872f2087c98
* Made testserver communicate to parent process with JSONakalin@chromium.org2010-11-204-62/+116
| | | | | | | | | | | | | This is so that if the testserver needs to communicate anything more than the port in the future (e.g., xmpp port for the test sync server), it can do so in a flexible manner. BUG=53934 TEST=manually Review URL: http://codereview.chromium.org/5196001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@66879 0039d316-1c4b-4281-b951-d872f2087c98
* snap_start_tests: test NPN misprediction.agl@chromium.org2010-11-171-6/+30
| | | | | | | | | | | | | | | | | When snap startting, we can hit a case where we predicted that we would negotiation an NPN protocol with a server, but then found that we were wrong. r65837 deal with this from the HTTP stack's point of view. This change adds tests to make sure that we can recover from the misprediction and get it right next time. BUG=none TEST=snap_start_tests http://codereview.chromium.org/4854002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@66458 0039d316-1c4b-4281-b951-d872f2087c98
* [Sync] Added a separate type for a sync server for testserver.pyakalin@chromium.org2010-11-122-0/+4
| | | | | | | | | | | | | Made live_sync_test.cc use its own test server instance. Decomped all sync server code into their own classes (SyncHTTPServer and SyncPageHandler). BUG=53934 TEST=sync integration tests Review URL: http://codereview.chromium.org/4209002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65893 0039d316-1c4b-4281-b951-d872f2087c98
* Fix python sync server on Chrome OSrsimha@chromium.org2010-11-121-4/+4
| | | | | | | | | | | | | | | | | Bug 58522 was logged because bringing up the python sync server on Mac failed due to a mismatch in the path to the protobuf files. We recently noticed the same issue on our Chrome OS autotest runs as well. This patch modifies the workaround checked in with http://src.chromium.org/viewvc/chrome?view=rev&revision=62335 so that it applies to Chrome OS as well. BUG=60637, 58522 TEST=sync_integration_tests on Chrome OS Review URL: http://codereview.chromium.org/4133001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65880 0039d316-1c4b-4281-b951-d872f2087c98
* testserver.py listens on ephemeral ports by default.cbentzel@chromium.org2010-11-114-77/+76
| | | | | | | | | | | | | If --port is specified on the command line, testserver.py will listen on that port, otherwise it will listen on an ephemeral port. If --startup_pipe is specified, the port number is written to the pipe as a 2 byte unsigned int in host order. TestServer spawns testserver.py to listen on an ephemeral port and reads the port value from the pipe. A fixed port can not be specified. BUG=56814 TEST=try bots pass Review URL: http://codereview.chromium.org/4733005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65843 0039d316-1c4b-4281-b951-d872f2087c98
* All SSL UI tests work with ephemeral ports.cbentzel@chromium.org2010-11-112-6/+49
| | | | | | | | | | | | | This also changes the testserver text replacement hooks to accept base64 encoded pairs, and to support multiple replacement texts. These changes were needed for some of the "ssl/top_frame.html" based tests, which contained a frame with an HTML page referencing three URLs on three tdifferent test servers. BUG=56814 TEST=browser_tests --gtest_filter="*SSLUI*" Review URL: http://codereview.chromium.org/4664009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65819 0039d316-1c4b-4281-b951-d872f2087c98
* Add device management test server to net infrastructure.mnissler@chromium.org2010-11-111-0/+2
| | | | | | | | | | | This adds a simple device management server implementation written in python that's useful for unit tests and local testing. BUG=62318 TEST=Compiles and browser tests in device_management_backend_browsertest succeed Review URL: http://codereview.chromium.org/4659002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65783 0039d316-1c4b-4281-b951-d872f2087c98
* Revert "Revert "net: add Snap Start tests""agl@chromium.org2010-11-101-0/+240
| | | | | | | | | | | | | | | | | | (Reland. First landed in r65714, reverted in r65715.) These tests are Linux only for now. Adding Mac support should be pretty easy. However, Windows will be tough to do without making the tests flakey. Given the huge amounts of pain caused by testserver.py and ephemeral ports I'd rather get the tests working well on a couple of platforms (since the Snap Start code is all platform-generic anyway), then add more flakiness. BUG=none TEST=snap_start_unittests http://codereview.chromium.org/4524003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65720 0039d316-1c4b-4281-b951-d872f2087c98
* Revert "net: add Snap Start tests"agl@chromium.org2010-11-101-240/+0
| | | | | | | | | | This reverts commit r65714. It broke the Linux shared library builders: SOLINK(target) out/Debug/obj.target/net/libnet_base.so /usr/bin/ld: error: out/Debug/obj.target/openssl/third_party/openssl/openssl/crypto/sha/sha512t.o: multiple definition of 'main' /usr/bin/ld: out/Debug/obj.target/openssl/third_party/openssl/openssl/crypto/sha/sha256t.o: previous definition here git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65715 0039d316-1c4b-4281-b951-d872f2087c98
* net: add Snap Start testsagl@chromium.org2010-11-101-0/+240
| | | | | | | | | | | | | | | | These tests are Linux only for now. Adding Mac support should be pretty easy. However, Windows will be tough to do without making the tests flakey. Given the huge amounts of pain caused by testserver.py and ephemeral ports I'd rather get the tests working well on a couple of platforms (since the Snap Start code is all platform-generic anyway), then add more flakiness. BUG=none TEST=snap_start_unittests http://codereview.chromium.org/4524003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65714 0039d316-1c4b-4281-b951-d872f2087c98
* Make sure the generated python proto buff path is right.lzheng@chromium.org2010-11-093-26/+37
| | | | | | | | BUG=62415 TEST=mac trybot green with safe_browsing_tests Review URL: http://codereview.chromium.org/4677002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65574 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 65465 - testserver.py listens on ephemeral ports by default.cbentzel@chromium.org2010-11-094-76/+77
| | | | | | | | | | | | | | | | | | Some SSL UI tests timed out again on 10.5/10.6 bots when landing this, despite the changes made. Different tests this time however. If --port is specified on the command line, testserver.py will listen on that port, otherwise it will listen on an ephemeral port. If --startup_pipe is specified, the port number is written to the pipe as a 2 byte unsigned int in host order. TestServer spawns testserver.py to listen on an ephemeral port and reads the port value from the pipe. A fixed port can not be specified. BUG=56814 TEST=try bots pass Review URL: http://codereview.chromium.org/4136008 TBR=cbentzel@chromium.org Review URL: http://codereview.chromium.org/4731003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65488 0039d316-1c4b-4281-b951-d872f2087c98
* testserver.py listens on ephemeral ports by default.cbentzel@chromium.org2010-11-094-77/+76
| | | | | | | | | | | | | If --port is specified on the command line, testserver.py will listen on that port, otherwise it will listen on an ephemeral port. If --startup_pipe is specified, the port number is written to the pipe as a 2 byte unsigned int in host order. TestServer spawns testserver.py to listen on an ephemeral port and reads the port value from the pipe. A fixed port can not be specified. BUG=56814 TEST=try bots pass Review URL: http://codereview.chromium.org/4136008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65465 0039d316-1c4b-4281-b951-d872f2087c98
* GTTF: Implement a timeout for TestServer on Windows.phajdan.jr@chromium.org2010-10-302-6/+42
| | | | | | | | | | This will prevent tests from hanging when the test server fails to start. BUG=60082 TEST=none Review URL: http://codereview.chromium.org/4176001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@64540 0039d316-1c4b-4281-b951-d872f2087c98
* Initial support for built-in DNS resolver/cache.agayev@chromium.org2010-10-281-1/+1
| | | | | | | | | BUG=60149 TEST=None Review URL: http://codereview.chromium.org/4216001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@64271 0039d316-1c4b-4281-b951-d872f2087c98
* Add support to test_server.py to restrict the SSL/TLS bulk encryption ↵rsleevi@chromium.org2010-10-284-111/+228
| | | | | | | | | | | algorithms via the command-line argument --ssl-alg. BUG=58831 TEST=Run test_server.py as an HTTPS server with --ssl-alg=rc4. Connect via openssl s_client -connect 127.0.0.1:1337 -cipher DEFAULT:\!RC4. Observe a connection failure. Connect with openssl s_client -connect 127.0.0.1:1337, observe that a ciphersuite that uses RC4 is negotiated. Review URL: http://codereview.chromium.org/3812007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@64233 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 64202 - Initial support for built-in DNS resolver/cache.yusukes@chromium.org2010-10-281-1/+1
| | | | | | | | | | | | BUG=None TEST=None Review URL: http://codereview.chromium.org/3693001 TBR=agayev@chromium.org Review URL: http://codereview.chromium.org/4208002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@64204 0039d316-1c4b-4281-b951-d872f2087c98
* Initial support for built-in DNS resolver/cache.agayev@chromium.org2010-10-281-1/+1
| | | | | | | | | BUG=None TEST=None Review URL: http://codereview.chromium.org/3693001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@64202 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 64118 - Revert 64070 - Revert 64065 - testserver.py listens on ↵nick@chromium.org2010-10-274-58/+60
| | | | | | | | | | | | | | | | | | | | | | | | | | ephemeral ports by default. (Reason for revert: this causes SSLUITests on Mac OS to hang with high probability) If --port is specified on the command line, testserver.py will listen on that port, otherwise it will listen on an ephemeral port. If --startup_pipe is specified, the port number is written to the pipe as a 2 byte unsigned int in host order. TestServer by default spawns testserver.py to listen on an ephemeral port and reads the port value from the pipe. If necessary, the port can still be fixed using TestServer::ForcePort, but that will hopefully get deprecated quickly. BUG=56814 TEST=try bots pass Review URL: http://codereview.chromium.org/3549003 TBR=cbentzel@chromium.org Review URL: http://codereview.chromium.org/4165004 TBR=cbentzel@chromium.org Review URL: http://codereview.chromium.org/4146008 TBR=cbentzel@chromium.org Review URL: http://codereview.chromium.org/4164008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@64175 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 64070 - Revert 64065 - testserver.py listens on ephemeral ports by ↵cbentzel@chromium.org2010-10-274-60/+58
| | | | | | | | | | | | | | | | | | | | | default. If --port is specified on the command line, testserver.py will listen on that port, otherwise it will listen on an ephemeral port. If --startup_pipe is specified, the port number is written to the pipe as a 2 byte unsigned int in host order. TestServer by default spawns testserver.py to listen on an ephemeral port and reads the port value from the pipe. If necessary, the port can still be fixed using TestServer::ForcePort, but that will hopefully get deprecated quickly. BUG=56814 TEST=try bots pass Review URL: http://codereview.chromium.org/3549003 TBR=cbentzel@chromium.org Review URL: http://codereview.chromium.org/4165004 TBR=cbentzel@chromium.org Review URL: http://codereview.chromium.org/4146008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@64118 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 64065 - testserver.py listens on ephemeral ports by default.cbentzel@chromium.org2010-10-274-58/+60
| | | | | | | | | | | | | | | | | | I'm not convinced that this caused some of the test failures, but I needed to leave unexpectedly and didn't have time to investigate. If --port is specified on the command line, testserver.py will listen on that port, otherwise it will listen on an ephemeral port. If --startup_pipe is specified, the port number is written to the pipe as a 2 byte unsigned int in host order. TestServer by default spawns testserver.py to listen on an ephemeral port and reads the port value from the pipe. If necessary, the port can still be fixed using TestServer::ForcePort, but that will hopefully get deprecated quickly. BUG=56814 TEST=try bots pass Review URL: http://codereview.chromium.org/3549003 TBR=cbentzel@chromium.org Review URL: http://codereview.chromium.org/4165004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@64070 0039d316-1c4b-4281-b951-d872f2087c98
* testserver.py listens on ephemeral ports by default.cbentzel@chromium.org2010-10-274-60/+58
| | | | | | | | | | | | | If --port is specified on the command line, testserver.py will listen on that port, otherwise it will listen on an ephemeral port. If --startup_pipe is specified, the port number is written to the pipe as a 2 byte unsigned int in host order. TestServer by default spawns testserver.py to listen on an ephemeral port and reads the port value from the pipe. If necessary, the port can still be fixed using TestServer::ForcePort, but that will hopefully get deprecated quickly. BUG=56814 TEST=try bots pass Review URL: http://codereview.chromium.org/3549003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@64065 0039d316-1c4b-4281-b951-d872f2087c98
* GTTF: Implement a timeout for TestServer on POSIX.phajdan.jr@chromium.org2010-10-261-0/+16
| | | | | | | | | | | This will prevent tests from hanging when the test server fails to start. BUG=60082 TEST=none Review URL: http://codereview.chromium.org/4075003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@63862 0039d316-1c4b-4281-b951-d872f2087c98
* Move debug-related stuff from base to the base/debug directory and use thebrettw@chromium.org2010-10-261-1/+1
| | | | | | | | | | | | | | | | base::debug namespace. This splits apart debug_util into base/debugger and base/stack_trace There are still two functions in debug_util that I'm not sure what to do with. Since this uses the base::debug namespace, I removed the functions in debugger.h from the static class and just made them free functions in the namespace. TEST=it compiles BUG=none Review URL: http://codereview.chromium.org/3945002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@63859 0039d316-1c4b-4281-b951-d872f2087c98
* Convert LOG(INFO) to VLOG(1) - net/.pkasting@chromium.org2010-10-161-1/+1
| | | | | | | | | | Also converts COOKIE_DLOG (since VLOG can be toggled on a granular basis), removes some unneeded "endl"s and {}s, aligns "<<"s per style guide, and changes KeygenHandler::GenKeyAndSignChallenge() to avoid using "goto". BUG=none TEST=none Review URL: http://codereview.chromium.org/3846001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@62831 0039d316-1c4b-4281-b951-d872f2087c98
* testserver: try harder to find the pyproto directory on OS Xagl@chromium.org2010-10-121-3/+22
| | | | | | | | | BUG=58522 TEST=sync_integration_tests on OS X Review URL: http://codereview.chromium.org/3671004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@62335 0039d316-1c4b-4281-b951-d872f2087c98
* Remove TestServer::WaitToFinish, it is now unused.phajdan.jr@chromium.org2010-10-062-20/+0
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/3555012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@61639 0039d316-1c4b-4281-b951-d872f2087c98
* Clean up orphaned testserver processes before launching a new one in ↵rsimha@chromium.org2010-10-051-0/+51
| | | | | | | | | | | | | | | net::TestServer Several chrome tests have failed in recent days because some test cases crashed due to failures, leaving behind orphaned testserver processes. These test suites do not use out_of_proc_test_runner, and therefore, do not get the benefit of using the LaunchAppInNewProcessGroup()/KillProcessGroup() mechanism. This patch implements an added layer of safety, by causing TestServer::LaunchPython() to first kill any remaining orphaned instances of testserver.py before launching a new one. The check for an orphaned testserver process on POSIX is a process with exe_name "python", a parent_pid of "1" (indicating that it's an orphan), and command line parameters that contain the strings "testserver.py" and "<port>" where <port> is the port that is being used by the test server instance. BUG=55808,57253 TEST=Run a test that spawns a testserver and dies. Run another test. It shouldn't fail. Review URL: http://codereview.chromium.org/3537002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@61584 0039d316-1c4b-4281-b951-d872f2087c98
* Use python run time to launch python and make sure it works.lzheng@chromium.org2010-10-051-7/+18
| | | | | | | | | TEST=this BUG=none Review URL: http://codereview.chromium.org/3441030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@61528 0039d316-1c4b-4281-b951-d872f2087c98
* Stop refcounting HostResolver.willchan@chromium.org2010-10-011-1/+1
| | | | | | | | | BUG=46049 TEST=none Review URL: http://codereview.chromium.org/3601002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@61256 0039d316-1c4b-4281-b951-d872f2087c98