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

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

Issue 775333002: Migrate DeviceUtils.ReadFile to adb_wrapper (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix breakages in telemetry unittests Created 6 years 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 2e6637433acbb473f24e8ba6d73474f9b2b5af51..e252c14feb6abdabbfe415d16dbc3c17f1401aa5 100644
--- a/tools/telemetry/telemetry/core/platform/android_platform_backend_unittest.py
+++ b/tools/telemetry/telemetry/core/platform/android_platform_backend_unittest.py
@@ -22,12 +22,12 @@ class AndroidPlatformBackendTest(unittest.TestCase):
@benchmark.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