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

Issue 2698473004: Split FaviconService and FaviconServiceImpl. (Closed)

Created:
3 years, 10 months ago by mastiz
Modified:
3 years, 10 months ago
CC:
chromium-reviews, ntp-dev+reviews_chromium.org, pkl (ping after 24h if needed), browser-components-watch_chromium.org, noyau+watch_chromium.org, marq+watch_chromium.org, sdefresne+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Split FaviconService and FaviconServiceImpl Many existing tests inject test doubles by subclassing from FaviconServiceImpl, or simply inject a null service and implement special-handling in the production code. In this patch, some simple cases are migrated to non-partial mocks. Follow-up patches will address the more advanced cases. BUG=694312 Review-Url: https://codereview.chromium.org/2698473004 Cr-Commit-Position: refs/heads/master@{#451982} Committed: https://chromium.googlesource.com/chromium/src/+/d7bd35142ea07f588ba2decdd4c184d68e34d35a

Patch Set 1 #

Patch Set 2 : Updated ContentFaviconDriverTest #

Patch Set 3 : WIP iOS. #

Patch Set 4 : WIP iOS. #

Patch Set 5 : WIP iOS. #

Patch Set 6 : WIP iOS. #

Patch Set 7 : Revert requiring non-null service for FaviconHandler. #

Patch Set 8 : Revert requiring non-null service for FaviconHandler. #

Total comments: 8

Patch Set 9 : Fix failing Mac tests. #

Patch Set 10 : Add missing build dependency. #

Patch Set 11 : Add missing build dependency. #

Patch Set 12 : Fix tests due to missing MessageLoop #

Patch Set 13 : Fix iOS tests. #

Patch Set 14 : Fix iOS tests. #

Patch Set 15 : Fix iOS tests. #

Patch Set 16 : Rebase and minor renames. #

Patch Set 17 : Rebased. #

Patch Set 18 : Revert changes in ios/.../history_collection_view_controller_unittest.mm #

Unified diffs Side-by-side diffs Delta from patch set Stats (+829 lines, -758 lines) Patch
M chrome/browser/favicon/favicon_service_factory.cc View 1 2 3 4 5 6 7 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/history_menu_bridge_unittest.mm View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M components/favicon/content/BUILD.gn View 1 1 chunk +2 lines, -0 lines 0 comments Download
M components/favicon/content/content_favicon_driver_unittest.cc View 1 2 3 4 5 6 7 8 4 chunks +22 lines, -44 lines 0 comments Download
M components/favicon/core/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 2 chunks +7 lines, -0 lines 0 comments Download
M components/favicon/core/DEPS View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M components/favicon/core/favicon_service.h View 10 chunks +33 lines, -89 lines 0 comments Download
M components/favicon/core/favicon_service.cc View 2 chunks +1 line, -336 lines 0 comments Download
A components/favicon/core/favicon_service_impl.h View 1 2 3 4 5 6 7 8 1 chunk +150 lines, -0 lines 0 comments Download
A components/favicon/core/favicon_service_impl.cc View 1 chunk +295 lines, -0 lines 0 comments Download
A components/favicon/core/favicon_service_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +46 lines, -0 lines 0 comments Download
M components/favicon/core/large_icon_service.h View 1 chunk +0 lines, -3 lines 0 comments Download
M components/favicon/core/large_icon_service_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 13 chunks +43 lines, -104 lines 0 comments Download
A components/favicon/core/test/BUILD.gn View 1 chunk +19 lines, -0 lines 0 comments Download
A components/favicon/core/test/mock_favicon_service.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +112 lines, -0 lines 0 comments Download
A components/favicon/core/test/mock_favicon_service.cc View 1 chunk +13 lines, -0 lines 0 comments Download
M components/history/core/browser/history_service.h View 2 chunks +2 lines, -2 lines 0 comments Download
M components/ntp_tiles/icon_cacher_impl_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M ios/chrome/app/spotlight/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -0 lines 0 comments Download
M ios/chrome/app/spotlight/spotlight_manager_unittest.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 4 chunks +13 lines, -45 lines 0 comments Download
M ios/chrome/browser/favicon/favicon_service_factory.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +2 lines, -2 lines 0 comments Download
M ios/chrome/browser/ui/history/BUILD.gn View 2 chunks +2 lines, -0 lines 0 comments Download
M ios/chrome/browser/ui/history/favicon_view_provider_unittest.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 4 chunks +35 lines, -65 lines 0 comments Download
M ios/chrome/browser/ui/reading_list/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -0 lines 0 comments Download
M ios/chrome/browser/ui/reading_list/reading_list_collection_view_controller_unittest.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 4 chunks +10 lines, -32 lines 0 comments Download
M ios/chrome/browser/ui/reading_list/reading_list_coordinator_unittest.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 4 chunks +11 lines, -32 lines 0 comments Download

Messages

Total messages: 97 (72 generated)
mastiz
Please don't pay too much attention to tests in content_favicon_driver_unittest.cc, they will likely be replaced ...
3 years, 10 months ago (2017-02-15 19:43:32 UTC) #31
pkotwicz
LGTM with nits https://codereview.chromium.org/2698473004/diff/130001/components/favicon/content/content_favicon_driver_unittest.cc File components/favicon/content/content_favicon_driver_unittest.cc (right): https://codereview.chromium.org/2698473004/diff/130001/components/favicon/content/content_favicon_driver_unittest.cc#newcode97 components/favicon/content/content_favicon_driver_unittest.cc:97: These tests were written with the ...
3 years, 10 months ago (2017-02-16 04:07:27 UTC) #32
mastiz
pkotwicz@: thanks for the review! noyau@: please review ios/ https://codereview.chromium.org/2698473004/diff/130001/components/favicon/content/content_favicon_driver_unittest.cc File components/favicon/content/content_favicon_driver_unittest.cc (right): https://codereview.chromium.org/2698473004/diff/130001/components/favicon/content/content_favicon_driver_unittest.cc#newcode97 components/favicon/content/content_favicon_driver_unittest.cc:97: ...
3 years, 10 months ago (2017-02-16 09:46:26 UTC) #46
mastiz
rsesek@chromium.org: Please review changes in chrome/browser/ui/cocoa/history_menu_bridge_unittest.mm
3 years, 10 months ago (2017-02-16 09:50:59 UTC) #48
Robert Sesek
FaviconServiceImplTest.ShouldCacheUnableToDownloadFavicons seems to be failing on Mac still.
3 years, 10 months ago (2017-02-16 14:59:12 UTC) #51
mastiz
noyau@: friendly ping for ios/, thanks!
3 years, 10 months ago (2017-02-17 09:42:55 UTC) #54
noyau (Ping after 24h)
ios lgtm.
3 years, 10 months ago (2017-02-17 09:58:44 UTC) #55
mastiz
sfiera@chromium.org: Please review changes in components/ntp_tiles
3 years, 10 months ago (2017-02-17 10:01:19 UTC) #57
sfiera
ntp_tiles LGTM
3 years, 10 months ago (2017-02-17 10:05:02 UTC) #58
mastiz
On 2017/02/16 14:59:12, Robert Sesek wrote: > FaviconServiceImplTest.ShouldCacheUnableToDownloadFavicons seems to be failing > on Mac ...
3 years, 10 months ago (2017-02-17 10:11:03 UTC) #59
mastiz
sdefresne@chromium.org: Please review changes in components/history/core/browser/history_service.h
3 years, 10 months ago (2017-02-17 10:13:08 UTC) #61
sdefresne
components/history/ lgtm
3 years, 10 months ago (2017-02-17 10:38:04 UTC) #62
Robert Sesek
cocoa/ LGTM
3 years, 10 months ago (2017-02-17 15:49:41 UTC) #65
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/2698473004/210001
3 years, 10 months ago (2017-02-17 16:08:45 UTC) #68
commit-bot: I haz the power
Try jobs failed on following builders: ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/builds/157410)
3 years, 10 months ago (2017-02-17 19:47:21 UTC) #70
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/2698473004/210001
3 years, 10 months ago (2017-02-17 20:24:43 UTC) #72
mastiz
FYI, I rebased on https://codereview.chromium.org/2703003002 and renamed the introduced gmock action to avoid the need ...
3 years, 10 months ago (2017-02-21 13:38:54 UTC) #77
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/2698473004/290001
3 years, 10 months ago (2017-02-21 13:39:27 UTC) #80
commit-bot: I haz the power
Try jobs failed on following builders: ios-simulator-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator-xcode-clang/builds/46214) mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, ...
3 years, 10 months ago (2017-02-21 13:42:07 UTC) #82
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/2698473004/310001
3 years, 10 months ago (2017-02-21 14:39:23 UTC) #85
commit-bot: I haz the power
Try jobs failed on following builders: ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/builds/158824)
3 years, 10 months ago (2017-02-21 15:38:52 UTC) #87
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/2698473004/330001
3 years, 10 months ago (2017-02-21 21:21:11 UTC) #90
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_linux on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL) chromeos_amd64-generic_chromium_compile_only_ng on ...
3 years, 10 months ago (2017-02-21 23:25:53 UTC) #92
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/2698473004/330001
3 years, 10 months ago (2017-02-22 06:55:38 UTC) #94
commit-bot: I haz the power
3 years, 10 months ago (2017-02-22 10:43:33 UTC) #97
Message was sent while issue was closed.
Committed patchset #18 (id:330001) as
https://chromium.googlesource.com/chromium/src/+/d7bd35142ea07f588ba2decdd4c1...

Powered by Google App Engine
This is Rietveld 408576698