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

Issue 2641853002: 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
CC:
chromium-reviews, markusheintz_, msramek+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Split BrowsingDataRemoverTest into two tests for Impl and Delegate. BrowsingDataRemoverImplTest will eventually be moved to content/ together with BrowsingDataRemoverImpl. All tests and their helper classes have been moved to one or the other unittest based on whether the tested datatype is present in content/ or only in chrome/. A few changes had to be made: - The *ImplTest class was converted to use BrowserContext instead of TestingProfile, as it will use either BrowserContext or TestingBrowserContext after it's moved to content/. - URLRequestContext is now retrieved through StoragePartition where it originally was directly retrieved through TestingProfile. This is because BrowserContext does not directly expose a GetURLRequestContext method. - The downloads test also tested the behavior of ChromeDownloadManagerDelegate. As downloads are a content/ datatype, the main part of the test was moved to *ImplTest, but a section testing ChromeDownloadManagerDelegate was moved to *DelegateTest. There are a few dependencies that were not yet removed in this CL, but will be removed in a followup: 1. *DelegateTest needs to see and be friend of BrowsingDataRemoverImpl to test the usage of BrowsingDataFilterBuilder. To fix this, we need to improve BrowsingDataFilterBuilder first (uploaded as https://codereview.chromium.org/2647683002/). 2. *ImplTest refers to extensions, which are not known to content/. This is caused by BrowsingDataHelper::EXTENSION mask which is respected in StoragePartition deletions. To fix this, BrowsingDataHelper must be improved first (also coming soon). 3. *ImplTest works with BrowsingContext, but needs to use a TestingProfile to create an instance of BrowsingDataRemoverImpl. This is because the factory does not accept a TestingBrowsingContext. This will be fixed naturally when we move BrowsingDataRemoverImpl to content/ and replace the factory with something like ::CreateFor(BrowsingContext*). BUG=668114 Review-Url: https://codereview.chromium.org/2641853002 Cr-Commit-Position: refs/heads/master@{#445367} Committed: https://chromium.googlesource.com/chromium/src/+/29b98cde67e8350d241fad23847ef72fbb939de5

Patch Set 1 #

Patch Set 2 : Update. #

Total comments: 2

Patch Set 3 : Updated year #

Unified diffs Side-by-side diffs Delta from patch set Stats (+420 lines, -6380 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 2 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 47 chunks +307 lines, -1712 lines 0 comments Download
M chrome/test/BUILD.gn View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 28 (18 generated)
msramek
Hi Bernhard! Please have a look! Like last time, I tried to minimize the diff ...
3 years, 11 months ago (2017-01-19 09:48:07 UTC) #11
Bernhard Bauer
LGTM Sorry, I added a draft comment, which pushed this CL out of the incoming ...
3 years, 11 months ago (2017-01-23 09:51:41 UTC) #13
msramek
Thanks, Bernhard! https://codereview.chromium.org/2641853002/diff/20001/chrome/browser/browsing_data/browsing_data_remover_impl_unittest.cc File chrome/browser/browsing_data/browsing_data_remover_impl_unittest.cc (right): https://codereview.chromium.org/2641853002/diff/20001/chrome/browser/browsing_data/browsing_data_remover_impl_unittest.cc#newcode1 chrome/browser/browsing_data/browsing_data_remover_impl_unittest.cc:1: // Copyright 2012 The Chromium Authors. All ...
3 years, 11 months ago (2017-01-23 09:59:38 UTC) #14
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/2641853002/40001
3 years, 11 months ago (2017-01-23 10:00:01 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/352897)
3 years, 11 months ago (2017-01-23 11:51:53 UTC) #19
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/2641853002/40001
3 years, 11 months ago (2017-01-23 11:53:39 UTC) #21
commit-bot: I haz the power
Committed patchset #3 (id:40001) as https://chromium.googlesource.com/chromium/src/+/29b98cde67e8350d241fad23847ef72fbb939de5
3 years, 11 months ago (2017-01-23 12:48:34 UTC) #24
jkrcal
A revert of this CL (patchset #3 id:40001) has been created in https://codereview.chromium.org/2648223003/ by jkrcal@chromium.org. ...
3 years, 11 months ago (2017-01-23 13:10:57 UTC) #25
findit-for-me
FYI: Findit identified this CL at revision 445367 as the culprit for failures in the ...
3 years, 11 months ago (2017-01-23 13:23:51 UTC) #26
msramek
3 years, 11 months ago (2017-01-23 17:51:28 UTC) #28
Message was sent while issue was closed.
Relanded as https://codereview.chromium.org/2651673002/.

Powered by Google App Engine
This is Rietveld 408576698