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

Unified Diff: tools/telemetry/telemetry/core/platform/platform_backend_unittest.py

Issue 222413002: Adding dumpsys based power monitor for android. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Follow review Created 6 years, 9 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
Index: tools/telemetry/telemetry/core/platform/platform_backend_unittest.py
diff --git a/tools/telemetry/telemetry/core/platform/platform_backend_unittest.py b/tools/telemetry/telemetry/core/platform/platform_backend_unittest.py
deleted file mode 100644
index 4909349d7fd4b5101910981155e141815063aa9a..0000000000000000000000000000000000000000
--- a/tools/telemetry/telemetry/core/platform/platform_backend_unittest.py
+++ /dev/null
@@ -1,21 +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 unittest
-
-from telemetry.core.platform import factory
-
-
-class PlatformBackendTest(unittest.TestCase):
- def testPowerMonitoringSync(self):
jeremy 2014/04/03 11:16:30 Please don't delete this unit test - this is the o
qsr 2014/04/03 12:02:43 Done.
- # Tests that the act of monitoring power doesn't blow up.
- backend = factory.GetPlatformBackendForCurrentOS()
- if not backend.CanMonitorPowerSync():
- logging.warning('Test not supported on this platform.')
- return
-
- output = backend.MonitorPowerSync(1)
- self.assertTrue(output.has_key('power_samples_mw'))
- self.assertTrue(output.has_key('identifier'))

Powered by Google App Engine
This is Rietveld 408576698