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

Issue 2928453002: Add MarkHttpAsDangerous test and correct other MarkNonSecureAs tests (Closed)

Created:
3 years, 6 months ago by elawrence
Modified:
3 years, 6 months ago
Reviewers:
Ilya Sherman, estark
CC:
chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Add MarkHttpAsDangerous test and correct other MarkNonSecureAs tests In ssl_browser_tests.cc, we have various tests that CreateFieldTrial with kMarkHttpAsDangerous. This field trial is overridden by the fieldtrial_testing_config.json settings and therefore these calls are ineffective. This CL overrides the fieldtrial_testing settings. We also didn't have a test that actually tests that the setting MarkHttpAsDangerous marks HTTP as dangerous. This CL adds such a test. BUG=729703 Review-Url: https://codereview.chromium.org/2928453002 Cr-Commit-Position: refs/heads/master@{#477456} Committed: https://chromium.googlesource.com/chromium/src/+/22f6d5b3389c0b066ae841d12889373818cabfc0

Patch Set 1 #

Total comments: 4

Patch Set 2 : Address review feedback #

Total comments: 6

Patch Set 3 : Change tests to use command line flag #

Unified diffs Side-by-side diffs Delta from patch set Stats (+40 lines, -28 lines) Patch
M chrome/browser/ssl/ssl_browser_tests.cc View 1 2 4 chunks +40 lines, -11 lines 0 comments Download
M testing/variations/fieldtrial_testing_config.json View 1 1 chunk +0 lines, -17 lines 0 comments Download

Messages

Total messages: 29 (9 generated)
elawrence
PTAL? I noticed these problems when adding tests for the upcoming HTTPBadForIncognito change.
3 years, 6 months ago (2017-06-05 20:36:36 UTC) #2
estark
lgtm if you delete the config from fieldtrial_testing_config.json as well. Thanks for catching and fixing ...
3 years, 6 months ago (2017-06-05 21:07:34 UTC) #3
elawrence
Thanks for the fast review! https://codereview.chromium.org/2928453002/diff/1/chrome/browser/ssl/ssl_browser_tests.cc File chrome/browser/ssl/ssl_browser_tests.cc (right): https://codereview.chromium.org/2928453002/diff/1/chrome/browser/ssl/ssl_browser_tests.cc#newcode702 chrome/browser/ssl/ssl_browser_tests.cc:702: class SSLUITestIgnoringFieldTrialConfig : public ...
3 years, 6 months ago (2017-06-05 21:42:44 UTC) #4
elawrence
https://codereview.chromium.org/2928453002/diff/1/chrome/browser/ssl/ssl_browser_tests.cc File chrome/browser/ssl/ssl_browser_tests.cc (right): https://codereview.chromium.org/2928453002/diff/1/chrome/browser/ssl/ssl_browser_tests.cc#newcode1324 chrome/browser/ssl/ssl_browser_tests.cc:1324: scoped_refptr<base::FieldTrial> trial = On 2017/06/05 21:07:33, estark wrote: > ...
3 years, 6 months ago (2017-06-05 21:44:51 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2928453002/20001
3 years, 6 months ago (2017-06-05 21:46:26 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/456028)
3 years, 6 months ago (2017-06-05 21:56:04 UTC) #10
elawrence
isherman@chromium.org: Please review changes in fieldtrial_testing_config.json? thanks!
3 years, 6 months ago (2017-06-05 22:08:54 UTC) #12
elawrence
isherman@chromium.org: Please review changes in fieldtrial_testing_config.json? thanks!
3 years, 6 months ago (2017-06-05 22:08:55 UTC) #13
Ilya Sherman
fieldtrial_testing_config.json lgtm
3 years, 6 months ago (2017-06-05 23:15:05 UTC) #14
Ilya Sherman
On 2017/06/05 23:15:05, Ilya Sherman wrote: > fieldtrial_testing_config.json lgtm Actually, sorry, not LGTM. Is this ...
3 years, 6 months ago (2017-06-05 23:16:24 UTC) #15
estark
On 2017/06/05 23:16:24, Ilya Sherman wrote: > On 2017/06/05 23:15:05, Ilya Sherman wrote: > > ...
3 years, 6 months ago (2017-06-05 23:18:12 UTC) #16
Ilya Sherman
On 2017/06/05 23:18:12, estark wrote: > On 2017/06/05 23:16:24, Ilya Sherman wrote: > > On ...
3 years, 6 months ago (2017-06-05 23:21:12 UTC) #17
elawrence
https://codereview.chromium.org/2928453002/diff/20001/chrome/browser/ssl/ssl_browser_tests.cc File chrome/browser/ssl/ssl_browser_tests.cc (right): https://codereview.chromium.org/2928453002/diff/20001/chrome/browser/ssl/ssl_browser_tests.cc#newcode709 chrome/browser/ssl/ssl_browser_tests.cc:709: variations::switches::kDisableFieldTrialTestingConfig); On 2017/06/05 23:21:12, Ilya Sherman wrote: > Is ...
3 years, 6 months ago (2017-06-06 01:05:18 UTC) #18
Ilya Sherman
https://codereview.chromium.org/2928453002/diff/20001/chrome/browser/ssl/ssl_browser_tests.cc File chrome/browser/ssl/ssl_browser_tests.cc (right): https://codereview.chromium.org/2928453002/diff/20001/chrome/browser/ssl/ssl_browser_tests.cc#newcode709 chrome/browser/ssl/ssl_browser_tests.cc:709: variations::switches::kDisableFieldTrialTestingConfig); On 2017/06/06 01:05:17, elawrence wrote: > On 2017/06/05 ...
3 years, 6 months ago (2017-06-06 05:51:14 UTC) #19
elawrence
https://codereview.chromium.org/2928453002/diff/20001/chrome/browser/ssl/ssl_browser_tests.cc File chrome/browser/ssl/ssl_browser_tests.cc (right): https://codereview.chromium.org/2928453002/diff/20001/chrome/browser/ssl/ssl_browser_tests.cc#newcode709 chrome/browser/ssl/ssl_browser_tests.cc:709: variations::switches::kDisableFieldTrialTestingConfig); > these tests are opting out of coverage ...
3 years, 6 months ago (2017-06-06 19:50:02 UTC) #20
elawrence
I've switched over to using the command line flags to control the feature. Please have ...
3 years, 6 months ago (2017-06-06 21:48:07 UTC) #22
Ilya Sherman
On 2017/06/06 21:48:07, elawrence wrote: > I've switched over to using the command line flags ...
3 years, 6 months ago (2017-06-06 21:56:51 UTC) #23
estark
Still lgtm. This field trial predates the Feature API but agree that we should switch ...
3 years, 6 months ago (2017-06-06 22:08:29 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2928453002/60001
3 years, 6 months ago (2017-06-06 22:14:05 UTC) #26
commit-bot: I haz the power
3 years, 6 months ago (2017-06-06 23:15:24 UTC) #29
Message was sent while issue was closed.
Committed patchset #3 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/22f6d5b3389c0b066ae841d12889...

Powered by Google App Engine
This is Rietveld 408576698