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

Issue 4429001: SSLUITest's work with ephemeral port testserver. (Closed)

Created:
10 years, 1 month ago by cbentzel
Modified:
9 years, 7 months ago
CC:
chromium-reviews, darin-cc_chromium.org, cbentzel+watch_chromium.org, Paweł Hajdan Jr., pam+watch_chromium.org, ben+cc_chromium.org
Visibility:
Public.

Description

SSLUITest's work with ephemeral port testserver. Many of the tests depend on a file served from one server to reference resources on a different server to exercise mixed content warnings. To handle this, I added replace_orig and replace_new query parameters to /files/ based paths which do simple string substitution. BUG=56814 TEST=browser_tests --gtest_filter="*SSLUI*" Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=65311

Patch Set 1 #

Total comments: 6

Patch Set 2 : Limited testserver changes to file handler only, improved naming. #

Total comments: 2

Patch Set 3 : Nit-fixing. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+109 lines, -44 lines) Patch
M chrome/browser/ssl/ssl_browser_tests.cc View 1 2 11 chunks +69 lines, -20 lines 0 comments Download
M chrome/test/data/ssl/page_displays_insecure_content.html View 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/data/ssl/page_runs_insecure_content.html View 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/data/ssl/page_with_dynamic_insecure_content.html View 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/data/ssl/page_with_unsafe_contents.html View 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/test/data/ssl/page_with_unsafe_popup.html View 1 chunk +1 line, -1 line 0 comments Download
M net/tools/testserver/testserver.py View 1 2 4 chunks +33 lines, -17 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
cbentzel
I'll remove some of the additional urlparser usage in testserver into a separate CL to ...
10 years, 1 month ago (2010-11-03 22:02:20 UTC) #1
Paweł Hajdan Jr.
I have not commented testserver.py yet, I'm just not sure which hunks are parts of ...
10 years, 1 month ago (2010-11-04 07:29:30 UTC) #2
cbentzel
I isolated changes in testserver.py to file handler only, and changed the vague "src" and ...
10 years, 1 month ago (2010-11-04 20:40:18 UTC) #3
Paweł Hajdan Jr.
10 years, 1 month ago (2010-11-05 14:58:06 UTC) #4
LGTM with nits.

http://codereview.chromium.org/4429001/diff/1/2
File chrome/browser/ssl/ssl_browser_tests.cc (right):

http://codereview.chromium.org/4429001/diff/1/2#newcode160
chrome/browser/ssl/ssl_browser_tests.cc:160: const std::string replacement_path
= GetReplacementPath(
On 2010/11/04 20:40:19, cbentzel wrote:
> On 2010/11/04 07:29:31, Paweł Hajdan Jr. wrote:
> > nit: Either follow the style guide for constants (kReplacementPath), or
remove
> > const. I'm fine with either.
> 
> The style guide mentions kReplacementPath format for compile-time constants
> only, no mention of run-time constants.
> 
> http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml#Constant_Names

Hehe, okay. Probably not worth to argue, but still - could you just remove the
const? I think that would be more consistent with rest of the code.

http://codereview.chromium.org/4429001/diff/6001/7007
File net/tools/testserver/testserver.py (right):

http://codereview.chromium.org/4429001/diff/6001/7007#newcode580
net/tools/testserver/testserver.py:580: a new string is returned with all
occasions of the 'src' value replaced
nit: Update these parts of the comments too. There is no src and dst now.

http://codereview.chromium.org/4429001/diff/6001/7007#newcode581
net/tools/testserver/testserver.py:581: by the 'dst value. This is a simple
string substitution, not a structured
nit: "This is a simple string substitution, not a structured replacement." seems
a bit confusing to me. I don't know what "structured replacement" would mean. I
suggest just removing that sentence.

Powered by Google App Engine
This is Rietveld 408576698