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

Issue 1646553002: Remove Profile dependency from some ProfileSyncService unittests (Closed)

Created:
4 years, 11 months ago by vabr (Chromium)
Modified:
4 years, 10 months ago
Reviewers:
Nicolas Zea, sdefresne
CC:
chromium-reviews, maxbogue+watch_chromium.org, plaree+watch_chromium.org, tim+watch_chromium.org, zea+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@581640_componentise_fake_invalidation_service
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove Profile dependency from some ProfileSyncService unittests More precisely, this removes the //chrome dependencies from TestProfileSyncService, AbstractProfileSyncServiceTest, ProfileSyncServiceTypedUrlTest and ProfileSyncServiceAutofillTest. BUG=581640 Committed: https://crrev.com/9352dd94f89103fba52d018f24d657e7884fda5d Cr-Commit-Position: refs/heads/master@{#376446}

Patch Set 1 #

Patch Set 2 : More WIP #

Patch Set 3 : Yet more WIP, does not compile, even. #

Patch Set 4 : WIP (just backup) #

Patch Set 5 : WIP #

Patch Set 6 : More WIP #

Patch Set 7 : Still WIP #

Patch Set 8 : Still needs clean-up but all tests should work #

Patch Set 9 : Cleaned up #

Total comments: 12

Patch Set 10 : Comments addressed #

Patch Set 11 : Do not destroy WebDataServiceWrapper too soon #

Total comments: 2

Patch Set 12 : Just rebased #

Patch Set 13 : Callback by const ref + cherry-pick proper deletion on Sync thread #

Patch Set 14 : Self-review #

Patch Set 15 : Go back from posting Quit to WaitableEvent #

Total comments: 2

Patch Set 16 : PostTaskAndReply, const ref in arguments, message loop outside #

Total comments: 2

Patch Set 17 : Just rebased #

Patch Set 18 : Less WaitableEvents #

Unified diffs Side-by-side diffs Delta from patch set Stats (+689 lines, -628 lines) Patch
M chrome/browser/sync/abstract_profile_sync_service_test.h View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +24 lines, -9 lines 0 comments Download
M chrome/browser/sync/abstract_profile_sync_service_test.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +153 lines, -9 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_autofill_unittest.cc View 1 2 3 4 5 6 7 8 9 10 37 chunks +112 lines, -180 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_typed_url_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 13 chunks +101 lines, -123 lines 0 comments Download
M chrome/browser/sync/test_profile_sync_service.h View 1 2 3 4 5 6 7 8 3 chunks +12 lines, -71 lines 0 comments Download
M chrome/browser/sync/test_profile_sync_service.cc View 1 2 3 4 5 6 7 8 3 chunks +4 lines, -196 lines 0 comments Download
M chrome/browser/ui/sync/one_click_signin_sync_observer_unittest.cc View 1 2 3 4 5 6 7 5 chunks +14 lines, -8 lines 0 comments Download
M components/browser_sync/browser/BUILD.gn View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M components/browser_sync/browser/profile_sync_test_util.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 8 chunks +68 lines, -3 lines 0 comments Download
M components/browser_sync/browser/profile_sync_test_util.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 5 chunks +197 lines, -28 lines 0 comments Download
M components/history/core/browser/history_service.h View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download

Dependent Patchsets:

Messages

Total messages: 33 (14 generated)
vabr (Chromium)
Dear reviewers! Please have a look: sdefresne@: components/history/core/browser/history_service.h zea@: the rest Thank you! Vaclav
4 years, 10 months ago (2016-02-12 17:44:38 UTC) #7
Nicolas Zea
Mostly LG, some nits https://codereview.chromium.org/1646553002/diff/160001/chrome/browser/sync/abstract_profile_sync_service_test.h File chrome/browser/sync/abstract_profile_sync_service_test.h (right): https://codereview.chromium.org/1646553002/diff/160001/chrome/browser/sync/abstract_profile_sync_service_test.h#newcode53 chrome/browser/sync/abstract_profile_sync_service_test.h:53: // Creates a TestProfileSyncService instance ...
4 years, 10 months ago (2016-02-13 01:24:22 UTC) #8
vabr (Chromium)
Thanks, Nicolas, For the review. I addressed your comments, PTAL. Cheers, Vaclav https://codereview.chromium.org/1646553002/diff/160001/chrome/browser/sync/abstract_profile_sync_service_test.h File chrome/browser/sync/abstract_profile_sync_service_test.h ...
4 years, 10 months ago (2016-02-13 21:44:04 UTC) #9
vabr (Chromium)
Also, I realised that I have been destroying the WebDataServiceWrapper too soon, so fixed that ...
4 years, 10 months ago (2016-02-13 22:41:58 UTC) #10
sdefresne
components/history lgtm
4 years, 10 months ago (2016-02-15 09:47:12 UTC) #11
vabr (Chromium)
Thanks, sdefresne@. zea@ -- this CL is also ready for review, I addressed your past ...
4 years, 10 months ago (2016-02-16 16:43:11 UTC) #12
Nicolas Zea
Looks like you didn't diff off the other patchset? https://codereview.chromium.org/1646553002/diff/200001/chrome/browser/sync/abstract_profile_sync_service_test.h File chrome/browser/sync/abstract_profile_sync_service_test.h (right): https://codereview.chromium.org/1646553002/diff/200001/chrome/browser/sync/abstract_profile_sync_service_test.h#newcode59 chrome/browser/sync/abstract_profile_sync_service_test.h:59: ...
4 years, 10 months ago (2016-02-16 22:52:40 UTC) #13
vabr (Chromium)
Thanks, Nicolas. I addressed your comment. Also, I had to cherry pick a fix for ...
4 years, 10 months ago (2016-02-17 13:53:38 UTC) #14
Nicolas Zea
Looks like several of the areas I had comments from the other patch have been ...
4 years, 10 months ago (2016-02-17 22:19:06 UTC) #15
vabr (Chromium)
Thanks, Nicolas! > Looks like several of the areas I had comments from the > ...
4 years, 10 months ago (2016-02-18 13:04:09 UTC) #16
Nicolas Zea
LGTM with a nit. Thanks again! https://codereview.chromium.org/1646553002/diff/300001/chrome/browser/sync/profile_sync_service_typed_url_unittest.cc File chrome/browser/sync/profile_sync_service_typed_url_unittest.cc (right): https://codereview.chromium.org/1646553002/diff/300001/chrome/browser/sync/profile_sync_service_typed_url_unittest.cc#newcode174 chrome/browser/sync/profile_sync_service_typed_url_unittest.cc:174: base::WaitableEvent history_service_created(false, false); ...
4 years, 10 months ago (2016-02-18 19:11:11 UTC) #17
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1646553002/340001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1646553002/340001
4 years, 10 months ago (2016-02-19 09:10:04 UTC) #19
vabr (Chromium)
Thanks, Nicolas, I really appreciated all your reviews. I'm sorry for the pushbacks and back-and-forth, ...
4 years, 10 months ago (2016-02-19 09:11:04 UTC) #20
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1646553002/340001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1646553002/340001
4 years, 10 months ago (2016-02-19 13:07:24 UTC) #23
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 10 months ago (2016-02-19 15:48:53 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1646553002/340001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1646553002/340001
4 years, 10 months ago (2016-02-19 15:58:10 UTC) #28
commit-bot: I haz the power
Committed patchset #18 (id:340001)
4 years, 10 months ago (2016-02-19 16:09:58 UTC) #30
commit-bot: I haz the power
Patchset 18 (id:??) landed as https://crrev.com/9352dd94f89103fba52d018f24d657e7884fda5d Cr-Commit-Position: refs/heads/master@{#376446}
4 years, 10 months ago (2016-02-19 16:11:45 UTC) #32
ambag5151
4 years, 10 months ago (2016-02-22 14:41:00 UTC) #33
Message was sent while issue was closed.

          

Powered by Google App Engine
This is Rietveld 408576698