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

Issue 1324853004: Add browsertests for VibrationManager java impl on android. (Closed)

Created:
5 years, 3 months ago by leonhsl(Using Gerrit)
Modified:
5 years, 1 month ago
CC:
chromium-reviews, darin-cc_chromium.org, haltonhuo, ppi
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add browsertests for VibrationManager java impl on android. On android VibrationManager mojo service is implemented directly with Java, this CL adds browsertests to confirm VibrationManagerImpl behaviors. BUG= TEST=ContentShellTest instrumentation test PASS on android device. Committed: https://crrev.com/ce8363056d9bd861fd768ad026104ddd0be544e9 Cr-Commit-Position: refs/heads/master@{#358286}

Patch Set 1 #

Total comments: 8

Patch Set 2 : Address review comments #

Total comments: 9

Patch Set 3 : Address comments #

Patch Set 4 : Address comments #

Patch Set 5 : Rebase only #

Patch Set 6 : Fix trybot failure #

Patch Set 7 : Fix trybot failure... #

Total comments: 12

Patch Set 8 : Address comments #

Total comments: 2

Patch Set 9 : Address comments #

Total comments: 6

Patch Set 10 : Avoid static ref to android service #

Unified diffs Side-by-side diffs Delta from patch set Stats (+145 lines, -2 lines) Patch
M content/public/android/BUILD.gn View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
A content/public/android/javatests/src/org/chromium/content/browser/VibrationManagerImplTest.java View 1 2 3 4 5 6 7 8 9 1 chunk +114 lines, -0 lines 0 comments Download
M device/vibration/android/java/src/org/chromium/device/vibration/VibrationManagerImpl.java View 1 2 3 4 5 6 7 8 9 3 chunks +29 lines, -2 lines 0 comments Download

Messages

Total messages: 68 (21 generated)
leonhsl(Using Gerrit)
Hi, Tim, This CL adds android instrumentation test for VibrationManagerImpl, as it depends on ContentShellTestBase ...
5 years, 3 months ago (2015-09-08 11:01:05 UTC) #2
timvolodine
thanks leon.han@! I think we should aim to reduce the amount of test related code ...
5 years, 3 months ago (2015-09-11 16:40:15 UTC) #3
timvolodine
adding ppi@: do we have a specific way to test java-only mojo services? I remember ...
5 years, 3 months ago (2015-09-11 16:42:32 UTC) #4
ppi
For battery afair we had java unittests and c++ browsertests (working transparently against both C++ ...
5 years, 3 months ago (2015-09-17 18:16:24 UTC) #6
leonhsl(Using Gerrit)
On 2015/09/17 18:16:24, ppi wrote: > For battery afair we had java unittests and c++ ...
5 years, 3 months ago (2015-09-18 07:17:14 UTC) #7
leonhsl(Using Gerrit)
Thanks a lot for review comments. https://codereview.chromium.org/1324853004/diff/1/content/public/android/javatests/src/org/chromium/content/browser/VibrationManagerImplTest.java File content/public/android/javatests/src/org/chromium/content/browser/VibrationManagerImplTest.java (right): https://codereview.chromium.org/1324853004/diff/1/content/public/android/javatests/src/org/chromium/content/browser/VibrationManagerImplTest.java#newcode74 content/public/android/javatests/src/org/chromium/content/browser/VibrationManagerImplTest.java:74: @Feature({"VibrationManagerImpl"}) On 2015/09/11 ...
5 years, 3 months ago (2015-09-22 09:56:19 UTC) #8
leonhsl(Using Gerrit)
Soft ping~
5 years, 2 months ago (2015-10-06 10:52:51 UTC) #9
ppi
I'm not sure if I understand the issue at hand. If we have C++ browsertests ...
5 years, 2 months ago (2015-10-06 21:24:50 UTC) #10
leonhsl(Using Gerrit)
On 2015/10/06 21:24:50, ppi wrote: > I'm not sure if I understand the issue at ...
5 years, 2 months ago (2015-10-07 13:08:28 UTC) #11
ppi
Thanks for the explanation. It makes sense to me, and so does the approach taken. ...
5 years, 2 months ago (2015-10-08 20:43:01 UTC) #12
leonhsl(Using Gerrit)
On 2015/10/08 20:43:01, ppi wrote: > Thanks for the explanation. It makes sense to me, ...
5 years, 2 months ago (2015-10-10 08:48:53 UTC) #13
timvolodine
going through stale patches ;)... yes looks like we don't have a way to inject ...
5 years, 2 months ago (2015-10-16 17:41:25 UTC) #14
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1324853004/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1324853004/40001
5 years, 2 months ago (2015-10-19 05:43:31 UTC) #16
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1324853004/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1324853004/60001
5 years, 2 months ago (2015-10-19 05:48:50 UTC) #18
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_chromium_gn_compile_dbg on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/android_chromium_gn_compile_dbg/builds/129072)
5 years, 2 months ago (2015-10-19 06:05:44 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/1324853004/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1324853004/80001
5 years, 2 months ago (2015-10-19 09:00:28 UTC) #22
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_chromium_gn_compile_dbg on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/android_chromium_gn_compile_dbg/builds/129117)
5 years, 2 months ago (2015-10-19 09:22:55 UTC) #24
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1324853004/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1324853004/100001
5 years, 2 months ago (2015-10-19 09:58:28 UTC) #26
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1324853004/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1324853004/120001
5 years, 2 months ago (2015-10-19 10:12:47 UTC) #28
leonhsl(Using Gerrit)
Thanks a lot for kindly review~ Addressed comments and uploaded patch#7, sorry for so many ...
5 years, 2 months ago (2015-10-19 10:27:37 UTC) #29
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 2 months ago (2015-10-19 11:09:34 UTC) #31
timvolodine
lgtm modulo comments below. thanks! https://codereview.chromium.org/1324853004/diff/20001/content/public/android/javatests/src/org/chromium/content/browser/VibrationManagerImplTest.java File content/public/android/javatests/src/org/chromium/content/browser/VibrationManagerImplTest.java (right): https://codereview.chromium.org/1324853004/diff/20001/content/public/android/javatests/src/org/chromium/content/browser/VibrationManagerImplTest.java#newcode35 content/public/android/javatests/src/org/chromium/content/browser/VibrationManagerImplTest.java:35: private static class FakeAndroidVibratorWrapper ...
5 years, 2 months ago (2015-10-20 13:16:22 UTC) #32
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1324853004/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1324853004/140001
5 years, 2 months ago (2015-10-22 10:36:40 UTC) #34
leonhsl(Using Gerrit)
Thanks a lot for great help! ;) Addressed comments and uploaded patch set#8. https://codereview.chromium.org/1324853004/diff/120001/content/public/android/BUILD.gn File ...
5 years, 2 months ago (2015-10-22 10:47:58 UTC) #35
timvolodine
still lgtm with a comment. also, you'd probably need other owners to lgtm. https://codereview.chromium.org/1324853004/diff/140001/content/public/android/javatests/src/org/chromium/content/browser/VibrationManagerImplTest.java File ...
5 years, 2 months ago (2015-10-22 11:26:14 UTC) #36
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 2 months ago (2015-10-22 11:39:57 UTC) #38
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1324853004/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1324853004/160001
5 years, 2 months ago (2015-10-25 02:39:34 UTC) #40
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 2 months ago (2015-10-25 03:42:13 UTC) #42
leonhsl(Using Gerrit)
Addressed comments and upload again. Thanks a lot~ https://codereview.chromium.org/1324853004/diff/140001/content/public/android/javatests/src/org/chromium/content/browser/VibrationManagerImplTest.java File content/public/android/javatests/src/org/chromium/content/browser/VibrationManagerImplTest.java (right): https://codereview.chromium.org/1324853004/diff/140001/content/public/android/javatests/src/org/chromium/content/browser/VibrationManagerImplTest.java#newcode65 content/public/android/javatests/src/org/chromium/content/browser/VibrationManagerImplTest.java:65: VibrationManagerImpl.setVibratorWrapperForTesting(mFakeWrapper); ...
5 years, 2 months ago (2015-10-25 05:55:49 UTC) #43
leonhsl(Using Gerrit)
Hi, jam@, Would you please take a look for Owner review? Thanks~
5 years, 2 months ago (2015-10-25 05:59:20 UTC) #45
jam
On 2015/10/25 05:59:20, leon.han wrote: > Hi, jam@, Would you please take a look for ...
5 years, 1 month ago (2015-10-26 17:18:52 UTC) #46
leonhsl(Using Gerrit)
On 2015/10/26 17:18:52, jam wrote: > On 2015/10/25 05:59:20, leon.han wrote: > > Hi, jam@, ...
5 years, 1 month ago (2015-10-27 02:36:57 UTC) #47
leonhsl(Using Gerrit)
Hi, dtrainor@, would you please help do Owner review for //content/public/android, Thanks~
5 years, 1 month ago (2015-10-27 02:40:50 UTC) #49
leonhsl(Using Gerrit)
Added tedchoc@ . Hi, Ted, would you please help to take a look as //content/public/android ...
5 years, 1 month ago (2015-11-02 04:50:18 UTC) #51
David Trainor- moved to gerrit
https://chromiumcodereview.appspot.com/1324853004/diff/160001/device/vibration/android/java/src/org/chromium/device/vibration/VibrationManagerImpl.java File device/vibration/android/java/src/org/chromium/device/vibration/VibrationManagerImpl.java (right): https://chromiumcodereview.appspot.com/1324853004/diff/160001/device/vibration/android/java/src/org/chromium/device/vibration/VibrationManagerImpl.java#newcode61 device/vibration/android/java/src/org/chromium/device/vibration/VibrationManagerImpl.java:61: (Vibrator) context.getSystemService(Context.VIBRATOR_SERVICE)); If this is a static, should we ...
5 years, 1 month ago (2015-11-02 16:43:52 UTC) #52
Ted C
https://codereview.chromium.org/1324853004/diff/160001/content/public/android/BUILD.gn File content/public/android/BUILD.gn (right): https://codereview.chromium.org/1324853004/diff/160001/content/public/android/BUILD.gn#newcode188 content/public/android/BUILD.gn:188: "//device/vibration/android:vibration_manager_android", are these actually needed? It looks like they ...
5 years, 1 month ago (2015-11-02 23:16:47 UTC) #53
leonhsl(Using Gerrit)
https://codereview.chromium.org/1324853004/diff/160001/content/public/android/BUILD.gn File content/public/android/BUILD.gn (right): https://codereview.chromium.org/1324853004/diff/160001/content/public/android/BUILD.gn#newcode188 content/public/android/BUILD.gn:188: "//device/vibration/android:vibration_manager_android", On 2015/11/02 23:16:47, Ted C wrote: > are ...
5 years, 1 month ago (2015-11-03 08:56:26 UTC) #54
ppi
https://codereview.chromium.org/1324853004/diff/160001/device/vibration/android/java/src/org/chromium/device/vibration/VibrationManagerImpl.java File device/vibration/android/java/src/org/chromium/device/vibration/VibrationManagerImpl.java (right): https://codereview.chromium.org/1324853004/diff/160001/device/vibration/android/java/src/org/chromium/device/vibration/VibrationManagerImpl.java#newcode61 device/vibration/android/java/src/org/chromium/device/vibration/VibrationManagerImpl.java:61: (Vibrator) context.getSystemService(Context.VIBRATOR_SERVICE)); On 2015/11/03 08:56:26, leon.han wrote: > On ...
5 years, 1 month ago (2015-11-03 13:27:11 UTC) #55
David Trainor- moved to gerrit
On 2015/11/03 13:27:11, ppi wrote: > https://codereview.chromium.org/1324853004/diff/160001/device/vibration/android/java/src/org/chromium/device/vibration/VibrationManagerImpl.java > File > device/vibration/android/java/src/org/chromium/device/vibration/VibrationManagerImpl.java > (right): > > ...
5 years, 1 month ago (2015-11-04 00:15:47 UTC) #56
leonhsl(Using Gerrit)
Uploaded patchset#10 to address Ted's comments. PTAL, Thanks~
5 years, 1 month ago (2015-11-04 05:18:42 UTC) #57
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1324853004/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1324853004/180001
5 years, 1 month ago (2015-11-04 05:19:30 UTC) #59
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 1 month ago (2015-11-04 06:15:09 UTC) #61
David Trainor- moved to gerrit
lgtm!
5 years, 1 month ago (2015-11-04 17:37:04 UTC) #62
Ted C
lgtm
5 years, 1 month ago (2015-11-04 17:40:25 UTC) #63
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1324853004/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1324853004/180001
5 years, 1 month ago (2015-11-06 07:42:59 UTC) #66
commit-bot: I haz the power
Committed patchset #10 (id:180001)
5 years, 1 month ago (2015-11-06 08:40:32 UTC) #67
commit-bot: I haz the power
5 years, 1 month ago (2015-11-06 08:41:19 UTC) #68
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/ce8363056d9bd861fd768ad026104ddd0be544e9
Cr-Commit-Position: refs/heads/master@{#358286}

Powered by Google App Engine
This is Rietveld 408576698