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

Issue 2819163002: [DeviceService] Replace content browser test with service test for BatteryMonitorImpl (Closed)

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

Description

[DeviceService] Replace content browser test with service test for BatteryMonitorImpl This CL removes BatteryMonitorImpl content browser test, its renderer side test is covered by existing battery layout tests, and its browser side test is covered by the service test newly created in this CL. Thus we can eliminate the direct dependency on battery from content layer, then we can hide all battery monitor impl inside Device Service with a follow-up CL. BUG=684422 TEST=service_unittest TBR=timvolodine@chromium.org Review-Url: https://codereview.chromium.org/2819163002 Cr-Commit-Position: refs/heads/master@{#466833} Committed: https://chromium.googlesource.com/chromium/src/+/b3592f9117184c7f54aeff8fcbe9d0d67ab11dc0

Patch Set 1 #

Total comments: 2

Patch Set 2 : Remove useless html files of battery content browser test #

Patch Set 3 : Rebase only #

Unified diffs Side-by-side diffs Delta from patch set Stats (+201 lines, -368 lines) Patch
D content/browser/battery_status/DEPS View 1 chunk +0 lines, -3 lines 0 comments Download
D content/browser/battery_status/OWNERS View 1 chunk +0 lines, -2 lines 0 comments Download
D content/browser/battery_status/battery_monitor_impl_browsertest.cc View 1 chunk +0 lines, -158 lines 0 comments Download
M content/test/BUILD.gn View 1 2 6 chunks +0 lines, -8 lines 0 comments Download
D content/test/data/battery_status/battery_status_default_test.html View 1 1 chunk +0 lines, -36 lines 0 comments Download
D content/test/data/battery_status/battery_status_event_listener_test.html View 1 1 chunk +0 lines, -34 lines 0 comments Download
D content/test/data/battery_status/battery_status_manual_test.html View 1 1 chunk +0 lines, -89 lines 0 comments Download
D content/test/data/battery_status/battery_status_promise_resolution_test.html View 1 1 chunk +0 lines, -36 lines 0 comments Download
M device/battery/battery_status_service.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M services/device/BUILD.gn View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
A + services/device/battery/OWNERS View 1 chunk +1 line, -1 line 0 comments Download
A services/device/battery/battery_monitor_impl_unittest.cc View 1 chunk +192 lines, -0 lines 0 comments Download
M services/device/unittest_manifest.json View 1 chunk +4 lines, -1 line 0 comments Download

Messages

Total messages: 40 (30 generated)
leonhsl(Using Gerrit)
PTAL, Thanks!
3 years, 8 months ago (2017-04-17 05:07:18 UTC) #13
blundell
lgtm, thanks! https://codereview.chromium.org/2819163002/diff/40001/content/browser/battery_status/battery_monitor_impl_browsertest.cc File content/browser/battery_status/battery_monitor_impl_browsertest.cc (left): https://codereview.chromium.org/2819163002/diff/40001/content/browser/battery_status/battery_monitor_impl_browsertest.cc#oldcode106 content/browser/battery_status/battery_monitor_impl_browsertest.cc:106: GetTestUrl("battery_status", "battery_status_default_test.html"); Can we remove all these ...
3 years, 8 months ago (2017-04-18 13:25:10 UTC) #14
leonhsl(Using Gerrit)
Hi, Tim, would you PTAL for OWNER review of content/browser/battery_status/*? Thanks! https://codereview.chromium.org/2819163002/diff/40001/content/browser/battery_status/battery_monitor_impl_browsertest.cc File content/browser/battery_status/battery_monitor_impl_browsertest.cc (left): ...
3 years, 8 months ago (2017-04-19 03:20:08 UTC) #23
leonhsl(Using Gerrit)
+kinuko@, would you please help to approve as //content OWNER? Seems Tim(battery codes OWNER) is ...
3 years, 8 months ago (2017-04-21 08:46:55 UTC) #27
kinuko
content lgtm
3 years, 8 months ago (2017-04-21 09:06:21 UTC) #28
leonhsl(Using Gerrit)
According the discussions at https://groups.google.com/a/chromium.org/forum/?utm_medium=email&utm_source=footer#!msg/services-dev/lJCKAElWz-E/1_RT3z1NBgAJ about how to handle these browser tests verifying features hosted ...
3 years, 8 months ago (2017-04-24 11:53:27 UTC) #29
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/2819163002/80001
3 years, 8 months ago (2017-04-24 11:54:38 UTC) #33
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/437362)
3 years, 8 months ago (2017-04-24 14:35:40 UTC) #35
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/2819163002/80001
3 years, 8 months ago (2017-04-24 23:36:52 UTC) #37
commit-bot: I haz the power
3 years, 8 months ago (2017-04-25 00:18:52 UTC) #40
Message was sent while issue was closed.
Committed patchset #3 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/b3592f9117184c7f54aeff8fcbe9...

Powered by Google App Engine
This is Rietveld 408576698