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

Issue 25238003: Will now DCHECK that test writers start the embedded server before using it. (Closed)

Created:
7 years, 2 months ago by phoglund_chromium
Modified:
7 years, 2 months ago
Reviewers:
sky, Paweł Hajdan Jr.
CC:
chromium-reviews, cbentzel+watch_chromium.org, tommyw
Visibility:
Public.

Description

Will now DCHECK that test writers start the embedded server before using it. One developer on my team was writing a browser test, but the test would just hang. Turns out he forgot to start the embedded test server. I think we can make the failure a lot clearer by adding a DCHECK which will clearly point out the problem. I know that GetURL doesn't mean the test makes a request to the server as such, but the returned URL will almost always be fed into a NavigateToUrl request, so checking for this here will probably be helpful in almost all cases. R=phajdan.jr@chromium.org BUG=301625 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=226441

Patch Set 1 #

Patch Set 2 : Fixing tests which did not init embedded test server #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -0 lines) Patch
M chrome/browser/collected_cookies_browsertest.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/extensions/lazy_background_page_apitest.cc View 1 1 chunk +2 lines, -0 lines 0 comments Download
M net/test/embedded_test_server/embedded_test_server.cc View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
phoglund_chromium
7 years, 2 months ago (2013-09-30 13:04:34 UTC) #1
Paweł Hajdan Jr.
LGTM
7 years, 2 months ago (2013-09-30 18:12:24 UTC) #2
phoglund_chromium
sky: I found two tests which did not init the embedded test server, but somehow ...
7 years, 2 months ago (2013-10-01 07:38:30 UTC) #3
sky
LGTM
7 years, 2 months ago (2013-10-01 17:36:06 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/phoglund@chromium.org/25238003/21001
7 years, 2 months ago (2013-10-02 07:50:39 UTC) #5
commit-bot: I haz the power
7 years, 2 months ago (2013-10-02 10:10:07 UTC) #6
Message was sent while issue was closed.
Change committed as 226441

Powered by Google App Engine
This is Rietveld 408576698