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

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

Issue 684713003: Telemetry: Linux-based backends should return CPU results in seconds, not jiffies. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update android test Created 6 years, 2 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 | « no previous file | tools/telemetry/telemetry/core/platform/linux_based_platform_backend.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/telemetry/telemetry/core/platform/android_platform_backend_unittest.py
diff --git a/tools/telemetry/telemetry/core/platform/android_platform_backend_unittest.py b/tools/telemetry/telemetry/core/platform/android_platform_backend_unittest.py
index 99564d6ce2365b8bacb5f1a8663f588c94627862..764be189973a59fa5de551d3b95d3ac26dee5f04 100644
--- a/tools/telemetry/telemetry/core/platform/android_platform_backend_unittest.py
+++ b/tools/telemetry/telemetry/core/platform/android_platform_backend_unittest.py
@@ -33,7 +33,7 @@ class AndroidPlatformBackendTest(unittest.TestCase):
backend = android_platform_backend.AndroidPlatformBackend(
android_device.AndroidDevice('12345'))
cpu_stats = backend.GetCpuStats('7702')
- self.assertEquals(cpu_stats, {'CpuProcessTime': 5.0})
+ self.assertEquals(cpu_stats, {'CpuProcessTime': 0.05})
@benchmark.Disabled('chromeos')
def testGetCpuStatsInvalidPID(self):
« no previous file with comments | « no previous file | tools/telemetry/telemetry/core/platform/linux_based_platform_backend.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698