Ppeter@chromium.orgRevert 156742 - Launch pywebsocket via net::TestServer
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
[sync] Add --port and --xmpp-port parameters to run_testserver.cc 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 | 13 年前 | |
Revert 156742 - Launch pywebsocket via net::TestServer 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 | 13 年前 | |
Revert 156742 - Launch pywebsocket via net::TestServer 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 | 13 年前 | |
Revert 154861 - Run safebrowsing_service_test through the net testserver code. 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 | 13 年前 | |
Remove the rest of #pragma once in one big CL. 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 | 13 年前 | |
Revert 156742 - Launch pywebsocket via net::TestServer 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 | 13 年前 | |
Revert 154861 - Run safebrowsing_service_test through the net testserver code. 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 | 13 年前 | |
Reland: Take 2: Force python test server output to be unbuffered, so 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. 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 | 13 年前 | |
Reland: Take 2: Force python test server output to be unbuffered, so 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. 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 | 13 年前 | |
snap_start_tests: test NPN misprediction. 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 | 15 年前 | |
Reland: Take 2: Force python test server output to be unbuffered, so 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. 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 | 13 年前 | |
Reland: Take 2: Force python test server output to be unbuffered, so 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. 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 | 13 年前 | |
Reland: Take 2: Force python test server output to be unbuffered, so 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. 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 | 13 年前 | |
Revert 156742 - Launch pywebsocket via net::TestServer 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 | 13 年前 | |
Refactoring for merging WebSocket test server to net::TestServer - 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 | 13 年前 | |
Added URLRequestContext::CreateRequest which can be used to create URLRequests 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 | 13 年前 | |
Remove the rest of #pragma once in one big CL. 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 | 13 年前 | |
Remove the rest of #pragma once in one big CL. 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 | 13 年前 |