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

Issue 2732653002: Add favicon integration tests for FaviconDriverImpl (Closed)

Created:
3 years, 9 months ago by mastiz
Modified:
3 years, 3 months ago
Reviewers:
pkotwicz
CC:
chromium-reviews, cbentzel+watch_chromium.org, Eugene But (OOO till 7-30), tburkard+watch_chromium.org, ios-reviews+web_chromium.org, jam, gavinp+prer_chromium.org, darin-cc_chromium.org, ios-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add favicon integration tests for FaviconDriverImpl The goal is to have high-level integration tests that use the actual backends (real FaviconService, real HistoryService), and make sure the caching of favicons works as expected for popular configurations (for which, rather popular sites have been used as examples). While doing this, a few unused methods are removed from FaviconDriver. BUG=694312

Patch Set 1 #

Patch Set 2 : Add favicon integration tests for FaviconDriverImpl #

Patch Set 3 : Added verification of color #

Unified diffs Side-by-side diffs Delta from patch set Stats (+422 lines, -71 lines) Patch
M chrome/browser/prerender/prerender_browsertest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M components/favicon/content/content_favicon_driver.h View 1 chunk +0 lines, -2 lines 0 comments Download
M components/favicon/content/content_favicon_driver.cc View 3 chunks +18 lines, -23 lines 0 comments Download
M components/favicon/core/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M components/favicon/core/favicon_driver.h View 1 chunk +0 lines, -7 lines 0 comments Download
M components/favicon/core/favicon_driver_impl.h View 1 chunk +2 lines, -1 line 0 comments Download
M components/favicon/core/favicon_driver_impl.cc View 2 chunks +6 lines, -11 lines 0 comments Download
A components/favicon/core/favicon_driver_impl_unittest.cc View 1 2 1 chunk +346 lines, -0 lines 0 comments Download
M components/favicon/ios/web_favicon_driver.h View 1 chunk +0 lines, -2 lines 0 comments Download
M components/favicon/ios/web_favicon_driver.mm View 3 chunks +10 lines, -14 lines 0 comments Download
M components/history/core/browser/history_service.h View 2 chunks +9 lines, -0 lines 0 comments Download
M components/history/core/browser/history_service.cc View 3 chunks +28 lines, -9 lines 0 comments Download

Messages

Total messages: 6 (2 generated)
mastiz
3 years, 9 months ago (2017-03-03 13:40:13 UTC) #3
mastiz
pkotwicz@: I'd like to have high-level integration tests of this kind somewhere. One option is ...
3 years, 9 months ago (2017-03-03 13:40:48 UTC) #4
pkotwicz
Adding extra tests does not hurt. However, since none of the tests put anything in ...
3 years, 9 months ago (2017-03-08 06:11:11 UTC) #5
mastiz
3 years, 3 months ago (2017-09-04 09:25:02 UTC) #6
On 2017/03/08 06:11:11, pkotwicz wrote:
> Adding extra tests does not hurt. However, since none of the tests put
anything
> in the favicon database for the initial state, the tests really are:
> - duplicating the tests in favicon_handler_unittest.cc
> - testing FaviconService::SetFavicons(). There are a lot of tests already for
> FaviconService::SetFavicons() already in history_backend_unittest.cc
> 
> I am not a big proponent of adding tests which have stuff in the database
prior
> to FaviconHandler running. It is likely that only the simple scenarios will be
> tested because these tests are more onerous to write than the corresponding
> favicon_handler_unittest.cc and history_backend_unittest.cc tests. There is
> perhaps value in testing how the logic in HasExpiredOrIncompleteResult() deals
> with weird database states.

Since there wasn't much interest in these tests, and we currently have more
browser tests, I'm gonna drop this patch.

Powered by Google App Engine
This is Rietveld 408576698