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

Unified Diff: telemetry/telemetry/internal/platform/power_monitor/msr_power_monitor_unittest.py

Issue 3017563002: BUG=catapult:#
Patch Set: Created 3 years, 3 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 | « telemetry/telemetry/internal/platform/power_monitor/msr_power_monitor.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: telemetry/telemetry/internal/platform/power_monitor/msr_power_monitor_unittest.py
diff --git a/telemetry/telemetry/internal/platform/power_monitor/msr_power_monitor_unittest.py b/telemetry/telemetry/internal/platform/power_monitor/msr_power_monitor_unittest.py
deleted file mode 100644
index fafb2fc9143f6179a5ea2370e16b100f7e6a4fff..0000000000000000000000000000000000000000
--- a/telemetry/telemetry/internal/platform/power_monitor/msr_power_monitor_unittest.py
+++ /dev/null
@@ -1,30 +0,0 @@
-# Copyright 2014 The Chromium Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-import logging
-import time
-import unittest
-
-from telemetry import decorators
-from telemetry.internal.platform.power_monitor import msr_power_monitor
-from telemetry.internal.platform import win_platform_backend
-
-
-class MsrPowerMonitorTest(unittest.TestCase):
- @decorators.Disabled('all') # http://crbug.com/712486
- #@decorators.Enabled('xp', 'win7', 'win8') # http://crbug.com/479337
- def testMsrRuns(self):
- platform_backend = win_platform_backend.WinPlatformBackend()
- power_monitor = msr_power_monitor.MsrPowerMonitorWin(platform_backend)
- if not power_monitor.CanMonitorPower():
- logging.warning('Test not supported on this platform.')
- return
-
- power_monitor.StartMonitoringPower(None)
- time.sleep(0.01)
- statistics = power_monitor.StopMonitoringPower()
-
- self.assertEqual(statistics['identifier'], 'msr')
- self.assertIn('energy_consumption_mwh', statistics)
- self.assertGreater(statistics['energy_consumption_mwh'], 0)
« no previous file with comments | « telemetry/telemetry/internal/platform/power_monitor/msr_power_monitor.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698