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

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

Issue 358993003: [Android] Switch to DeviceUtils versions of file functions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 6 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 c196c4db8bbf33618fdb3ecae0c20be3b3b2490f..fd1b6e0bed47e37f7c3633d9ca5f7d5c90cea148 100644
--- a/tools/telemetry/telemetry/core/platform/android_platform_backend_unittest.py
+++ b/tools/telemetry/telemetry/core/platform/android_platform_backend_unittest.py
@@ -34,6 +34,9 @@ class MockDevice(object):
def __init__(self, mock_adb_commands):
self.old_interface = mock_adb_commands
+ def ReadFile(self, device_path, as_root=False): # pylint: disable=W0613
+ return self.old_interface.GetProtectedFileContents(device_path)
+
class AndroidPlatformBackendTest(unittest.TestCase):
def setUp(self):

Powered by Google App Engine
This is Rietveld 408576698