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

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

Issue 806843002: Reland of Migrate DeviceUtils.ReadFile to adb_wrapper (try 3) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: enable command line test only for android Created 5 years, 11 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/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 43e9f72f72f3185a3d80ad039eba60dcdffa1102..b40baa22c191273e3d1eb48e7911a9204ab59b1a 100644
--- a/tools/telemetry/telemetry/core/platform/android_platform_backend_unittest.py
+++ b/tools/telemetry/telemetry/core/platform/android_platform_backend_unittest.py
@@ -27,12 +27,12 @@ class AndroidPlatformBackendTest(unittest.TestCase):
@decorators.Disabled('chromeos')
def testGetCpuStats(self):
- proc_stat_content = [
+ proc_stat_content = (
'7702 (.android.chrome) S 167 167 0 0 -1 1077936448 '
'3247 0 0 0 4 1 0 0 20 0 9 0 5603962 337379328 5867 '
'4294967295 1074458624 1074463824 3197495984 3197494152 '
'1074767676 0 4612 0 38136 4294967295 0 0 17 0 0 0 0 0 0 '
- '1074470376 1074470912 1102155776']
+ '1074470376 1074470912 1102155776\n')
self._stubs.adb_commands.adb_device.mock_content = proc_stat_content
old_interface = self._stubs.adb_commands.adb_device.old_interface
old_interface.can_access_protected_file_contents = True

Powered by Google App Engine
This is Rietveld 408576698