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

Unified Diff: tools/telemetry/telemetry/core/platform/power_monitor/powermetrics_power_monitor_unittest.py

Issue 337753002: [Telemetry] Use total power measurement calculated by `powermetrics` (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More precise math Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/telemetry/telemetry/core/platform/power_monitor/powermetrics_power_monitor.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/telemetry/telemetry/core/platform/power_monitor/powermetrics_power_monitor_unittest.py
diff --git a/tools/telemetry/telemetry/core/platform/power_monitor/powermetrics_power_monitor_unittest.py b/tools/telemetry/telemetry/core/platform/power_monitor/powermetrics_power_monitor_unittest.py
index 02907d9352134b3a615d2160193584f323c65ace..8323ff8f905f56efef0de1c2270eaaa2e8e08dd8 100644
--- a/tools/telemetry/telemetry/core/platform/power_monitor/powermetrics_power_monitor_unittest.py
+++ b/tools/telemetry/telemetry/core/platform/power_monitor/powermetrics_power_monitor_unittest.py
@@ -48,7 +48,6 @@ class PowerMetricsPowerMonitorTest(unittest.TestCase):
# Supported hardware reports power samples and energy consumption.
result = getOutput('powermetrics_output.output')
- self.assertTrue(len(result['power_samples_mw']) > 1)
self.assertTrue(result['energy_consumption_mwh'] > 0)
# Verify that all component entries exist in output.
@@ -59,5 +58,4 @@ class PowerMetricsPowerMonitorTest(unittest.TestCase):
# Unsupported hardware doesn't.
result = getOutput('powermetrics_output_unsupported_hardware.output')
- self.assertNotIn('power_samples_mw', result)
self.assertNotIn('energy_consumption_mwh', result)
« no previous file with comments | « tools/telemetry/telemetry/core/platform/power_monitor/powermetrics_power_monitor.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698