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

Issue 330753002: Browser and unit tests for the SB interstitial V3 (Closed)

Created:
6 years, 6 months ago by felt
Modified:
6 years, 6 months ago
Reviewers:
Bernhard Bauer, mattm
CC:
chromium-reviews
Project:
chromium
Visibility:
Public.

Description

This makes the Safe Browsing interstitial unit & browser tests work for both the V2 and V3 versions. For the unit tests, I did this by using typed tests. Typed tests aren't supported for browser tests, so for the browser tests I moved the tests into methods that could be invoked twice. Also includes a small bugfix in a string that was causing a failure. BUG=381260 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=277749

Patch Set 1 #

Patch Set 2 : Locally passing unit tests #

Patch Set 3 : Refactored browser tests as well #

Patch Set 4 : Bugfix to make tests pass #

Patch Set 5 : Removed unneeded this-> #

Total comments: 4

Patch Set 6 : Refactored browser tests with parameterization #

Patch Set 7 : Merged redundancy #

Total comments: 4

Patch Set 8 : Added asterisk #

Patch Set 9 : Mod regex #

Patch Set 10 : Rebased #

Patch Set 11 : Fixed rebase-induced bugs #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+457 lines, -273 lines) Patch
M chrome/app/generated_resources.grd View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/ssl/interstitial_v2.html View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/ssl/interstitial_v2.js View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_blocking_page.h View 1 2 3 4 5 6 7 8 9 3 chunks +22 lines, -3 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_blocking_page.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +5 lines, -18 lines 2 comments Download
M chrome/browser/safe_browsing/safe_browsing_blocking_page_test.cc View 1 2 3 4 5 6 7 8 9 10 20 chunks +224 lines, -81 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_blocking_page_unittest.cc View 1 2 3 4 5 6 7 8 9 10 10 chunks +201 lines, -166 lines 2 comments Download
M tools/valgrind/gtest_exclude/browser_tests.gtest-memcheck.txt View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
felt
Hi Matt, here are tests for the V3. PTAL.
6 years, 6 months ago (2014-06-13 18:46:43 UTC) #1
felt
On 2014/06/13 18:46:43, felt wrote: > Hi Matt, here are tests for the V3. PTAL. ...
6 years, 6 months ago (2014-06-13 20:04:54 UTC) #2
mattm
https://codereview.chromium.org/330753002/diff/80001/chrome/browser/safe_browsing/safe_browsing_blocking_page_test.cc File chrome/browser/safe_browsing/safe_browsing_blocking_page_test.cc (right): https://codereview.chromium.org/330753002/diff/80001/chrome/browser/safe_browsing/safe_browsing_blocking_page_test.cc#newcode673 chrome/browser/safe_browsing/safe_browsing_blocking_page_test.cc:673: // TEST CASES. Could you use parameterized tests to ...
6 years, 6 months ago (2014-06-13 20:20:31 UTC) #3
felt
https://codereview.chromium.org/330753002/diff/80001/chrome/browser/safe_browsing/safe_browsing_blocking_page_test.cc File chrome/browser/safe_browsing/safe_browsing_blocking_page_test.cc (right): https://codereview.chromium.org/330753002/diff/80001/chrome/browser/safe_browsing/safe_browsing_blocking_page_test.cc#newcode673 chrome/browser/safe_browsing/safe_browsing_blocking_page_test.cc:673: // TEST CASES. On 2014/06/13 20:20:31, mattm wrote: > ...
6 years, 6 months ago (2014-06-14 01:08:04 UTC) #4
mattm
https://codereview.chromium.org/330753002/diff/120001/chrome/browser/safe_browsing/safe_browsing_blocking_page_test.cc File chrome/browser/safe_browsing/safe_browsing_blocking_page_test.cc (right): https://codereview.chromium.org/330753002/diff/120001/chrome/browser/safe_browsing/safe_browsing_blocking_page_test.cc#newcode937 chrome/browser/safe_browsing/safe_browsing_blocking_page_test.cc:937: SendCommand("proceed"); Why is this SendCommand instead of ClickAndWaitForDetach? https://codereview.chromium.org/330753002/diff/120001/tools/valgrind/gtest_exclude/browser_tests.gtest-memcheck.txt ...
6 years, 6 months ago (2014-06-14 02:00:20 UTC) #5
felt
https://codereview.chromium.org/330753002/diff/120001/chrome/browser/safe_browsing/safe_browsing_blocking_page_test.cc File chrome/browser/safe_browsing/safe_browsing_blocking_page_test.cc (right): https://codereview.chromium.org/330753002/diff/120001/chrome/browser/safe_browsing/safe_browsing_blocking_page_test.cc#newcode937 chrome/browser/safe_browsing/safe_browsing_blocking_page_test.cc:937: SendCommand("proceed"); On 2014/06/14 02:00:20, mattm wrote: > Why is ...
6 years, 6 months ago (2014-06-14 02:10:27 UTC) #6
mattm
lgtm
6 years, 6 months ago (2014-06-16 20:13:26 UTC) #7
felt
The CQ bit was checked by felt@chromium.org
6 years, 6 months ago (2014-06-17 02:38:38 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/felt@chromium.org/330753002/200001
6 years, 6 months ago (2014-06-17 02:41:11 UTC) #9
felt
The CQ bit was unchecked by felt@chromium.org
6 years, 6 months ago (2014-06-17 05:47:22 UTC) #10
felt
hi bernhard, can I get an owners review for two very small changes to chrome/browser/resources/ssl/interstitial_v2.*?
6 years, 6 months ago (2014-06-17 05:48:23 UTC) #11
Bernhard Bauer
c/b/resources LGTM
6 years, 6 months ago (2014-06-17 08:22:44 UTC) #12
felt
The CQ bit was checked by felt@chromium.org
6 years, 6 months ago (2014-06-17 13:09:14 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/felt@chromium.org/330753002/200001
6 years, 6 months ago (2014-06-17 13:09:43 UTC) #14
commit-bot: I haz the power
Change committed as 277749
6 years, 6 months ago (2014-06-17 13:14:32 UTC) #15
mattm
https://codereview.chromium.org/330753002/diff/200001/chrome/browser/safe_browsing/safe_browsing_blocking_page.cc File chrome/browser/safe_browsing/safe_browsing_blocking_page.cc (right): https://codereview.chromium.org/330753002/diff/200001/chrome/browser/safe_browsing/safe_browsing_blocking_page.cc#newcode498 chrome/browser/safe_browsing/safe_browsing_blocking_page.cc:498: LOG(ERROR) << "5"; looks like some debug logging snuck ...
6 years, 6 months ago (2014-06-17 18:38:49 UTC) #16
felt
https://codereview.chromium.org/330753002/diff/200001/chrome/browser/safe_browsing/safe_browsing_blocking_page_unittest.cc File chrome/browser/safe_browsing/safe_browsing_blocking_page_unittest.cc (right): https://codereview.chromium.org/330753002/diff/200001/chrome/browser/safe_browsing/safe_browsing_blocking_page_unittest.cc#newcode714 chrome/browser/safe_browsing/safe_browsing_blocking_page_unittest.cc:714: DISABLED_MalwareReportsTransitionEnabled) { On 2014/06/17 18:38:48, mattm wrote: > and ...
6 years, 6 months ago (2014-06-17 18:40:14 UTC) #17
felt
6 years, 6 months ago (2014-06-17 18:42:25 UTC) #18
Message was sent while issue was closed.
https://codereview.chromium.org/330753002/diff/200001/chrome/browser/safe_bro...
File chrome/browser/safe_browsing/safe_browsing_blocking_page.cc (right):

https://codereview.chromium.org/330753002/diff/200001/chrome/browser/safe_bro...
chrome/browser/safe_browsing/safe_browsing_blocking_page.cc:498: LOG(ERROR) <<
"5";
On 2014/06/17 18:38:48, mattm wrote:
> looks like some debug logging snuck in before this was committed

pls review fix: https://codereview.chromium.org/338653004/

Powered by Google App Engine
This is Rietveld 408576698