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

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

Issue 371813005: [Android] Switch to DeviceUtils versions of Ls, SetJavaAsserts, GetProp, and SetProp. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 5 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 fd1b6e0bed47e37f7c3633d9ca5f7d5c90cea148..73910bdbacd04010dfbef616d20fd78d36a825f8 100644
--- a/tools/telemetry/telemetry/core/platform/android_platform_backend_unittest.py
+++ b/tools/telemetry/telemetry/core/platform/android_platform_backend_unittest.py
@@ -37,6 +37,11 @@ class MockDevice(object):
def ReadFile(self, device_path, as_root=False): # pylint: disable=W0613
return self.old_interface.GetProtectedFileContents(device_path)
+ def GetProp(self, property_name):
+ return self.old_interface.system_properties[property_name]
+
+ def SetProp(self, property_name, property_value):
+ self.old_interface.system_properties[property_name] = property_value
class AndroidPlatformBackendTest(unittest.TestCase):
def setUp(self):

Powered by Google App Engine
This is Rietveld 408576698