summaryrefslogtreecommitdiffstats
path: root/net/tools
Commit message (Collapse)AuthorAgeFilesLines
* Recover from bad proxy settings pointing to non-proxy servers that reply anyway.joaodasilva@chromium.org2011-09-281-0/+2
| | | | | | | | | | | | Added tests for proxy error recovery. BUG=chromium-os:20775 TEST=DeviceManagementServiceTest.*. Steps described in the bug now work as expected. Review URL: http://codereview.chromium.org/8054013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103172 0039d316-1c4b-4281-b951-d872f2087c98
* Fix a crash when loading a multipart html page.tony@chromium.org2011-09-271-1/+30
| | | | | | | | | | | | | When loading a multipart page, the load hasn't been committed yet so dataSource() is NULL. In that case, use the provisionalDataSource(). BUG=97592 TEST=covered by browser_tests Review URL: http://codereview.chromium.org/8044003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103027 0039d316-1c4b-4281-b951-d872f2087c98
* Updated spdy_framer.cc with the latest code. Code for PINGrtenneti@chromium.org2011-09-262-1/+16
| | | | | | | | | | was added. TEST=spdy unit testsR=willchan Review URL: http://codereview.chromium.org/8036016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@102707 0039d316-1c4b-4281-b951-d872f2087c98
* Sending auth error from python server. After posting a request to the ↵lipalani@chromium.org2011-09-231-3/+44
| | | | | | | | | | | | /chromiumsync/cred url with the parameter valid=false the server starts sending auth errors repeatedly . To stop the auth errors we have to navigate to the same url with valid=True. BUG= TEST= Review URL: http://codereview.chromium.org/7978043 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@102417 0039d316-1c4b-4281-b951-d872f2087c98
* Python server to test the actionable error feature.lipalani@chromium.org2011-09-222-1/+78
| | | | | | | | | BUG=94007,70276 TEST= Review URL: http://codereview.chromium.org/7811026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@102392 0039d316-1c4b-4281-b951-d872f2087c98
* Enable sync for the settings from the Extension Settings API.akalin@chromium.org2011-09-211-1/+7
| | | | | | | | | | | | Original patch by kalman@chromium.org. BUG=94575 TEST=unit tests included TBR=kalman@chromium.org Review URL: http://codereview.chromium.org/7977018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@102140 0039d316-1c4b-4281-b951-d872f2087c98
* Fix syntax error introduced in r96515.cmp@chromium.org2011-09-081-1/+1
| | | | | | | | | | | | This should fix the sync server so it runs again in our tests. R=lipalani@chromium.org Review URL: http://codereview.chromium.org/7789029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@100094 0039d316-1c4b-4281-b951-d872f2087c98
* Add --https-cert option to run_testserver.cbentzel@chromium.org2011-09-031-6/+31
| | | | | | | | | | | | --https-cert has three valid values: ok: A valid certificate is supplied. mismatched-name: A certificate with an invalid name is supplied. expired: An expired certificate is supplied. Review URL: http://codereview.chromium.org/7825030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99523 0039d316-1c4b-4281-b951-d872f2087c98
* Remove use of <iostream> where unnecessary.evan@chromium.org2011-09-012-3/+3
| | | | | | | | | | | | | | Any file which uses <iostream> gains a static initializer, which is both disallowed by our style guide and also harms startup performance. Note that Chrome's logging.h uses <ostream> (note missing "i"), which includes the << operators for logging but does *not* use cin/cout. This is fine. BUG=94794 Review URL: http://codereview.chromium.org/7811002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99237 0039d316-1c4b-4281-b951-d872f2087c98
* [Sync] Add tests for migration triggered by notificationsakalin@chromium.org2011-08-273-35/+226
| | | | | | | | | | | | Add support for disabling/enabling notifications to the test server, and support for triggering notifications. BUG=92928 TEST= Review URL: http://codereview.chromium.org/7753023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@98558 0039d316-1c4b-4281-b951-d872f2087c98
* [Sync] Add support for enabling session sync remotely.zea@chromium.org2011-08-252-1/+38
| | | | | | | | | | | | | | | A "sync_tabs" field has been added to the nigori node. When this field is set, and if the user has elected to keep everything synced, we automatically enable session sync for them. This is done by way of the migrator and does not require a restart of sync or user intervention. BUG=none TEST=sync_integration_tests --gtest_filter="*SetSyncTabs*" Review URL: http://codereview.chromium.org/7669073 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@98328 0039d316-1c4b-4281-b951-d872f2087c98
* Fix sync integration tests by fixing Python path.evan@chromium.org2011-08-221-1/+1
| | | | | | | | | | The generated Python proto output paths now match the input paths. Reland of r97696 with CHECK removed. Review URL: http://codereview.chromium.org/7711005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@97698 0039d316-1c4b-4281-b951-d872f2087c98
* Revert "Fix sync integration tests by fixing Python path."evan@chromium.org2011-08-221-1/+1
| | | | | | This reverts commit r97696. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@97697 0039d316-1c4b-4281-b951-d872f2087c98
* Fix sync integration tests by fixing Python path.evan@chromium.org2011-08-221-1/+1
| | | | | | | | The generated Python proto output paths now match the input paths. Review URL: http://codereview.chromium.org/7711005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@97696 0039d316-1c4b-4281-b951-d872f2087c98
* Prevent DOS attack on UDP echo servers by distinguishing between an echo requestrtenneti@chromium.org2011-08-162-6/+418
| | | | | | | | | | | | | | | | | | | | and the echo response. Client sends <version><checksum><size><payload> data to TCP/UDP echo servers. <checksum> is the checksum of the <payload>. For the first cut, we will sum up the characters in <payload>. If checksum of the <payload> is verified, echo servers encrypt the data and send back the data as <version><checksum><size><key><encrypted_payload>. <key> is is used to decrypt the <encrypted_payload>. <encrypted_payload> is the encrypted <payload>. BUG=87297 R=jar TEST=network_stats unit tests. Review URL: http://codereview.chromium.org/7246021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@96890 0039d316-1c4b-4281-b951-d872f2087c98
* Rename NET_API to NET_EXPORT, and rename NET_TEST to NET_EXPORT_PRIVATE.darin@chromium.org2011-08-121-2/+2
| | | | | | Review URL: http://codereview.chromium.org/7529043 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@96560 0039d316-1c4b-4281-b951-d872f2087c98
* Simulate transient error and verify exponential backoff.lipalani@chromium.org2011-08-123-1/+48
| | | | | | | | | | BUG= TEST= Review URL: http://codereview.chromium.org/7477004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@96515 0039d316-1c4b-4281-b951-d872f2087c98
* Test birtday error.lipalani@chromium.org2011-07-302-4/+31
| | | | | | | | | | BUG= TEST= Review URL: http://codereview.chromium.org/7481009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@94818 0039d316-1c4b-4281-b951-d872f2087c98
* Adjust exception handling syntax in sync test server.braffert@chromium.org2011-07-291-2/+2
| | | | | | | | | | | | | | The newly added sync perf tests fail on mac 10.5, but succeed on all other platforms. On mac 10.5, the sync test server cannot be launched due to a syntax error. It turns out that the sync test server had two instances of the except-as syntax, which was added in Python3 and ported to 2.6, but not 2.5, which is the default on mac 10.5. BUG=91006 TEST=sync_performance_tests, sync_integration_tests Review URL: http://codereview.chromium.org/7531031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@94739 0039d316-1c4b-4281-b951-d872f2087c98
* sync: have the client compute position_in_parent values.nick@chromium.org2011-07-232-128/+27
| | | | | | | | | | | | | | | | | | | | | | This is a protocol change to allow the server to operate on top of an eventually consistent store. Rather than having the server do a lookup of the sibling position to generate an absolute position, the client will now be responsible for doing that same operation. As implemented here, math of interpolation is the same as what the server has historically done. The client will continue sending the insert_after_item_id, for interoperation with server implementations that depend on the old behavior. Implement the new behavior in the testserver. TEST=sync_integration_tests,included unittests Review URL: http://codereview.chromium.org/7481003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@93762 0039d316-1c4b-4281-b951-d872f2087c98
* Make test server accept oauth token.mnissler@chromium.org2011-07-221-7/+16
| | | | | | | | | BUG=None TEST=Passes tests. Review URL: http://codereview.chromium.org/7490006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@93616 0039d316-1c4b-4281-b951-d872f2087c98
* Rename CommandLine::GetCommandLineString().msw@chromium.org2011-07-201-21/+11
| | | | | | | | | | | | Fix string hackery in net/tools/dump_cache/dump_cache.cc Fix const casts in chrome/installer/util/product.cc and base/process_util_win.cc. BUG=73195 TEST=none Review URL: http://codereview.chromium.org/7386002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@93165 0039d316-1c4b-4281-b951-d872f2087c98
* Change base::LaunchProcess API slightlyevan@chromium.org2011-07-152-4/+2
| | | | | | | | | | | Rather than passing the out param process handle via the options, take it as a function argument. This simplifies many callers. BUG=88990 Review URL: http://codereview.chromium.org/7377012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92701 0039d316-1c4b-4281-b951-d872f2087c98
* Clean up users of a deprecated base::LaunchApp API.evan@chromium.org2011-07-142-3/+5
| | | | | | | | BUG=88990 Review URL: http://codereview.chromium.org/7351003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92598 0039d316-1c4b-4281-b951-d872f2087c98
* Nix CommandLine::GetSwitchCount.msw@chromium.org2011-07-131-2/+1
| | | | | | | | | BUG=73195 TEST=none Review URL: http://codereview.chromium.org/7342024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92423 0039d316-1c4b-4281-b951-d872f2087c98
* Remove the comments setting emands and vim tab width and expansion variables.tony@chromium.org2011-07-111-6/+0
| | | | | | | | | | | | | | | | | These were added in r28089 (http://codereview.chromium.org/256059) but are unnecessary bloat for everyone to carry around, even those that don't use emacs or vim. In an earlier change, I added editor config files in src/tools/emacs/ and src/tools/vim/ so users of the appropriate editor can source those instead. BUG=none TEST=none Review URL: http://codereview.chromium.org/7310019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92046 0039d316-1c4b-4281-b951-d872f2087c98
* GCC 4.6 -Wunused-but-set-variable cleanup.pph34r@gmail.com2011-07-022-5/+5
| | | | | | | | | | BUG=87490 TEST=net_unittests Review URL: http://codereview.chromium.org/7261018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@91424 0039d316-1c4b-4281-b951-d872f2087c98
* Add OWNERS file to net/tools/testserverrsimha@chromium.org2011-06-291-0/+4
| | | | | | | | | | | | | | | | | | | | | The chrome sync team relies heavily on the files chromiumsync.py, xmppserver.py, testserver.py and run_testserver.cc, that together work as a reference implementation of the chrome sync server. They are located under net/tools/testserver. Since changes often need to be made to the files to keep up with the server implementation, it probably makes sense to have a couple of sync developers listed on the OWNERS file. This patch adds nick@chromium.org (author of chromiumsync.py) and akalin@chromium.org (author of xmppserver.py) as owners. BUG=none TEST=none Review URL: http://codereview.chromium.org/7275023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90893 0039d316-1c4b-4281-b951-d872f2087c98
* Add protobuffer and model type for syncing custom search engines. Includes ↵stevet@chromium.org2011-06-281-1/+6
| | | | | | | | | | all boilerplate helpers, unittests, and python server updates. BUG=15548 TEST=None. All sync unit and integration test should still run and pass. Review URL: http://codereview.chromium.org/7150023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90772 0039d316-1c4b-4281-b951-d872f2087c98
* Fix typo in cloud policy testservergfeher@chromium.org2011-06-271-1/+1
| | | | | | | | The RequestHandler for device management should only return 2-tuples, no n-tuples. Review URL: http://codereview.chromium.org/7236035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90558 0039d316-1c4b-4281-b951-d872f2087c98
* fix run_testserver init again.tim@chromium.org2011-06-231-2/+2
| | | | | | | | | | | | | | We must init dependencies of TestTimeouts::Initialize before calling it. Namely CommandLine::Init and InitLogging. Not sure how/what changed since my last patch, but this stopped working again due to order of calls. BUG=none TEST=build + run run_testserver. no crash. Review URL: http://codereview.chromium.org/7244017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90296 0039d316-1c4b-4281-b951-d872f2087c98
* Moved the ListenSocket class (found in net/base/listen_socket.h) to the net ↵rkn@chromium.org2011-06-232-19/+21
| | | | | | | | | | | namespace. BUG=87032 TEST=None Review URL: http://codereview.chromium.org/7190041 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90257 0039d316-1c4b-4281-b951-d872f2087c98
* Coverity: Pass parameters by reference.jhawkins@chromium.org2011-06-221-1/+1
| | | | | | | | | | | | CID=8725,14376,15499,15540,15655,16687,16688 BUG=none TEST=none R=kmadhusu@chromium.org Review URL: http://codereview.chromium.org/7211037 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89976 0039d316-1c4b-4281-b951-d872f2087c98
* Switch test server to new-style "device gone" status code.mnissler@chromium.org2011-06-211-1/+1
| | | | | | | | | | BUG=None TEST=compiles and passes tests Review URL: http://codereview.chromium.org/7200026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89827 0039d316-1c4b-4281-b951-d872f2087c98
* Remove unused parts of the cloud policy protocolgfeher@chromium.org2011-06-211-110/+8
| | | | | | | | | TEST=DeviceManagementServiceIntegrationTest.WithTestServer Review URL: http://codereview.chromium.org/7104145 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89813 0039d316-1c4b-4281-b951-d872f2087c98
* Make toy DMServer honor managed_users on registration requests.mnissler@chromium.org2011-06-201-1/+7
| | | | | | | | | | BUG=None TEST=Passes unit tests Review URL: http://codereview.chromium.org/7187017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89654 0039d316-1c4b-4281-b951-d872f2087c98
* initialize TestTimeouts for python test server (run_testserver target)tim@chromium.org2011-06-181-0/+3
| | | | | | | | | | BUG= TEST=run_testserver doesn't crash Review URL: http://codereview.chromium.org/7187025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89597 0039d316-1c4b-4281-b951-d872f2087c98
* Collect stats to investigate the viability of UDPrtenneti@chromium.org2011-06-091-1/+84
| | | | | | | | | | | | | | | | | | connectivity from the browser (first cut). Collect stats for TCP connectivity also. - What percentage of users can get a message end-to-end to an TCP and UDP server. - What is the latency for TCP and UDP messages. Added TCP and UDP echo servers to testserver.py for unittests. BUG=82565 TEST=udp tests Review URL: http://codereview.chromium.org/7056031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@88495 0039d316-1c4b-4281-b951-d872f2087c98
* Reloaded the device-management file before every policy request is answered.sfeuz@chromium.org2011-06-011-24/+37
| | | | | | | | | BUG=none TEST=Start DM-Testserver; start Chrome with CloudPolicy; Change device-management file; Trigger refetch (wait or restart Chrome); confirm that the changes in device_management got propagated. Review URL: http://codereview.chromium.org/7054037 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@87494 0039d316-1c4b-4281-b951-d872f2087c98
* Anti-DDoS enhancements: Log to net log, UMA stats, improved policy.joi@chromium.org2011-05-271-4/+67
| | | | | | | | | | | | | | | | | | | | | | Count only certain error codes as failures. Don't count malformed body for codes already counted failures. Start with fresh entry when outdated, which makes policy slightly less aggressive. Add registration/unregistration to NetworkChangeNotifier, and reset throttling state on network changes, to avoid degenerate corner cases. Add UMA stats for throttling, and unit tests for them. Add hash-location-only URL to unit test. Enable testing of AJAX behavior via backoff_server. BUG=83775 TEST=net_unittests Review URL: http://codereview.chromium.org/6966038 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@87056 0039d316-1c4b-4281-b951-d872f2087c98
* Virtual destructors should have virtual keyword.hans@chromium.org2011-05-255-14/+13
| | | | | | | | | | | | | | | | | Make sure user-declared virtual destructors always have the virtual keyword. The Clang style-check plugin will check for this soon. No functionality change: virtual is only added to destructors that are already implicitly virtual. Also fix a couple of in-line destructor definitions. BUG=83408 TEST=none Review URL: http://codereview.chromium.org/7064033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86587 0039d316-1c4b-4281-b951-d872f2087c98
* Treat ERR_CONNECTION_CLOSED as end-of-data marker for downloads.ahendrickson@chromium.org2011-05-241-0/+68
| | | | | | | | | | BUG=79694 TEST=Download a torrent file from http://ca.isohunt.com. It should complete. Review URL: http://codereview.chromium.org/6881106 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86472 0039d316-1c4b-4281-b951-d872f2087c98
* net: Add NET_API to a few more files.rvargas@google.com2011-05-211-1/+2
| | | | | | | | BUG=76997 TEST=NONE Review URL: http://codereview.chromium.org/7056019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86181 0039d316-1c4b-4281-b951-d872f2087c98
* Enable DevTools network size/timing/headers tests.vsevik@chromium.org2011-05-201-0/+49
| | | | | | Review URL: http://codereview.chromium.org/6904086 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86066 0039d316-1c4b-4281-b951-d872f2087c98
* Revert of 85854 which is a revert of 85852 - Add a command line optionrtenneti@chromium.org2011-05-191-0/+1
| | | | | | | | | | | | | | | ("host-resolver-retry-attempts") to specify the number of retry attempts to resolve host. Relanding CL http://codereview.chromium.org/7011044/ BUG=82580 TEST=host resolver unit tests TBR=eroman Review URL: http://codereview.chromium.org/7011044 Review URL: http://codereview.chromium.org/7029050 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85871 0039d316-1c4b-4281-b951-d872f2087c98
* Reland 85821 - Http cache: Make sure that we don't use http 1.1 featuresrvargas@google.com2011-05-191-0/+5
| | | | | | | | | | | for http 1.0 resources. BUG=74061 TEST=netunittests Review URL: http://codereview.chromium.org/6995010 Review URL: http://codereview.chromium.org/7042027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85857 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 85852 - Add a command line option ("host-resolver-retry-attempts")rtenneti@chromium.org2011-05-191-1/+0
| | | | | | | | | | | | | | | to specify the number of retry attempts to resolve host. BUG=82580 TEST=host resolver unit tests R=eroman Review URL: http://codereview.chromium.org/7011044 TBR=rtenneti@chromium.org Review URL: http://codereview.chromium.org/7044027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85854 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 85821 - Http cache: Make sure that we don't use http 1.1 featuresrvargas@google.com2011-05-191-5/+0
| | | | | | | | | | | | | for http 1.0 resources. BUG=74061 TEST=netunittests Review URL: http://codereview.chromium.org/6995010 TBR=rvargas@google.com Review URL: http://codereview.chromium.org/7034044 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85853 0039d316-1c4b-4281-b951-d872f2087c98
* Add a command line option ("host-resolver-retry-attempts")rtenneti@chromium.org2011-05-191-0/+1
| | | | | | | | | | | | to specify the number of retry attempts to resolve host. BUG=82580 TEST=host resolver unit tests R=eroman Review URL: http://codereview.chromium.org/7011044 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85852 0039d316-1c4b-4281-b951-d872f2087c98
* Http cache: Make sure that we don't use http 1.1 featuresrvargas@google.com2011-05-181-0/+5
| | | | | | | | | | for http 1.0 resources. BUG=74061 TEST=netunittests Review URL: http://codereview.chromium.org/6995010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85821 0039d316-1c4b-4281-b951-d872f2087c98