Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(504)

Issue 11048050: WebSocket test server migration on PPAPI tests (Closed)

Created:
8 years, 2 months ago by Takashi Toyoshima
Modified:
8 years, 2 months ago
CC:
chromium-reviews, pam+watch_chromium.org, cbentzel+watch_chromium.org, darin-cc_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

WebSocket test server migration on PPAPI tests WebSocket test server migration from content::TestWebSocketServer to net::TestServer. This is a part of migration change for PPAPI tests. BUG=137639 TEST=browser_tests --gtest_filter='*.WebSocket_*' Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=162330

Patch Set 1 : for try #

Patch Set 2 : add OWNERS for net/data/websocket #

Total comments: 2

Patch Set 3 : rebase #

Patch Set 4 : pass pylint check #

Unified diffs Side-by-side diffs Delta from patch set Stats (+69 lines, -16 lines) Patch
M chrome/test/ppapi/ppapi_test.cc View 1 chunk +5 lines, -6 lines 0 comments Download
A net/data/websocket/close-code-and-reason_wsh.py View 1 2 3 1 chunk +25 lines, -0 lines 0 comments Download
A + net/data/websocket/close_wsh.py View 1 2 3 2 chunks +9 lines, -1 line 0 comments Download
A + net/data/websocket/echo-with-no-extension_wsh.py View 1 2 2 chunks +6 lines, -2 lines 0 comments Download
M net/data/websocket/echo_wsh.py View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
A net/data/websocket/protocol-test_wsh.py View 1 chunk +19 lines, -0 lines 0 comments Download
M ppapi/tests/test_websocket.cc View 1 chunk +4 lines, -6 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
Takashi Toyoshima
Hi owners, Could you take a look? Viet-Trung, Yuzhu Could you check pepper related files? ...
8 years, 2 months ago (2012-10-13 19:59:14 UTC) #1
Takashi Toyoshima
+brettw ping.
8 years, 2 months ago (2012-10-16 01:11:17 UTC) #2
Ryan Sleevi
I am not a good person to review the Python (although cursory inspection suggests it ...
8 years, 2 months ago (2012-10-16 01:20:31 UTC) #3
Takashi Toyoshima
+phajdan.jr for net/ python scripts. Hi phajdan.jr, I think you are familiar with network stuff, ...
8 years, 2 months ago (2012-10-16 01:30:58 UTC) #4
Paweł Hajdan Jr.
Sorry, I don't have Python readability ("yet"). One comment by the way. http://codereview.chromium.org/11048050/diff/9001/net/data/websocket/close-code-and-reason_wsh.py File net/data/websocket/close-code-and-reason_wsh.py ...
8 years, 2 months ago (2012-10-16 17:01:26 UTC) #5
yzshen1
file:.*ppapi.* LGTM
8 years, 2 months ago (2012-10-16 21:21:12 UTC) #6
Takashi Toyoshima
On python files. Thanks Paweł, BTW, do you know a good person who has python ...
8 years, 2 months ago (2012-10-17 01:28:32 UTC) #7
Takashi Toyoshima
I used pylint which depot_tools includes. http://www.chromium.org/chromium-os/python-style-guidelines I'll add bashi for net/data/websocket .
8 years, 2 months ago (2012-10-17 05:31:59 UTC) #8
bashi
On 2012/10/17 05:31:59, Takashi Toyoshima (chromium) wrote: > I used pylint which depot_tools includes. > ...
8 years, 2 months ago (2012-10-17 05:46:53 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/toyoshim@chromium.org/11048050/26008
8 years, 2 months ago (2012-10-17 06:39:39 UTC) #10
commit-bot: I haz the power
Change committed as 162330
8 years, 2 months ago (2012-10-17 08:40:43 UTC) #11
Paweł Hajdan Jr.
On 2012/10/17 01:28:32, Takashi Toyoshima (chromium) wrote: > If we must have in net/test/data, we ...
8 years, 2 months ago (2012-10-18 19:06:59 UTC) #12
Takashi Toyoshima
8 years, 2 months ago (2012-10-19 03:44:40 UTC) #13
*_wsh.py are script, but it works as a kind of CGI for HTTP.
Because these scripts are resource handler for WebSocket.
So, I believe here is the right path to exist.

Rephrasing it, an access to 'ws://127.0.0.1:<random port>/echo/' is handled by
net/data/websocket/echo_wsh.py and http://127.0.0.1:<random
port>/connect_check.html' is handled by net/data/websocket/connect_check.html.

Note: If we relocate net/data itself, it will be a big cost. Currently, there
are many customized test infrastructures which has minimum set of checkout.
Changing this kind of path breaks many things.

Powered by Google App Engine
This is Rietveld 408576698