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

Issue 2869013004: Test SuggestionsServiceImpl without friending anything (Closed)

Created:
3 years, 7 months ago by fhorschig
Modified:
3 years, 7 months ago
Reviewers:
Marc Treib
CC:
chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Test SuggestionsServiceImpl without friending anything This CL changes only the tests (and test-only getters) for the SuggestionsServiceImpl class. Changed: - Responding to Fetches with TestUrlFetchers -> no alternative URL hacks - Blackboxed -> neither tests nor test class are friends of the Impl Intentionally not changed (although considerable): (- anything in the .cc file) - visibility of privately inherited OnStateChanged - constructor (to inject a clock) - EXPECT_EQ (to go for consistency) BUG=709959 Review-Url: https://codereview.chromium.org/2869013004 Cr-Commit-Position: refs/heads/master@{#470560} Committed: https://chromium.googlesource.com/chromium/src/+/590d7f9b223b8fde7722c7f0c395f8cd2e7e3bc9

Patch Set 1 #

Total comments: 1

Patch Set 2 : Rebase (and rerebase to gclient) #

Patch Set 3 : Rebase (to HEAD) #

Total comments: 54

Patch Set 4 : Address comments #

Total comments: 4

Patch Set 5 : Fix comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+297 lines, -340 lines) Patch
M components/suggestions/suggestions_service_impl.h View 1 2 3 chunks +10 lines, -33 lines 0 comments Download
M components/suggestions/suggestions_service_impl_unittest.cc View 1 2 3 4 13 chunks +287 lines, -307 lines 0 comments Download

Messages

Total messages: 19 (12 generated)
fhorschig
Hi Marc, would you please take a look? https://codereview.chromium.org/2869013004/diff/20001/components/suggestions/suggestions_service_impl_unittest.cc File components/suggestions/suggestions_service_impl_unittest.cc (left): https://codereview.chromium.org/2869013004/diff/20001/components/suggestions/suggestions_service_impl_unittest.cc#oldcode688 components/suggestions/suggestions_service_impl_unittest.cc:688: EXPECT_EQ(blacklisted_url, ...
3 years, 7 months ago (2017-05-10 08:41:07 UTC) #3
Marc Treib
Very nice overall! Lots of small comments below. Description nit: "Inlined large test helpers" was ...
3 years, 7 months ago (2017-05-10 09:53:46 UTC) #5
fhorschig
https://codereview.chromium.org/2869013004/diff/60001/components/suggestions/suggestions_service_impl.h File components/suggestions/suggestions_service_impl.h (right): https://codereview.chromium.org/2869013004/diff/60001/components/suggestions/suggestions_service_impl.h#newcode81 components/suggestions/suggestions_service_impl.h:81: base::TimeDelta blacklist_delay_for_testing() const { On 2017/05/10 09:53:44, Marc Treib ...
3 years, 7 months ago (2017-05-10 11:54:46 UTC) #7
Marc Treib
Thanks! LGTM https://codereview.chromium.org/2869013004/diff/60001/components/suggestions/suggestions_service_impl_unittest.cc File components/suggestions/suggestions_service_impl_unittest.cc (right): https://codereview.chromium.org/2869013004/diff/60001/components/suggestions/suggestions_service_impl_unittest.cc#newcode191 components/suggestions/suggestions_service_impl_unittest.cc:191: void NotifySuggestionsService() { On 2017/05/10 11:54:45, fhorschig ...
3 years, 7 months ago (2017-05-10 12:16:24 UTC) #8
fhorschig
Thanks! (Generally for explaining your thoughts behind every major comment) https://codereview.chromium.org/2869013004/diff/60001/components/suggestions/suggestions_service_impl_unittest.cc File components/suggestions/suggestions_service_impl_unittest.cc (right): https://codereview.chromium.org/2869013004/diff/60001/components/suggestions/suggestions_service_impl_unittest.cc#newcode191 ...
3 years, 7 months ago (2017-05-10 12:38:15 UTC) #11
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/2869013004/100001
3 years, 7 months ago (2017-05-10 14:11:42 UTC) #16
commit-bot: I haz the power
3 years, 7 months ago (2017-05-10 14:17:29 UTC) #19
Message was sent while issue was closed.
Committed patchset #5 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/590d7f9b223b8fde7722c7f0c395...

Powered by Google App Engine
This is Rietveld 408576698