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 789043003: [Telemetry] Disable testPowerMonitoringSync test on Mac & cleanup test macros (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove blankline Created 6 years 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/posix_platform_backend_unittest.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 b31667d74df42bf949fe4b896361c3b341927dc4..87e5b304757f6717351ee05d9d7499f663b6ef55 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
@@ -6,11 +6,11 @@ import logging
import os
import unittest
-from telemetry import benchmark
from telemetry.core import util
from telemetry.core.platform import mac_platform_backend
from telemetry.core.platform import platform_backend
from telemetry.core.platform.power_monitor import powermetrics_power_monitor
+from telemetry.unittest_util import test
def _parsePowerMetricsDataFromTestFile(output_file):
@@ -22,7 +22,7 @@ def _parsePowerMetricsDataFromTestFile(output_file):
class PowerMetricsPowerMonitorTest(unittest.TestCase):
- @benchmark.Enabled('mac')
+ @test.Enabled('mac')
def testCanMonitorPowerUsage(self):
backend = mac_platform_backend.MacPlatformBackend()
power_monitor = powermetrics_power_monitor.PowerMetricsPowerMonitor(backend)
@@ -32,19 +32,19 @@ class PowerMetricsPowerMonitorTest(unittest.TestCase):
self.assertEqual(power_monitor.CanMonitorPower(), mavericks_or_later,
"Error checking powermetrics availability: '%s'" % '|'.join(os.uname()))
- @benchmark.Enabled('mac')
+ @test.Enabled('mac')
def testParseEmptyPowerMetricsOutput(self):
# Important to handle zero length powermetrics outout - crbug.com/353250 .
self.assertIsNone(powermetrics_power_monitor.PowerMetricsPowerMonitor.
ParsePowerMetricsOutput(''))
- @benchmark.Enabled('mac')
+ @test.Enabled('mac')
def testParsePowerMetricsOutputFromVM(self):
# Don't fail when running on VM - crbug.com/423688.
self.assertEquals({},
_parsePowerMetricsDataFromTestFile('powermetrics_vmware.output'))
- @benchmark.Enabled('mac')
+ @test.Enabled('mac')
def testParsePowerMetricsOutput(self):
power_monitor = powermetrics_power_monitor.PowerMetricsPowerMonitor(
mac_platform_backend.MacPlatformBackend())
« no previous file with comments | « tools/telemetry/telemetry/core/platform/posix_platform_backend_unittest.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698