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

Issue 2909283003: [Sync] Split UserEventService into interface and impl, add fake impl, add unit tests. (Closed)

Created:
3 years, 6 months ago by skym
Modified:
3 years, 6 months ago
CC:
chromium-reviews, sync-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[Sync] Split UserEventService into interface and impl, add fake impl, add unit tests. BUG=727825 Review-Url: https://codereview.chromium.org/2909283003 Cr-Commit-Position: refs/heads/master@{#476434} Committed: https://chromium.googlesource.com/chromium/src/+/c794f9f4c22fe5047a78f5911e2fbcf75d161525

Patch Set 1 #

Patch Set 2 : Self review. #

Total comments: 8

Patch Set 3 : Updates for pnoland. #

Patch Set 4 : Added a NoOp service to handle OffTheRecord. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+334 lines, -234 lines) Patch
M chrome/browser/sync/user_event_service_factory.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/sync/user_event_service_factory.cc View 1 2 3 4 chunks +13 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/sync_internals_message_handler.cc View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/ui/webui/sync_internals_message_handler_unittest.cc View 1 7 chunks +41 lines, -0 lines 0 comments Download
M components/sync/BUILD.gn View 1 2 3 2 chunks +7 lines, -1 line 0 comments Download
A components/sync/user_events/fake_user_event_service.h View 1 2 1 chunk +53 lines, -0 lines 0 comments Download
A components/sync/user_events/fake_user_event_service.cc View 1 chunk +46 lines, -0 lines 0 comments Download
A components/sync/user_events/no_op_user_event_service.h View 1 2 3 1 chunk +40 lines, -0 lines 0 comments Download
A components/sync/user_events/no_op_user_event_service.cc View 1 2 3 1 chunk +31 lines, -0 lines 0 comments Download
M components/sync/user_events/user_event_service.h View 1 chunk +9 lines, -24 lines 0 comments Download
M components/sync/user_events/user_event_service.cc View 1 chunk +1 line, -53 lines 0 comments Download
A components/sync/user_events/user_event_service_impl.h View 1 2 1 chunk +58 lines, -0 lines 0 comments Download
A + components/sync/user_events/user_event_service_impl.cc View 1 2 3 chunks +16 lines, -12 lines 0 comments Download
A + components/sync/user_events/user_event_service_impl_unittest.cc View 3 chunks +16 lines, -16 lines 0 comments Download
D components/sync/user_events/user_event_service_unittest.cc View 1 chunk +0 lines, -124 lines 0 comments Download

Messages

Total messages: 25 (15 generated)
skym
PTAL dbeam@ - chrome/browser/ui/webui/* pnoland@ - everything else
3 years, 6 months ago (2017-05-30 22:51:44 UTC) #3
Patrick Noland
lgtm https://codereview.chromium.org/2909283003/diff/20001/components/sync/user_events/fake_user_event_service.h File components/sync/user_events/fake_user_event_service.h (right): https://codereview.chromium.org/2909283003/diff/20001/components/sync/user_events/fake_user_event_service.h#newcode23 components/sync/user_events/fake_user_event_service.h:23: class FakeUserEventService : public UserEventService { Can you ...
3 years, 6 months ago (2017-05-30 23:06:41 UTC) #5
skym
Updates for pnoland https://codereview.chromium.org/2909283003/diff/20001/components/sync/user_events/fake_user_event_service.h File components/sync/user_events/fake_user_event_service.h (right): https://codereview.chromium.org/2909283003/diff/20001/components/sync/user_events/fake_user_event_service.h#newcode23 components/sync/user_events/fake_user_event_service.h:23: class FakeUserEventService : public UserEventService { ...
3 years, 6 months ago (2017-05-30 23:21:40 UTC) #8
Dan Beam
why can't we use base/test/user_action_tester.h?
3 years, 6 months ago (2017-05-31 00:53:43 UTC) #11
skym
On 2017/05/31 00:53:43, Dan Beam wrote: > why can't we use base/test/user_action_tester.h? I don't have ...
3 years, 6 months ago (2017-05-31 16:20:41 UTC) #12
Dan Beam
On 2017/05/31 16:20:41, skym wrote: > On 2017/05/31 00:53:43, Dan Beam wrote: > > why ...
3 years, 6 months ago (2017-05-31 17:45:18 UTC) #13
skym
pnoland - PTAnL Unit tests started failing in OffTheRecord mode because we were returning nullptr ...
3 years, 6 months ago (2017-06-01 13:36:49 UTC) #18
Patrick Noland
still lgtm
3 years, 6 months ago (2017-06-01 20:56:38 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/2909283003/60001
3 years, 6 months ago (2017-06-01 20:57:39 UTC) #22
commit-bot: I haz the power
3 years, 6 months ago (2017-06-01 21:02:31 UTC) #25
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/c794f9f4c22fe5047a78f5911e2f...

Powered by Google App Engine
This is Rietveld 408576698