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

Unified Diff: tools/telemetry/telemetry/internal/platform/power_monitor/android_ds2784_power_monitor_unittest.py

Issue 1243233002: [Android][Telemetry] Remove android_ds2784 power monitor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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/internal/platform/power_monitor/android_ds2784_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/internal/platform/power_monitor/android_ds2784_power_monitor_unittest.py
diff --git a/tools/telemetry/telemetry/internal/platform/power_monitor/android_ds2784_power_monitor_unittest.py b/tools/telemetry/telemetry/internal/platform/power_monitor/android_ds2784_power_monitor_unittest.py
deleted file mode 100644
index 15f0a9f5590f90ffd7d80fb01ba3d69eee9d4342..0000000000000000000000000000000000000000
--- a/tools/telemetry/telemetry/internal/platform/power_monitor/android_ds2784_power_monitor_unittest.py
+++ /dev/null
@@ -1,26 +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 unittest
-
-# pylint: disable=C0301
-from telemetry.internal.platform.power_monitor import android_ds2784_power_monitor
-# pylint: enable=C0301
-
-
-class DS2784PowerMonitorMonitorTest(unittest.TestCase):
- def testEnergyComsumption(self):
-
- data = ('0000 1000 -10 12\n'
- '1800 1000 -10 11\n'
- '3600 1000 -10 09\n'
- '5400 0000 -20 08\n'
- '7200 0000 -20 11\n'
- '9000 0000 -20 11\n')
- results = (
- android_ds2784_power_monitor.DS2784PowerMonitor.ParseSamplingOutput(
- data))
- self.assertEqual(results['power_samples_mw'], [1.2e-07, 1.1e-07, 9e-08,
- 1.6e-07, 2.2e-07, 2.2e-07])
- self.assertEqual(results['energy_consumption_mwh'], 2.1e-07)
« no previous file with comments | « tools/telemetry/telemetry/internal/platform/power_monitor/android_ds2784_power_monitor.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698