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

Issue 2524153002: Correct EmbeddedTestServer usage in Android tests. (Closed)

Created:
4 years ago by martijnc
Modified:
4 years ago
Reviewers:
jbudorick, gone
CC:
agrieve+watch_chromium.org, chromium-reviews, dominickn+watch_chromium.org, pkotwicz+watch_chromium.org, zpeng+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Correct EmbeddedTestServer usage in Android tests. Adding EmbeddedTestServer handlers after the server has started isn't thread safe. The request handler for "/slow?" gets added to the server when AddDefaultHandlers() is called[1], which already happens in createAndStartServer(), so the additional call here isn't necessary. [1] https://cs.chromium.org/chromium/src/net/test/embedded_test_server/embedded_test_server.cc?sq=package:chromium&dr=C&rcl=1480321223&l=295 BUG=546060 Committed: https://crrev.com/defbb64ff39e797cee7c26715d37a0ce7f875816 Cr-Commit-Position: refs/heads/master@{#434773}

Patch Set 1 : Correct EmbeddedTestServer usage in Android tests. #

Patch Set 2 : Correct EmbeddedTestServer usage in Android tests. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+0 lines, -2 lines) Patch
M chrome/android/javatests/src/org/chromium/chrome/browser/webapps/AddToHomescreenManagerTest.java View 1 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 18 (11 generated)
martijnc
Hi, can you review this patch? Thanks!
4 years ago (2016-11-28 15:46:07 UTC) #8
gone
John: do you know who knows how the EmbeddedTestServer works nowadays?
4 years ago (2016-11-28 18:59:28 UTC) #10
jbudorick
lgtm On 2016/11/28 18:59:28, dfalcantara (check my queue) wrote: > John: do you know who ...
4 years ago (2016-11-28 21:34:40 UTC) #11
gone
Thanks ;) lgtm
4 years ago (2016-11-28 21:37:49 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2524153002/80001
4 years ago (2016-11-28 21:46:14 UTC) #14
commit-bot: I haz the power
Committed patchset #2 (id:80001)
4 years ago (2016-11-28 23:30:04 UTC) #16
commit-bot: I haz the power
4 years ago (2016-11-28 23:32:57 UTC) #18
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/defbb64ff39e797cee7c26715d37a0ce7f875816
Cr-Commit-Position: refs/heads/master@{#434773}

Powered by Google App Engine
This is Rietveld 408576698