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

Issue 2651673002: Reland "Split BrowsingDataRemoverTest into two tests for Impl and Delegate." (Closed)

Created:
3 years, 11 months ago by msramek
Modified:
3 years, 11 months ago
Reviewers:
Bernhard Bauer, jkrcal
CC:
chromium-reviews, markusheintz_, msramek+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Reland "Split BrowsingDataRemoverTest into two tests for Impl and Delegate." This relands https://codereview.chromium.org/2641853002/ which was reverted in https://codereview.chromium.org/2641853002/. Patchset #1 is the exact copy of the original CL. Patchset #2 is the fix. The breakage occured in the test ChromeBrowsingDataRemoverDelegateTest.RemoveMultipleTypesHistoryProhibited and was not spotted locally, as this test is behind the ifdef: "defined(NDEBUG) && !defined(DCHECK_ALWAYS_ON)" The problem was that the helper class StoragePartitionRemovalData was missing, as it had been moved to BrowsingDataRemoverImplTest during the split. To avoid copying the class into this test file, we changed the mask from COOKIES to PASSWORDS (which, unlike COOKIES, do not live in StoragePartition). This does not affect the validy of the test, as its purpose is to verify that if history deletion is prohibited and HISTORY is present in the mask, it is not deleted, but other types still are. BUG=668114 Review-Url: https://codereview.chromium.org/2651673002 Cr-Commit-Position: refs/heads/master@{#445402} Committed: https://chromium.googlesource.com/chromium/src/+/44727f4d42756a3d89e1466ba662548e40c752c8

Patch Set 1 : Revert of revert #

Patch Set 2 : Fix. #

Total comments: 2

Patch Set 3 : Added a TODO. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1844 lines, -4668 lines) Patch
M chrome/browser/browsing_data/browsing_data_remover_impl.h View 2 chunks +3 lines, -2 lines 0 comments Download
A + chrome/browser/browsing_data/browsing_data_remover_impl_unittest.cc View 1 47 chunks +108 lines, -1527 lines 0 comments Download
D chrome/browser/browsing_data/browsing_data_remover_unittest.cc View 1 chunk +0 lines, -3138 lines 0 comments Download
A chrome/browser/browsing_data/chrome_browsing_data_remover_delegate_unittest.cc View 1 2 1 chunk +1731 lines, -0 lines 0 comments Download
M chrome/test/BUILD.gn View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 30 (24 generated)
msramek
I'm relanding https://codereview.chromium.org/2641853002/ with the broken test fixed. Bernhard, can you PTAL? The CL description ...
3 years, 11 months ago (2017-01-23 15:49:43 UTC) #18
msramek
I also added ChromeOS trybots. Note that two of them are red already, but those ...
3 years, 11 months ago (2017-01-23 15:54:32 UTC) #19
Bernhard Bauer
LGTM, but the underlying issue seems somewhat ugly to me... I know that's not your ...
3 years, 11 months ago (2017-01-23 16:10:47 UTC) #20
msramek
Thanks again, Bernhard! I added a TODO. A success boolean value sounds reasonable here; in ...
3 years, 11 months ago (2017-01-23 16:43:31 UTC) #23
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/2651673002/60001
3 years, 11 months ago (2017-01-23 16:44:06 UTC) #27
commit-bot: I haz the power
3 years, 11 months ago (2017-01-23 17:50:14 UTC) #30
Message was sent while issue was closed.
Committed patchset #3 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/44727f4d42756a3d89e1466ba662...

Powered by Google App Engine
This is Rietveld 408576698