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

Issue 320003: Refactor: Don't send the quit command before killing test server for ProxyScr... (Closed)

Created:
11 years, 2 months ago by eroman
Modified:
9 years, 6 months ago
Reviewers:
wtc
CC:
chromium-reviews_googlegroups.com, darin (slow to review), Paweł Hajdan Jr.
Visibility:
Public.

Description

Refactor: Don't send the quit command before killing test server for ProxyScriptFetcherTest.NoCache. Instead we just murder the process directly. Calling HttpTestServer::SendQuit() adds unnecessary latency since we need to wait for the sever to respond. But more importantly it is adding noise to my valgrind race investigation, since SendQuit() spins up its own IO thread to issue requests on (making the test have multiple threads that handle requests). Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=29826

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -2 lines) Patch
M net/proxy/proxy_script_fetcher_unittest.cc View 1 chunk +1 line, -2 lines 1 comment Download

Messages

Total messages: 2 (0 generated)
eroman
11 years, 2 months ago (2009-10-22 18:54:13 UTC) #1
wtc
11 years, 2 months ago (2009-10-22 21:38:58 UTC) #2
LGTM.

http://codereview.chromium.org/320003/diff/1/2
File net/proxy/proxy_script_fetcher_unittest.cc (right):

http://codereview.chromium.org/320003/diff/1/2#newcode196
Line 196: EXPECT_TRUE(server->Stop());  // Verify it shutdown synchronously.
Nit: shutdown => shut down (past tense?)

Powered by Google App Engine
This is Rietveld 408576698