summaryrefslogtreecommitdiffstats
path: root/net/test
Commit message (Collapse)AuthorAgeFilesLines
* net: Move ownership of UploadDataStream from URLRequestHttpJob to URLRequesthashimoto@chromium.org2012-11-281-1/+4
| | | | | | | | | | | | | | | | URLRequest creates and owns UploadDataStream. URLRequest::get_upload_mutable and URLRequest::AppendBytesToUpload are removed because they can modify UploadData after UploadDataStream is created. Return type of URLRequest::get_upload is changed from UploadData to UploadDataStream. A number of methods are added to UploadElementReader and its subclasses to support URLRequestAutomationJob and some other users. BUG=156574 TEST=git try TBR=jam@chromium.org (for chrome/browser/automation, already reviewed by ananta@chromium.org) Review URL: https://chromiumcodereview.appspot.com/11419034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@170028 0039d316-1c4b-4281-b951-d872f2087c98
* Hack around testserver issues with stdout and stderr on Win XP bots.mattm@chromium.org2012-11-281-2/+0
| | | | | | | | | | | | | Re-enable python unbuffered output on win. Re-enable SafeBrowsingServerTest. BUG=96459,147368 Review URL: https://chromiumcodereview.appspot.com/11316039 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@169876 0039d316-1c4b-4281-b951-d872f2087c98
* Try #2.1: Run safebrowsing_service_test through the net testserver code.mattm@chromium.org2012-11-075-8/+42
| | | | | | | | | | | | | | | | | Allows us to use ephemeral ports. (Relanding the change but with the test still disabled.) 1st review: https://chromiumcodereview.appspot.com/10073033 2nd review: https://chromiumcodereview.appspot.com/10918251 BUG=96459,119403 TBR=rsleevi@chromium.org Review URL: https://chromiumcodereview.appspot.com/11382002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@166540 0039d316-1c4b-4281-b951-d872f2087c98
* Move Android WebView Test WebServer to net.jknotten@chromium.org2012-11-072-0/+537
| | | | | | | | | | | | Move Android WebView Test WebServer to net so that other test code can make use of it. BUG=159601 Review URL: https://chromiumcodereview.appspot.com/11366108 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@166493 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 166344 (SafeBrowsingSystemTest fails on XP:thakis@chromium.org2012-11-075-42/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | http://build.chromium.org/p/chromium.win/buildstatus?builder=XP%20Tests%20%281%29&number=21644 http://build.chromium.org/p/chromium.win/buildstatus?builder=XP%20Tests%20%28dbg%29%281%29&number=28760 eg [10776:10780:1106/215239:1089468:INFO:safe_browsing_test.cc(443)] Start test browser\safe_browsing\safe_browsing_test.cc(491): error: Value of: ParsePhishingUrls(safe_browsing_helper->response_data(), &phishing_urls) Actual: false Expected: true Google Test trace: browser\safe_browsing\safe_browsing_test.cc(466): step=2 browser\safe_browsing\safe_browsing_test.cc(492): error: Expected: (phishing_urls.size()) > (0U), actual: 0 vs 0 Google Test trace: browser\safe_browsing\safe_browsing_test.cc(466): step=2 browser\safe_browsing\safe_browsing_test.cc(517): error: Expected: (safe_browsing_helper->response_data().size()) > (0U), actual: 0 vs 0 Google Test trace: browser\safe_browsing\safe_browsing_test.cc(466): step=2 browser\safe_browsing\safe_browsing_test.cc(524): error: Value of: safe_browsing_helper->response_data() Actual: "" Expected: "yes" )- Try #2: Run safebrowsing_service_test through the net testserver code. Allows us to use ephemeral ports. Original review: https://chromiumcodereview.appspot.com/10073033 BUG=96459,119403 Review URL: https://chromiumcodereview.appspot.com/10918251 TBR=mattm@chromium.org Review URL: https://codereview.chromium.org/11369114 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@166364 0039d316-1c4b-4281-b951-d872f2087c98
* Try #2: Run safebrowsing_service_test through the net testserver code.mattm@chromium.org2012-11-075-8/+42
| | | | | | | | | | | | Allows us to use ephemeral ports. Original review: https://chromiumcodereview.appspot.com/10073033 BUG=96459,119403 Review URL: https://chromiumcodereview.appspot.com/10918251 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@166344 0039d316-1c4b-4281-b951-d872f2087c98
* Fix the failed cases in URLFetcherFileTest on Android.shouqun.liu@intel.com2012-10-253-0/+20
| | | | | | | | | | | | | * Push the needed data files to target device. * Set the correct document root. BUG= TEST=net_unittests --gtest_filter=URLFetcherFileTest.* Review URL: https://chromiumcodereview.appspot.com/10986042 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@164061 0039d316-1c4b-4281-b951-d872f2087c98
* [net] Change factory methods for HostResolver and HostCache to return a ↵szym@chromium.org2012-10-221-4/+1
| | | | | | | | | | | | scoped_ptr. Move HostResolver factory methods to host_resolver.cc. This also fixes a double-free in ShellURLRequestContextGetter. Review URL: https://chromiumcodereview.appspot.com/10831277 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@163402 0039d316-1c4b-4281-b951-d872f2087c98
* testserver.py TLS and client auth support on WebSocket.toyoshim@chromium.org2012-10-181-7/+9
| | | | | | | | | BUG=136950 Review URL: https://chromiumcodereview.appspot.com/11175002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162653 0039d316-1c4b-4281-b951-d872f2087c98
* Launch pywebsocket via net::TestServertoyoshim@chromium.org2012-10-094-5/+16
| | | | | | | | | | | BUG=137639 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=156742 Review URL: https://chromiumcodereview.appspot.com/10879029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@160782 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 156742 - Launch pywebsocket via net::TestServerpeter@chromium.org2012-09-144-16/+5
| | | | | | | | | | | | | | | | The mod_pywebsocket.standalone module cannot be imported on the Chromium OS bots. Example output is available here: http://build.chromium.org/p/chromium.chromiumos/builders/ChromiumOS%20%28amd64%29/builds/4069/steps/VMTest/logs/stdio BUG=137639 Review URL: https://chromiumcodereview.appspot.com/10879029 TBR=toyoshim@chromium.org Review URL: https://codereview.chromium.org/10913268 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@156772 0039d316-1c4b-4281-b951-d872f2087c98
* Launch pywebsocket via net::TestServertoyoshim@chromium.org2012-09-144-5/+16
| | | | | | | | | BUG=137639 Review URL: https://chromiumcodereview.appspot.com/10879029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@156742 0039d316-1c4b-4281-b951-d872f2087c98
* Reland: Take 2: Force python test server output to be unbuffered, so it ↵rsimha@google.com2012-09-125-21/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | doesn't mix with gtest output In browser tests that use a local python server, the python output in the test logs sometimes overlaps with gtest output, resulting in gtest falsely detecting passing tests as incomplete. This is a result of python's default use of buffered output, which gets written to the log file out of order. This patch forces the python process for local test servers to use unbuffered mode via the -u switch. This way, by the time gtest is ready to log a passing test, all testserver output is already written to the log file. Update: The win xp bots were adversely affected by the -u switch, so we now apply it only for mac and linux, which is where the original problem was found. BUG=147368 TEST=See sync integration test output when it is redirected to a log file, and make sure there are no false negatives. Originally committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=156361 Review URL: https://codereview.chromium.org/10907162 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@156389 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 156361 - Take 2: Force python test server output to be unbuffered, so ↵rsimha@google.com2012-09-125-28/+21
| | | | | | | | | | | | | | | | | | | | | | | | | it doesn't mix with gtest output In browser tests that use a local python server, the python output in the test logs sometimes overlaps with gtest output, resulting in gtest falsely detecting passing tests as incomplete. This is a result of python's default use of buffered output, which gets written to the log file out of order. This patch forces the python process for local test servers to use unbuffered mode via the -u switch. This way, by the time gtest is ready to log a passing test, all testserver output is already written to the log file. BUG=147368 TEST= See sync integration test output when it is redirected to a log file, and make sure there are no false negatives. Review URL: https://chromiumcodereview.appspot.com/10907162 TBR=rsimha@google.com Review URL: https://codereview.chromium.org/10911264 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@156376 0039d316-1c4b-4281-b951-d872f2087c98
* Take 2: Force python test server output to be unbuffered, so it doesn't mix ↵rsimha@google.com2012-09-125-21/+28
| | | | | | | | | | | | | | | | | | | | | | with gtest output In browser tests that use a local python server, the python output in the test logs sometimes overlaps with gtest output, resulting in gtest falsely detecting passing tests as incomplete. This is a result of python's default use of buffered output, which gets written to the log file out of order. This patch forces the python process for local test servers to use unbuffered mode via the -u switch. This way, by the time gtest is ready to log a passing test, all testserver output is already written to the log file. BUG=147368 TEST= See sync integration test output when it is redirected to a log file, and make sure there are no false negatives. Review URL: https://chromiumcodereview.appspot.com/10907162 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@156361 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 155587 - Force python test server output to be unbuffered, so it ↵rsimha@google.com2012-09-083-20/+0
| | | | | | | | | | | | | | | | | | | doesn't mix with gtest output In browser tests that use a local python server, the python output in the test logs sometimes overlaps with gtest output, resulting in gtest falsely detecting passing tests as incomplete. This is a result of python's default use of buffered output, which gets written to the log file out of order. This patch forces the python process for local test servers to use unbuffered mode. This way, by the time gtest is ready to log a passing test, all testserver output is already written to the log file. BUG=147368 TEST= See sync integration test output when it is redirected to a log file, and make sure there are no false negatives. Review URL: https://chromiumcodereview.appspot.com/10919165 TBR=rsimha@chromium.org Review URL: https://chromiumcodereview.appspot.com/10910150 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@155594 0039d316-1c4b-4281-b951-d872f2087c98
* Force python test server output to be unbuffered, so it doesn't mix with ↵rsimha@chromium.org2012-09-083-0/+20
| | | | | | | | | | | | | | | | gtest output In browser tests that use a local python server, the python output in the test logs sometimes overlaps with gtest output, resulting in gtest falsely detecting passing tests as incomplete. This is a result of python's default use of buffered output, which gets written to the log file out of order. This patch forces the python process for local test servers to use unbuffered mode. This way, by the time gtest is ready to log a passing test, all testserver output is already written to the log file. BUG=147368 TEST= See sync integration test output when it is redirected to a log file, and make sure there are no false negatives. Review URL: https://chromiumcodereview.appspot.com/10919165 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@155587 0039d316-1c4b-4281-b951-d872f2087c98
* Use HttpAuthController in SocketStreambashi@chromium.org2012-09-082-0/+4
| | | | | | | | | | | | | | | We need to share http auth cache with http stack because WebSocket is a subresource and chromium won't show the login dialog for subresource loading. Use HttpAuthController and pass the common http auth cache to it to solve the issue. BUG=47069 TEST=net_unittests Review URL: https://chromiumcodereview.appspot.com/10854139 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@155582 0039d316-1c4b-4281-b951-d872f2087c98
* Fix for remote_test_server.cc for clang after r154786bulach@chromium.org2012-09-051-2/+1
| | | | | | | | | | | | | FilePath::Append is immutable, the result needs to be captured (clang has a warning for that). BUG= TEST= Review URL: https://chromiumcodereview.appspot.com/10909082 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@155022 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 154861 - Run safebrowsing_service_test through the net testserver code.mattm@chromium.org2012-09-057-61/+11
| | | | | | | | | | | | | | | | Allows us to use ephemeral ports. Also run the testserver.py python process with -u to avoid buffering issues. BUG=96459,119403 TEST=none Review URL: https://chromiumcodereview.appspot.com/10073033 TBR=mattm@chromium.org Review URL: https://chromiumcodereview.appspot.com/10905087 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@154875 0039d316-1c4b-4281-b951-d872f2087c98
* Run safebrowsing_service_test through the net testserver code.mattm@chromium.org2012-09-057-11/+61
| | | | | | | | | | | | | Allows us to use ephemeral ports. Also run the testserver.py python process with -u to avoid buffering issues. BUG=96459,119403 TEST=none Review URL: https://chromiumcodereview.appspot.com/10073033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@154861 0039d316-1c4b-4281-b951-d872f2087c98
* Android: Use external storage for test data.nileshagrawal@chromium.org2012-09-041-2/+13
| | | | | | | | | | | Also increasing priority for logging test markers. BUG= Review URL: https://chromiumcodereview.appspot.com/10896050 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@154786 0039d316-1c4b-4281-b951-d872f2087c98
* net: Fix more clang warnings about missing virtual and OVERRIDE annotations.tfarina@chromium.org2012-09-011-1/+1
| | | | | | | | | | BUG=115047 TBR=willchan@chromium.org Review URL: https://chromiumcodereview.appspot.com/10908051 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@154615 0039d316-1c4b-4281-b951-d872f2087c98
* Added URLRequestContext::CreateRequest which can be used to create URLRequestsshalev@chromium.org2012-08-241-3/+2
| | | | | | | | | BUG=142945 Review URL: https://chromiumcodereview.appspot.com/10873056 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@153302 0039d316-1c4b-4281-b951-d872f2087c98
* Refactoring for merging WebSocket test server to net::TestServertoyoshim@chromium.org2012-08-236-53/+69
| | | | | | | | | | | | - rename HTTPSOptions to SSLOptions - pass an argument for secure server to specify the service protocol type BUG=137639 Review URL: https://chromiumcodereview.appspot.com/10878003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@152902 0039d316-1c4b-4281-b951-d872f2087c98
* Remove the rest of #pragma once in one big CL.ajwong@chromium.org2012-07-117-7/+0
| | | | | | | | | For context see this thread: https://groups.google.com/a/chromium.org/forum/?fromgroups#!topic/chromium-dev/RMcVNGjB4II TBR=thakis,pkasting,jam git-svn-id: svn://svn.chromium.org/chrome/trunk/src@146163 0039d316-1c4b-4281-b951-d872f2087c98
* Switch to TimeDelta interfaces for process waiting functions in net and ipc.tedvessenes@gmail.com2012-07-112-3/+2
| | | | | | | | | | R=agl@chromium.org BUG=108171 Review URL: https://chromiumcodereview.appspot.com/10692155 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@146124 0039d316-1c4b-4281-b951-d872f2087c98
* net: add support for testing OCSP unauthorized and unknown statusesagl@chromium.org2012-06-292-0/+6
| | | | | | | | | | | | | | This doesn't actually add any tests that exercise this yet because none of our certificate verification libraries treat these differently from "no status". But it might be useful in the future. BUG=none TEST=none Review URL: https://chromiumcodereview.appspot.com/10695029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@144928 0039d316-1c4b-4281-b951-d872f2087c98
* Create a SpawnerCommunicator when starting a remote test server and destroy ↵jnd@chromium.org2012-06-284-13/+28
| | | | | | | | | | | | | it when stopping the remote test server. URLRequestTestHTTP.GetTest_ManyCookies stops and restarts the Python test server.Explicitly destroying the SpawnerCommunicator instance to avoid reusing the stopped instance. BUG=None TEST=make URLRequestTestHTTP.GetTest_ManyCookies pass on Chromium Android. Review URL: https://chromiumcodereview.appspot.com/10642016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@144721 0039d316-1c4b-4281-b951-d872f2087c98
* Added URLRequestContext to constructor for URLRequest.erikwright@chromium.org2012-06-221-4/+3
| | | | | | | | | | | | | Previously, the context was set using the member function set_context. Note that the context for a URLRequest is not allowed to be null. BUG=81979 TEST=None TBR=ajwong,brettw,vitalybuka,sky Review URL: https://chromiumcodereview.appspot.com/10559036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@143595 0039d316-1c4b-4281-b951-d872f2087c98
* Cleanup the URLRequestContext after finishing communication with test ↵jnd@chromium.org2012-05-302-0/+8
| | | | | | | | | | | | | | | sserver spawner. URLRequestContext was a Ref-Countable before, I used to track it by using scoped_refptr<> wrapper, so when the relevant URLRequest is gone, the corresponding URLRequestContext gets destroyed at same time on same thread. But after change crrev.com/136497, URLRequestContext is no longer Ref-Countable, so it is not gone with the associated URLRequest, we have to manually reset it. Some net tests on Android were failed due to the DCHECK of freeing URLRequestContext on another thread. Also invalidate the weak pointers on the IO thread when the request gets completed. BUG=None TEST=net test based tests on Android should pass. Review URL: https://chromiumcodereview.appspot.com/10456013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@139493 0039d316-1c4b-4281-b951-d872f2087c98
* [sync] Add --port and --xmpp-port parameters to run_testserver.ccrsimha@chromium.org2012-05-244-4/+91
| | | | | | | | | | | | | | | | | | | | | | | | | run_testserver is a useful test utility that launches a python testserver after setting the required python path. When it is used to start a sync testserver, the only parameter it supports is --sync, indicating that we want a sync server. It doesn't support the --port and --xmpp-port flags, that are used to specify the ports on which we want the sync server and sync xmpp server to run. This patch adds the parameters to run_testserver.cc and plumbs them down to the TestServer objects created by run_testserver.cc. It also separates out sync specific testserver code into a new class called LocalSyncTestServer. Separating the sync server in python code is out of the scope of this CL because it requires significant refactoring, since it is in use on multiple platforms, and will be dealt with separately. BUG= 117559 TEST=Build and run run_testserver with the paramters --sync, --port and --xmpp-port Review URL: https://chromiumcodereview.appspot.com/10388206 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@138878 0039d316-1c4b-4281-b951-d872f2087c98
* Improve the TLS intolerant server testing support added in r134129wtc@chromium.org2012-05-232-7/+18
| | | | | | | | | | | | | | | | (http://codereview.chromium.org/10218007). Add the ability to simulate a server that is intolerant of only a particular version of TLS. This will allow us to test the handling of a TLS 1.1 intolerant server. R=agl@chromium.org,phajdan.jr@chromium.org BUG=126340 TEST=none Review URL: https://chromiumcodereview.appspot.com/10412042 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@138537 0039d316-1c4b-4281-b951-d872f2087c98
* Rewrite base::JSONReader to be 35-40% faster, depending on the input string.rsesek@chromium.org2012-05-162-4/+2
| | | | | | | | | | | | | | | | This change does the following: * Parses the input string and generates the object representation in O(n) time. * Optimizes string decoding by using StringPiece where possible, which also introduces the JSON_DETACHABLE_CHILDREN parser option. * Makes JSONReader a simpler interface by hiding the parser details in an internal JSONParser class. BUG=49212,111581,121469 TEST=Hopefully covered by all test suites. New tests added for edge cases. Review URL: https://chromiumcodereview.appspot.com/10035042 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@137430 0039d316-1c4b-4281-b951-d872f2087c98
* Stop refcounting URLRequestContext.willchan@chromium.org2012-05-112-4/+4
| | | | | | | | | | | | While doing so, fix a few issues with the code like ordering of URLRequestContext to ensure correct destruction order. Also fix const correctness in some places. BUG=58859 TEST=none TBR=willchan Review URL: https://chromiumcodereview.appspot.com/10299002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@136497 0039d316-1c4b-4281-b951-d872f2087c98
* net: don't remember TLS intolerant servers.agl@chromium.org2012-04-262-2/+10
| | | | | | | | | | | | | | | | | | | | | I've seen a couple of reports recently where is was clear that an SNI-only hostname had ended up in the list of TLS-intolerant servers. The result is that the user sees the non-SNI certificate for that IP address, which doesn't match the requested hostname. The only way to clear this is to restart Chrome. This change partly reverts r45088 so that we will no longer remember TLS-intolerant servers. This means that we'll perform SSLv3 fallback for every connection, if needed. That's unfortunate for truly TLS-intolerant servers, but it also means that we'll get back to TLS much faster in the event of a transient network error trigger fallback. BUG=none TEST=net_unittests Review URL: http://codereview.chromium.org/10218007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@134129 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 128414 - Disable OCSP tests on Androidjnd@chromium.org2012-04-241-6/+0
| | | | | | | | | | | | | | | | | | | The OCSP test server works now. (fixed by http://src.chromium.org/viewvc/chrome?view=rev&revision=133704) The on-demand OCSP test server is not supported on Android. Disable these tests. BUG=119642 TEST=green bots Review URL: http://codereview.chromium.org/9837027 TBR=rsleevi@chromium.org Review URL: http://codereview.chromium.org/10211002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@133742 0039d316-1c4b-4281-b951-d872f2087c98
* Update uses of TimeDelta in net/test.tedvessenes@gmail.com2012-04-111-1/+1
| | | | | | | | | | R=phajdan.jr@chromium.org BUG=108171 Review URL: http://codereview.chromium.org/10021021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131712 0039d316-1c4b-4281-b951-d872f2087c98
* Disable OCSP tests on Androidrsleevi@chromium.org2012-03-231-0/+6
| | | | | | | | | | | | | The on-demand OCSP test server is not supported on Android. Disable these tests. BUG=119642 TEST=green bots Review URL: http://codereview.chromium.org/9837027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128414 0039d316-1c4b-4281-b951-d872f2087c98
* Revert "Revert "Revert "Revert "net: add OCSP tests.""""agl@chromium.org2012-03-202-8/+57
| | | | | | | | | | | | | | | | | | | | | (First landed in r127486, reverted in r127493 because it broke on Windows XP, relanded in r127518 and reverted in r127520 because Android got upset about an unused function.) I was getting increasingly unhappy altering EV and revocation checking semantics without any tests. We historically haven't had tests because online revocation checking is inherently flaky so I amended testserver with the minimum code to be able to sign and vend OCSP responses. These tests do not test the final EV/CRLSet/revocation checking semantics. They are intended to be altered in future CLs. BUG=none TEST=net_unittests https://chromiumcodereview.appspot.com/9663017/ git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127680 0039d316-1c4b-4281-b951-d872f2087c98
* Revert "Revert "Revert "net: add OCSP tests."""agl@chromium.org2012-03-192-57/+8
| | | | | | This reverts commit r127518. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127520 0039d316-1c4b-4281-b951-d872f2087c98
* Revert "Revert "net: add OCSP tests.""agl@chromium.org2012-03-192-8/+57
| | | | | | | | | | | | | | | | | | | | (First landed in r127486, reverted in r127493 because it broke on Windows XP.) I was getting increasingly unhappy altering EV and revocation checking semantics without any tests. We historically haven't had tests because online revocation checking is inherently flaky so I amended testserver with the minimum code to be able to sign and vend OCSP responses. These tests do not test the final EV/CRLSet/revocation checking semantics. They are intended to be altered in future CLs. BUG=none TEST=net_unittests https://chromiumcodereview.appspot.com/9663017/ git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127518 0039d316-1c4b-4281-b951-d872f2087c98
* Revert "net: add OCSP tests."agl@chromium.org2012-03-192-57/+8
| | | | | | This reverts commit r127486. Looks like it's broken on Windows XP only. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127493 0039d316-1c4b-4281-b951-d872f2087c98
* net: add OCSP tests.agl@chromium.org2012-03-192-8/+57
| | | | | | | | | | | | | | | | | I was getting increasingly unhappy altering EV and revocation checking semantics without any tests. We historically haven't had tests because online revocation checking is inherently flaky so I amended testserver with the minimum code to be able to sign and vend OCSP responses. These tests do not test the final EV/CRLSet/revocation checking semantics. They are intended to be altered in future CLs. BUG=none TEST=net_unittests https://chromiumcodereview.appspot.com/9663017/ git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127486 0039d316-1c4b-4281-b951-d872f2087c98
* JSONWriter cleanup: integrate pretty print into write options.ericdingle@chromium.org2012-03-161-2/+2
| | | | | | | | | | | BUG= TEST=base_unittests TBR=abodenha@chromium.org,ajwong@chromium.org,chocobo@chromium.org,mnissler@chromium.org,akalin@chromium.org,brettw@chromium.org,arv@chromium.org Review URL: http://codereview.chromium.org/9590002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127080 0039d316-1c4b-4281-b951-d872f2087c98
* Make the SpawnerCommunicator destructor virtual since it inherits from ↵jnd@chromium.org2012-03-154-5/+4
| | | | | | | | | | | | net::URLRequest::Delegate Also make BaseTestServer's dtor virtual protected to prevent the BaseTestServer pointer being directly deleted. BUG=None TEST=net_unittests should pass. Review URL: https://chromiumcodereview.appspot.com/9704008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@126865 0039d316-1c4b-4281-b951-d872f2087c98
* Add "run_testserver --sync-test" for easy chromiumsync_test.py launching.tim@chromium.org2012-03-153-12/+34
| | | | | | | | | BUG=none TEST=type that command. see tests run. Review URL: https://chromiumcodereview.appspot.com/9545019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@126847 0039d316-1c4b-4281-b951-d872f2087c98
* Re-enable GDataTest with testfile.txtmukai@chromium.org2012-03-132-6/+5
| | | | | | | | | | | | | | | | | | | | | It was disabled by crrev.com/125443. The root of cause is testserver.py returns 404 instead of 200 for some test case. I noticed that's because the new file 'testfile.txt' (https://chromiumcodereview.appspot.com/9597014/patch/13002/10026) is somehow missing in crrev.com/125404. So this CL adds the missing file and re-enable the test cases. It also changed |service_| to scoped_ptr and creating the instance in SetUpOnMainThread(), because the initialization needs to be in UI thread (see GDataAuthService::GDataAuthService()) It also fixed local_test_server.cc which does not care about TYPE_GDATA. This CL does not work with remove_test_server but it's okay because remote_test_server is for OS_ANDROID and this test is for chromeos. BUG=chromium-os:26355 TEST=passed Review URL: https://chromiumcodereview.appspot.com/9666051 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@126305 0039d316-1c4b-4281-b951-d872f2087c98
* Make test server to talk with the python test server which is running on ↵jnd@chromium.org2012-03-1212-654/+1654
| | | | | | | | | | | | | | | | | remote machine. For Chromium/Android platform, since there is no python env support on Android device, we have to run the test server on the remote host and let the test server to talk with it. Also add the net_util.h into some test files to fix compilation error. They used to implicitly rely on the net_util.h definition by including test_server.h, but the net_util.h is removed from test_server.h in this patch. Since the fix in those test files are trivial, Ryan and Paweł are OK with the patch, just TBR to the owners to skip the owner presubmit check for landing. TBR=owners BUG=None TEST=net_unittests should pass on all platforms Review URL: http://codereview.chromium.org/9359051 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@126100 0039d316-1c4b-4281-b951-d872f2087c98
* [Sync] Create new top-level sync/ directoryakalin@chromium.org2012-03-101-4/+1
| | | | | | | | | | | | | Move sync .proto files to sync/protocol. Update all references. This begins the Great Sync Migration. BUG=117585,43624 TEST= Review URL: https://chromiumcodereview.appspot.com/9668028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@125967 0039d316-1c4b-4281-b951-d872f2087c98