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

Issue 7811026: Python server to test the actionable error feature. (Closed)

Created:
9 years, 3 months ago by lipalani1
Modified:
9 years, 3 months ago
Reviewers:
ncarter (slow)
CC:
chromium-reviews, ncarter (slow), idana, Raghu Simha, cbentzel+watch_chromium.org, arv (Not doing code reviews), pam+watch_chromium.org, darin-cc_chromium.org, tim (not reviewing)
Visibility:
Public.

Description

Python server to test the actionable error feature. BUG=94007, 70276 TEST= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=102392

Patch Set 1 #

Patch Set 2 : For review. #

Patch Set 3 : For review. #

Total comments: 2

Patch Set 4 : For review. #

Total comments: 3

Patch Set 5 : Upload before commit. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+78 lines, -1 line) Patch
M net/tools/testserver/chromiumsync.py View 1 2 3 4 7 chunks +63 lines, -0 lines 0 comments Download
M net/tools/testserver/testserver.py View 1 2 3 2 chunks +15 lines, -1 line 0 comments Download

Messages

Total messages: 6 (0 generated)
lipalani1
This is the python server I used for testing the feature. The protobuf in reference ...
9 years, 3 months ago (2011-08-31 19:55:12 UTC) #1
lipalani1
Ping. The test cases are coded up and pretty close to being LGTMed by monday. ...
9 years, 3 months ago (2011-09-16 21:18:23 UTC) #2
lipalani1
Ping.
9 years, 3 months ago (2011-09-21 22:35:33 UTC) #3
ncarter (slow)
http://codereview.chromium.org/7811026/diff/3001/net/tools/testserver/chromiumsync.py File net/tools/testserver/chromiumsync.py (right): http://codereview.chromium.org/7811026/diff/3001/net/tools/testserver/chromiumsync.py#newcode106 net/tools/testserver/chromiumsync.py:106: Two blank lines here. http://codereview.chromium.org/7811026/diff/7014/net/tools/testserver/chromiumsync.py File net/tools/testserver/chromiumsync.py (right): http://codereview.chromium.org/7811026/diff/7014/net/tools/testserver/chromiumsync.py#newcode106 ...
9 years, 3 months ago (2011-09-21 22:48:08 UTC) #4
lipalani1
Please review. http://codereview.chromium.org/7811026/diff/3001/net/tools/testserver/chromiumsync.py File net/tools/testserver/chromiumsync.py (right): http://codereview.chromium.org/7811026/diff/3001/net/tools/testserver/chromiumsync.py#newcode106 net/tools/testserver/chromiumsync.py:106: On 2011/09/21 22:48:08, ncarter wrote: > Two ...
9 years, 3 months ago (2011-09-22 20:14:35 UTC) #5
ncarter (slow)
9 years, 3 months ago (2011-09-22 20:27:53 UTC) #6
LGTM with three nits

http://codereview.chromium.org/7811026/diff/24001/net/tools/testserver/chromi...
File net/tools/testserver/chromiumsync.py (right):

http://codereview.chromium.org/7811026/diff/24001/net/tools/testserver/chromi...
net/tools/testserver/chromiumsync.py:940:
sync_pb2.ClientToServerResponse.UNKNOWN:
"Make use of Python's implicit line joining inside parentheses, brackets and
braces."

So instead of escaping the newline this should be:

if (self.account.induced_error.error_type !=
    sync_pb2.ClientToServerResponse.UNKNOWN):

Reference:
http://google-styleguide.googlecode.com/svn/trunk/pyguide.html#Line_length

http://codereview.chromium.org/7811026/diff/24001/net/tools/testserver/chromi...
net/tools/testserver/chromiumsync.py:981: error.error_description = \
Don't escape newlines.  It's very common to see expressions like:

error.error_description = (

http://codereview.chromium.org/7811026/diff/24001/net/tools/testserver/chromi...
net/tools/testserver/chromiumsync.py:1085: ### This is deprecated now. Would be
remvoved once test cases are removed.
"remvoved"

Powered by Google App Engine
This is Rietveld 408576698