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

Issue 2814013002: Reland - [DeviceService] Add service tests for VibrationManager. (Closed)

Created:
3 years, 8 months ago by leonhsl(Using Gerrit)
Modified:
3 years, 8 months ago
CC:
agrieve+watch_chromium.org, chromium-reviews, chromoting-reviews_chromium.org, darin-cc_chromium.org, jam
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Reland - [DeviceService] Add service tests for VibrationManager. Original CL was reverted because it appears to have broken service_unittests on Nexus 5X. This CL fixes it and relands. VibrationManagerImpl.java is in //device/vibration while the VibrationManagerImplTest.java is still in //content, to be able to hide all //device/vibration impl inside Device Service, we must eliminate this concrete dependency on //device/vibration from content layer. As VibrationManagerImplTest.java is an integration test based on content shell test infra, we can't move it outside of //content. So we consider to use other tests to replace it, while the renderer-side testing has already been covered by layout tests created at https://codereview.chromium.org/2731953003/, so we create this CL to cover the VibrationManager interface impl testing: - creates an infra for Device Service service tests. - adds a new service test for VibrationManager interface. Then after this CL we'll be able to hide all vibration impl inside Device Service with a follow-up CL. BUG=689379 TEST=service_unittests TBR=avi@chromium.org Review-Url: https://codereview.chromium.org/2774783003 Cr-Original-Commit-Position: refs/heads/master@{#463612} Committed: https://chromium.googlesource.com/chromium/src/+/9c17bee62f1e16224fabb7c83bbeaab719015761 Review-Url: https://codereview.chromium.org/2814013002 Cr-Commit-Position: refs/heads/master@{#463915} Committed: https://chromium.googlesource.com/chromium/src/+/70adfd46aefb86021a640567bdc07d6b6c73a066

Patch Set 1 : Identical with original CL #

Patch Set 2 : Fix android_n5x_swarming_rel bot #

Unified diffs Side-by-side diffs Delta from patch set Stats (+336 lines, -166 lines) Patch
M content/public/android/BUILD.gn View 2 chunks +0 lines, -3 lines 0 comments Download
D content/public/android/javatests/src/org/chromium/content/browser/VibrationManagerImplTest.java View 1 chunk +0 lines, -128 lines 0 comments Download
M device/vibration/android/BUILD.gn View 1 chunk +7 lines, -0 lines 0 comments Download
M device/vibration/android/java/src/org/chromium/device/vibration/VibrationManagerImpl.java View 5 chunks +29 lines, -28 lines 0 comments Download
M device/vibration/vibration_manager_impl.h View 1 chunk +3 lines, -0 lines 0 comments Download
M device/vibration/vibration_manager_impl_default.cc View 2 chunks +8 lines, -1 line 0 comments Download
M services/BUILD.gn View 1 2 chunks +7 lines, -2 lines 0 comments Download
M services/device/BUILD.gn View 1 7 chunks +53 lines, -4 lines 0 comments Download
A services/device/device_service_test_base.h View 1 chunk +28 lines, -0 lines 0 comments Download
A services/device/device_service_test_base.cc View 1 chunk +91 lines, -0 lines 0 comments Download
A services/device/unittest_manifest.json View 1 chunk +16 lines, -0 lines 0 comments Download
A services/device/vibration/vibration_manager_impl_unittest.cc View 1 chunk +81 lines, -0 lines 0 comments Download
M services/service_manager/public/cpp/test/BUILD.gn View 1 chunk +4 lines, -0 lines 0 comments Download
M services/service_manager/public/cpp/test/run_all_service_tests.cc View 2 chunks +9 lines, -0 lines 0 comments Download

Messages

Total messages: 31 (22 generated)
leonhsl(Using Gerrit)
Hi, Ken, seems a C++ source_set target stops the propagation of a java target, so ...
3 years, 8 months ago (2017-04-12 02:51:32 UTC) #16
Ken Rockot(use gerrit already)
OK - LGTM for now, as unfortunate as that is. Thanks!
3 years, 8 months ago (2017-04-12 02:57:14 UTC) #19
leonhsl(Using Gerrit)
Thanks Ken a lot! Let me TBR Avi for //content/ changes he approved in original ...
3 years, 8 months ago (2017-04-12 03:02:12 UTC) #22
leonhsl(Using Gerrit)
On 2017/04/12 03:02:12, leonhsl wrote: > Thanks Ken a lot! Let me TBR Avi for ...
3 years, 8 months ago (2017-04-12 03:05:03 UTC) #23
Ken Rockot(use gerrit already)
On 2017/04/12 at 03:05:03, leon.han wrote: > On 2017/04/12 03:02:12, leonhsl wrote: > > Thanks ...
3 years, 8 months ago (2017-04-12 03:06:27 UTC) #24
Ken Rockot(use gerrit already)
(Done) On Tue, Apr 11, 2017 at 8:06 PM, <rockot@chromium.org> wrote: > On 2017/04/12 at ...
3 years, 8 months ago (2017-04-12 03:06:48 UTC) #25
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/2814013002/80001
3 years, 8 months ago (2017-04-12 03:10:12 UTC) #27
commit-bot: I haz the power
Committed patchset #2 (id:80001) as https://chromium.googlesource.com/chromium/src/+/70adfd46aefb86021a640567bdc07d6b6c73a066
3 years, 8 months ago (2017-04-12 03:15:12 UTC) #30
leonhsl(Using Gerrit)
3 years, 8 months ago (2017-04-12 03:18:41 UTC) #31
Message was sent while issue was closed.
On 2017/04/12 03:06:48, Ken Rockot wrote:
> (Done)
> 
> On Tue, Apr 11, 2017 at 8:06 PM, <mailto:rockot@chromium.org> wrote:
> 
> > On 2017/04/12 at 03:05:03, leon.han wrote:
> > > On 2017/04/12 03:02:12, leonhsl wrote:
> > > > Thanks Ken a lot! Let me TBR Avi for //content/ changes he approved in
> > original
> > > > CL, send to CQ now.
> > >
> > > Oops, seems I closed this CL incidentally... Will upload a new one to
> > land.
> >
> > We can just reopen it
> >
> > https://codereview.chromium.org/2814013002/
> >
> 
> -- 
> You received this message because you are subscribed to the Google Groups
> "Chromium-reviews" group.
> To unsubscribe from this group and stop receiving emails from it, send an
email
> to mailto:chromium-reviews+unsubscribe@chromium.org.

Ah, I see, did not know about this before.. It's in the 'Edit Issue' page. Thank
you :-)

Powered by Google App Engine
This is Rietveld 408576698