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

Issue 1919773005: Fix SecurityStyleChangedObserverNonsecureConnection test (Closed)

Created:
4 years, 8 months ago by estark
Modified:
4 years, 7 months ago
Reviewers:
msw, mmenke, davidben
CC:
chromium-reviews, caseq
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix SecurityStyleChangedObserverNonsecureConnection test This test originally tried to use a net::URLRequestMockHTTPJob subclass (URLRequestNonsecureConnection) to mock a connection with obsolete TLS settings, but due to some missing boilerplate, URLRequestNonsecureConnections were never actually used, and the test was rather nonsensical. URLRequestNonsecureConnection was removed as dead code in https://codereview.chromium.org/1899003002/. This CL adds URLRequestNonsecureConnection back in and adds the missing boilerplate so that this class is actually used. The test now meaningfully tests what it's supposed to test. BUG=604629 Committed: https://crrev.com/22c33fdbe07b62bbdcd4c9c36f8e5fbfa3820bed Cr-Commit-Position: refs/heads/master@{#390800}

Patch Set 1 #

Total comments: 12

Patch Set 2 : msw comments #

Patch Set 3 : fix cert import on non-IO thread #

Total comments: 21

Patch Set 4 : mmenke comments #

Total comments: 12

Patch Set 5 : davidben comments #

Patch Set 6 : rebase #

Patch Set 7 : another const scoped_refptr& #

Unified diffs Side-by-side diffs Delta from patch set Stats (+117 lines, -7 lines) Patch
M chrome/browser/ui/browser_browsertest.cc View 1 2 3 4 5 6 4 chunks +117 lines, -7 lines 0 comments Download

Messages

Total messages: 21 (8 generated)
estark
msw: PTAL
4 years, 8 months ago (2016-04-26 23:35:38 UTC) #2
msw
I'm not the most knowledgeable reviewer in this area. If possible, I suggest pinging someone ...
4 years, 8 months ago (2016-04-27 02:04:51 UTC) #3
estark
Thanks, msw. FWIW, this code is very awkwardly placed in chrome/browser/ui and we will be ...
4 years, 7 months ago (2016-04-27 19:02:42 UTC) #7
msw
lgtm, but review from mmenke is recommended.
4 years, 7 months ago (2016-04-27 19:54:07 UTC) #8
mmenke
Sorry to punt the CL yet again, but I think it really needs an SSL ...
4 years, 7 months ago (2016-04-27 20:19:44 UTC) #9
estark
David, can you please take a look at this? (it's a test for part of ...
4 years, 7 months ago (2016-04-27 20:34:30 UTC) #11
estark
https://codereview.chromium.org/1919773005/diff/80001/chrome/browser/ui/browser_browsertest.cc File chrome/browser/ui/browser_browsertest.cc (right): https://codereview.chromium.org/1919773005/diff/80001/chrome/browser/ui/browser_browsertest.cc#newcode3106 chrome/browser/ui/browser_browsertest.cc:3106: class URLRequestNonsecureConnection : public net::URLRequestMockHTTPJob { On 2016/04/27 20:19:44, ...
4 years, 7 months ago (2016-04-27 22:39:36 UTC) #12
davidben
Sorry about the delay. This past week has been constant fire-fighting. :-/ lgtm with some ...
4 years, 7 months ago (2016-04-29 21:22:49 UTC) #13
mmenke
LGTM as well. https://codereview.chromium.org/1919773005/diff/100001/chrome/browser/ui/browser_browsertest.cc File chrome/browser/ui/browser_browsertest.cc (right): https://codereview.chromium.org/1919773005/diff/100001/chrome/browser/ui/browser_browsertest.cc#newcode3143 chrome/browser/ui/browser_browsertest.cc:3143: class URLRequestNonsecureInterceptor : public net::URLRequestInterceptor { ...
4 years, 7 months ago (2016-04-29 21:26:49 UTC) #14
estark
Thanks all for the reviews. https://codereview.chromium.org/1919773005/diff/100001/chrome/browser/ui/browser_browsertest.cc File chrome/browser/ui/browser_browsertest.cc (right): https://codereview.chromium.org/1919773005/diff/100001/chrome/browser/ui/browser_browsertest.cc#newcode3115 chrome/browser/ui/browser_browsertest.cc:3115: const scoped_refptr<base::TaskRunner>& task_runner) On ...
4 years, 7 months ago (2016-04-29 22:09:56 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1919773005/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1919773005/160001
4 years, 7 months ago (2016-04-29 22:28:58 UTC) #18
commit-bot: I haz the power
Committed patchset #7 (id:160001)
4 years, 7 months ago (2016-04-29 23:25:53 UTC) #19
commit-bot: I haz the power
4 years, 7 months ago (2016-04-30 17:30:04 UTC) #20
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/22c33fdbe07b62bbdcd4c9c36f8e5fbfa3820bed
Cr-Commit-Position: refs/heads/master@{#390800}

Powered by Google App Engine
This is Rietveld 408576698