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

Issue 10073033: Run safebrowsing_service_test through the net testserver code. (Closed)

Created:
8 years, 8 months ago by mattm
Modified:
8 years, 3 months ago
CC:
chromium-reviews, pam+watch_chromium.org, cbentzel+watch_chromium.org, darin-cc_chromium.org
Visibility:
Public.

Description

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 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=154861

Patch Set 1 #

Patch Set 2 : rebase #

Total comments: 16

Patch Set 3 : review changes #

Total comments: 2

Patch Set 4 : rebase #

Patch Set 5 : refactoring as suggested #

Patch Set 6 : try to fix win build and temporarily enable test #

Patch Set 7 : specify absolute path to safe_browsing_test datafile #

Total comments: 4

Patch Set 8 : rebase #

Patch Set 9 : changes for comment 8 #

Patch Set 10 : fix warning #

Total comments: 39

Patch Set 11 : rebase #

Patch Set 12 : updates for comments 10 & 11 #

Total comments: 2

Patch Set 13 : nits, fail fix #

Total comments: 1

Patch Set 14 : docstrings #

Patch Set 15 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+638 lines, -486 lines) Patch
A chrome/browser/safe_browsing/local_safebrowsing_test_server.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +38 lines, -0 lines 0 comments Download
A chrome/browser/safe_browsing/local_safebrowsing_test_server.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +61 lines, -0 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_test.cc View 1 2 3 4 5 6 7 8 9 10 11 12 11 chunks +47 lines, -161 lines 0 comments Download
A chrome/browser/safe_browsing/safe_browsing_testserver.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +47 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -0 lines 0 comments Download
M net/test/base_test_server.h View 1 2 3 4 5 6 7 8 9 1 chunk +7 lines, -1 line 0 comments Download
M net/test/base_test_server.cc View 1 2 3 4 5 6 7 8 9 1 chunk +6 lines, -0 lines 0 comments Download
M net/test/local_sync_test_server.cc View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M net/test/local_test_server.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +18 lines, -2 lines 0 comments Download
M net/test/local_test_server.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +23 lines, -4 lines 0 comments Download
M net/test/local_test_server_posix.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +2 lines, -1 line 0 comments Download
M net/test/local_test_server_win.cc View 1 2 3 4 2 chunks +3 lines, -2 lines 0 comments Download
M net/tools/testserver/run_testserver.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M net/tools/testserver/testserver.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 8 chunks +256 lines, -313 lines 0 comments Download
A net/tools/testserver/testserver_base.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +126 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
mattm
Hi Pawel, Would like your thoughts on this. I'm working on de-flaking this test, and ...
8 years, 8 months ago (2012-04-14 02:24:59 UTC) #1
mattm
On 2012/04/14 02:24:59, mattm wrote: > Hi Pawel, > > Would like your thoughts on ...
8 years, 8 months ago (2012-04-14 02:51:43 UTC) #2
mattm
On 2012/04/14 02:51:43, mattm wrote: > On 2012/04/14 02:24:59, mattm wrote: > > Hi Pawel, ...
8 years, 8 months ago (2012-04-16 23:23:18 UTC) #3
Paweł Hajdan Jr.
http://codereview.chromium.org/10073033/diff/4001/chrome/browser/safe_browsing/safe_browsing_test.cc File chrome/browser/safe_browsing/safe_browsing_test.cc (right): http://codereview.chromium.org/10073033/diff/4001/chrome/browser/safe_browsing/safe_browsing_test.cc#newcode213 chrome/browser/safe_browsing/safe_browsing_test.cc:213: return server_host_; nit: Why don't you just propagate things ...
8 years, 8 months ago (2012-04-17 06:38:05 UTC) #4
mattm
+rsleevi for net/ http://codereview.chromium.org/10073033/diff/4001/chrome/browser/safe_browsing/safe_browsing_test.cc File chrome/browser/safe_browsing/safe_browsing_test.cc (right): http://codereview.chromium.org/10073033/diff/4001/chrome/browser/safe_browsing/safe_browsing_test.cc#newcode213 chrome/browser/safe_browsing/safe_browsing_test.cc:213: return server_host_; On 2012/04/17 06:38:05, Paweł ...
8 years, 8 months ago (2012-04-18 00:20:00 UTC) #5
Ryan Sleevi
Please see http://code.google.com/p/chromium/issues/detail?id=119403 This can create some weird layering violations. In effect, this is pushing ...
8 years, 8 months ago (2012-04-18 00:45:02 UTC) #6
mattm
I took a hack at splitting it up. Notes: It only implements LocalSafeBrowsingTestServer. Haven't really ...
8 years, 4 months ago (2012-08-03 19:41:03 UTC) #7
Ryan Sleevi
Matt, Thanks for taking another stab at this. I think high-level, this approach is good. ...
8 years, 4 months ago (2012-08-08 06:15:40 UTC) #8
mattm
http://codereview.chromium.org/10073033/diff/33002/chrome/browser/safe_browsing/local_safebrowsing_test_server.cc File chrome/browser/safe_browsing/local_safebrowsing_test_server.cc (right): http://codereview.chromium.org/10073033/diff/33002/chrome/browser/safe_browsing/local_safebrowsing_test_server.cc#newcode56 chrome/browser/safe_browsing/local_safebrowsing_test_server.cc:56: bool LocalSafeBrowsingTestServer::AddCommandLineArguments( On 2012/08/08 06:15:40, Ryan Sleevi wrote: > ...
8 years, 3 months ago (2012-08-30 21:50:47 UTC) #9
Ryan Sleevi
+maruel, who I'm volunteering to check/review the Python portion for Python readability and such Looks ...
8 years, 3 months ago (2012-08-31 21:48:39 UTC) #10
M-A Ruel
http://codereview.chromium.org/10073033/diff/49003/net/tools/testserver/testserver.py File net/tools/testserver/testserver.py (right): http://codereview.chromium.org/10073033/diff/49003/net/tools/testserver/testserver.py#newcode2002 net/tools/testserver/testserver.py:2002: my_data_dir = os.path.dirname(sys.argv[0]) it's not a good idea in ...
8 years, 3 months ago (2012-08-31 22:04:05 UTC) #11
mattm
Thanks, updated. http://codereview.chromium.org/10073033/diff/49003/chrome/browser/safe_browsing/local_safebrowsing_test_server.cc File chrome/browser/safe_browsing/local_safebrowsing_test_server.cc (right): http://codereview.chromium.org/10073033/diff/49003/chrome/browser/safe_browsing/local_safebrowsing_test_server.cc#newcode19 chrome/browser/safe_browsing/local_safebrowsing_test_server.cc:19: data_file_(data_file) {} On 2012/08/31 21:48:39, Ryan Sleevi ...
8 years, 3 months ago (2012-09-01 01:44:53 UTC) #12
mattm
http://codereview.chromium.org/10073033/diff/49003/net/tools/testserver/testserver_base.py File net/tools/testserver/testserver_base.py (right): http://codereview.chromium.org/10073033/diff/49003/net/tools/testserver/testserver_base.py#newcode103 net/tools/testserver/testserver_base.py:103: if self.options.startup_pipe is not None: On 2012/09/01 01:44:54, mattm ...
8 years, 3 months ago (2012-09-01 01:45:43 UTC) #13
M-A Ruel
python lgtm
8 years, 3 months ago (2012-09-01 01:47:26 UTC) #14
Ryan Sleevi
net/ LGTM, mod minor nits http://codereview.chromium.org/10073033/diff/37006/chrome/browser/safe_browsing/local_safebrowsing_test_server.h File chrome/browser/safe_browsing/local_safebrowsing_test_server.h (right): http://codereview.chromium.org/10073033/diff/37006/chrome/browser/safe_browsing/local_safebrowsing_test_server.h#newcode32 chrome/browser/safe_browsing/local_safebrowsing_test_server.h:32: FilePath data_file_; nit: include ...
8 years, 3 months ago (2012-09-01 02:18:02 UTC) #15
mattm
+thakis for chrome/ OWNERS stamp
8 years, 3 months ago (2012-09-04 20:01:35 UTC) #16
Nico
lgtm stamp http://codereview.chromium.org/10073033/diff/41006/chrome/browser/safe_browsing/safe_browsing_testserver.py File chrome/browser/safe_browsing/safe_browsing_testserver.py (right): http://codereview.chromium.org/10073033/diff/41006/chrome/browser/safe_browsing/safe_browsing_testserver.py#newcode18 chrome/browser/safe_browsing/safe_browsing_testserver.py:18: class ServerRunner(testserver_base.TestServerRunner): docstring
8 years, 3 months ago (2012-09-04 20:11:20 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mattm@chromium.org/10073033/38036
8 years, 3 months ago (2012-09-04 21:35:27 UTC) #18
commit-bot: I haz the power
8 years, 3 months ago (2012-09-05 00:19:44 UTC) #19
Change committed as 154861

Powered by Google App Engine
This is Rietveld 408576698