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

Issue 345034: Add a command line flag to force all network traffic through a particular ser... (Closed)

Created:
11 years, 1 month ago by Mike Belshe
Modified:
9 years, 5 months ago
Reviewers:
eroman
CC:
chromium-reviews_googlegroups.com, darin (slow to review), ben+cc_chromium.org, wtc
Visibility:
Public.

Description

Add a command line flag to force all network traffic through a particular server. The command line is: --fixed-server=host:port When set, all traffic will be diverted through this server. This is useful for testing purposes with fixed servers. BUG=none TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=30798

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Total comments: 20

Patch Set 6 : '' #

Patch Set 7 : '' #

Total comments: 11

Patch Set 8 : '' #

Patch Set 9 : '' #

Total comments: 3

Patch Set 10 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+130 lines, -10 lines) Patch
M chrome/browser/net/chrome_url_request_context.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/net/dns_global.cc View 6 7 8 9 3 chunks +15 lines, -4 lines 0 comments Download
M chrome/common/chrome_switches.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/chrome_switches.cc View 1 2 3 4 5 6 7 8 9 1 chunk +10 lines, -0 lines 0 comments Download
A net/base/fixed_host_resolver.h View 6 7 8 9 1 chunk +42 lines, -0 lines 0 comments Download
A net/base/fixed_host_resolver.cc View 6 7 8 1 chunk +52 lines, -0 lines 0 comments Download
M net/base/host_resolver.h View 5 1 chunk +7 lines, -5 lines 0 comments Download
M net/net.gyp View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Mike Belshe
11 years, 1 month ago (2009-11-02 23:11:57 UTC) #1
eroman
http://codereview.chromium.org/345034/diff/5008/6011 File chrome/browser/net/chrome_url_request_context.cc (right): http://codereview.chromium.org/345034/diff/5008/6011#newcode23 Line 23: #include "net/base/mock_host_resolver.h" Please don't define ForcedHostResolver in mock_host_resolver.h: ...
11 years, 1 month ago (2009-11-03 00:40:42 UTC) #2
Mike Belshe
http://codereview.chromium.org/345034/diff/5008/6011 File chrome/browser/net/chrome_url_request_context.cc (right): http://codereview.chromium.org/345034/diff/5008/6011#newcode23 Line 23: #include "net/base/mock_host_resolver.h" On 2009/11/03 00:40:42, eroman wrote: > ...
11 years, 1 month ago (2009-11-03 01:46:01 UTC) #3
eroman
http://codereview.chromium.org/345034/diff/4008/4011 File chrome/common/chrome_switches.cc (right): http://codereview.chromium.org/345034/diff/4008/4011#newcode565 Line 565: // Force all requests to go to this ...
11 years, 1 month ago (2009-11-03 04:24:06 UTC) #4
eroman
http://codereview.chromium.org/345034/diff/4008/4011 File chrome/common/chrome_switches.cc (right): http://codereview.chromium.org/345034/diff/4008/4011#newcode565 Line 565: // Force all requests to go to this ...
11 years, 1 month ago (2009-11-03 04:30:41 UTC) #5
Mike Belshe
http://codereview.chromium.org/345034/diff/4008/4011 File chrome/common/chrome_switches.cc (right): http://codereview.chromium.org/345034/diff/4008/4011#newcode565 Line 565: // Force all requests to go to this ...
11 years, 1 month ago (2009-11-03 05:01:09 UTC) #6
eroman
11 years, 1 month ago (2009-11-03 05:26:43 UTC) #7
lgtm

http://codereview.chromium.org/345034/diff/12005/9017
File chrome/browser/net/dns_global.cc (right):

http://codereview.chromium.org/345034/diff/12005/9017#newcode488
Line 488: std::string host =
for consistency may want to call this |host_and_port|.

http://codereview.chromium.org/345034/diff/12005/9012
File chrome/common/chrome_switches.cc (right):

http://codereview.chromium.org/345034/diff/12005/9012#newcode572
Line 572: //   --fixed-server=myserver:1000
update this to match the new name.

http://codereview.chromium.org/345034/diff/12005/9015
File net/base/fixed_host_resolver.h (right):

http://codereview.chromium.org/345034/diff/12005/9015#newcode15
Line 15: // A FixedHostResolver resovles all addresses to a single address.
typo -> resovles --> resolves.

Powered by Google App Engine
This is Rietveld 408576698