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

Issue 2870373002: [DeviceService] Add end-to-end browsertest for PowerMonitor (Closed)

Created:
3 years, 7 months ago by leonhsl(Using Gerrit)
Modified:
3 years, 6 months ago
Reviewers:
Mike West, jam, blundell
CC:
chromium-reviews, darin-cc_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[DeviceService] Add end-to-end browsertest for PowerMonitor This CL is to confirm that in a real browser environment the renderer process CAN succeed in connecting to Device Service to bind PowerMonitor interface, and, via which renderer process CAN get power state change correctly. Follow-up CL will set up similar tests for gpu/utility child processes. BUG=715985 TEST=content_browsertests Review-Url: https://codereview.chromium.org/2870373002 Cr-Commit-Position: refs/heads/master@{#478928} Committed: https://chromium.googlesource.com/chromium/src/+/a0c5fa3e6bb48c503df220d9c8ac946598f12215

Patch Set 1 #

Patch Set 2 : Rebase only #

Patch Set 3 : Add mojo interface for test to get power state of child processes #

Total comments: 8

Patch Set 4 : Rebase only #

Patch Set 5 : Address comments from jam@ and blundell@ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+212 lines, -0 lines) Patch
A content/browser/power_monitor_browsertest.cc View 1 2 3 4 1 chunk +132 lines, -0 lines 0 comments Download
M content/shell/BUILD.gn View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M content/shell/browser/content_shell_renderer_manifest_overlay.json View 1 2 1 chunk +1 line, -0 lines 0 comments Download
A content/shell/common/power_monitor_test.mojom View 1 2 3 4 1 chunk +14 lines, -0 lines 0 comments Download
M content/shell/renderer/shell_content_renderer_client.cc View 1 2 3 4 3 chunks +62 lines, -0 lines 0 comments Download
M content/test/BUILD.gn View 1 2 3 4 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 63 (41 generated)
leonhsl(Using Gerrit)
Hi, Colin, this CL just adds a end-to-end test for renderer process, I tried to ...
3 years, 7 months ago (2017-05-10 09:33:29 UTC) #7
blundell
This is a great start! It would be great if we could add tests that ...
3 years, 7 months ago (2017-05-10 14:54:56 UTC) #13
leonhsl(Using Gerrit)
On 2017/05/10 14:54:56, blundell wrote: > This is a great start! It would be great ...
3 years, 7 months ago (2017-05-11 03:34:09 UTC) #16
leonhsl(Using Gerrit)
Hi, John, we want to start up some child processes like gpu/utility/plugin in a browser ...
3 years, 7 months ago (2017-05-11 03:38:14 UTC) #18
jam
On 2017/05/11 03:38:14, leonhsl wrote: > Hi, John, we want to start up some child ...
3 years, 7 months ago (2017-05-11 14:55:23 UTC) #21
leonhsl(Using Gerrit)
On 2017/05/11 14:55:23, jam wrote: > On 2017/05/11 03:38:14, leonhsl wrote: > > Hi, John, ...
3 years, 7 months ago (2017-05-12 00:44:46 UTC) #22
jam
On 2017/05/12 00:44:46, leonhsl wrote: > On 2017/05/11 14:55:23, jam wrote: > > On 2017/05/11 ...
3 years, 7 months ago (2017-05-15 13:57:46 UTC) #23
leonhsl(Using Gerrit)
Hi, Colin, John, now ps#3 can verify power state change of renderer process by adding ...
3 years, 7 months ago (2017-05-16 09:21:47 UTC) #26
blundell
Thanks, this looks great! https://codereview.chromium.org/2870373002/diff/60001/content/browser/power_monitor_browsertest.cc File content/browser/power_monitor_browsertest.cc (right): https://codereview.chromium.org/2870373002/diff/60001/content/browser/power_monitor_browsertest.cc#newcode111 content/browser/power_monitor_browsertest.cc:111: IN_PROC_BROWSER_TEST_F(PowerMonitorTest, RequestOnceFromOneRendererProcess) { John, would ...
3 years, 7 months ago (2017-05-16 13:28:42 UTC) #29
leonhsl(Using Gerrit)
https://codereview.chromium.org/2870373002/diff/60001/content/browser/power_monitor_browsertest.cc File content/browser/power_monitor_browsertest.cc (right): https://codereview.chromium.org/2870373002/diff/60001/content/browser/power_monitor_browsertest.cc#newcode111 content/browser/power_monitor_browsertest.cc:111: IN_PROC_BROWSER_TEST_F(PowerMonitorTest, RequestOnceFromOneRendererProcess) { On 2017/05/16 13:28:42, blundell wrote: > ...
3 years, 7 months ago (2017-05-22 12:11:57 UTC) #34
blundell
On 2017/05/22 12:11:57, leonhsl wrote: > https://codereview.chromium.org/2870373002/diff/60001/content/browser/power_monitor_browsertest.cc > File content/browser/power_monitor_browsertest.cc (right): > > https://codereview.chromium.org/2870373002/diff/60001/content/browser/power_monitor_browsertest.cc#newcode111 > ...
3 years, 7 months ago (2017-05-22 12:14:52 UTC) #35
leonhsl(Using Gerrit)
On 2017/05/22 12:14:52, blundell wrote: > On 2017/05/22 12:11:57, leonhsl wrote: > > > https://codereview.chromium.org/2870373002/diff/60001/content/browser/power_monitor_browsertest.cc ...
3 years, 7 months ago (2017-05-22 12:39:54 UTC) #36
leonhsl(Using Gerrit)
Friendly ping John, Thanks.
3 years, 6 months ago (2017-05-28 09:45:58 UTC) #37
jam
really sorry for the delay, I missed this. please IM or send me direct emails ...
3 years, 6 months ago (2017-06-06 22:20:29 UTC) #38
leonhsl(Using Gerrit)
Hi, John, Colin, PTAnL at ps#5, Thanks! https://codereview.chromium.org/2870373002/diff/60001/content/browser/power_monitor_browsertest.cc File content/browser/power_monitor_browsertest.cc (right): https://codereview.chromium.org/2870373002/diff/60001/content/browser/power_monitor_browsertest.cc#newcode111 content/browser/power_monitor_browsertest.cc:111: IN_PROC_BROWSER_TEST_F(PowerMonitorTest, RequestOnceFromOneRendererProcess) ...
3 years, 6 months ago (2017-06-09 07:05:53 UTC) #48
jam
lgtm
3 years, 6 months ago (2017-06-13 01:43:44 UTC) #51
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/2870373002/120001
3 years, 6 months ago (2017-06-13 02:27:34 UTC) #53
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/462022)
3 years, 6 months ago (2017-06-13 02:35:21 UTC) #55
leonhsl(Using Gerrit)
Hi, Mike, would you please help to take an OWNER review for adding content/shell/common/power_monitor_test.mojom? Thanks.
3 years, 6 months ago (2017-06-13 02:38:25 UTC) #57
Mike West
mojo LGTM.
3 years, 6 months ago (2017-06-13 07:41:13 UTC) #58
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/2870373002/120001
3 years, 6 months ago (2017-06-13 07:46:01 UTC) #60
commit-bot: I haz the power
3 years, 6 months ago (2017-06-13 08:14:31 UTC) #63
Message was sent while issue was closed.
Committed patchset #5 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/a0c5fa3e6bb48c503df220d9c8ac...

Powered by Google App Engine
This is Rietveld 408576698