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

Side by Side Diff: build/android/pylib/instrumentation/test_package.py

Issue 292313015: [Android] Switch to DeviceUtils versions of Reboot and Install. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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 unified diff | Download patch
OLDNEW
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 """Class representing instrumentation test apk and jar.""" 5 """Class representing instrumentation test apk and jar."""
6 6
7 import os 7 import os
8 8
9 from pylib.instrumentation import test_jar 9 from pylib.instrumentation import test_jar
10 from pylib.utils import apk_helper 10 from pylib.utils import apk_helper
(...skipping 16 matching lines...) Expand all
27 def GetApkName(self): 27 def GetApkName(self):
28 """Returns the name of the apk without the suffix.""" 28 """Returns the name of the apk without the suffix."""
29 return self._apk_name 29 return self._apk_name
30 30
31 def GetPackageName(self): 31 def GetPackageName(self):
32 """Returns the package name of this APK.""" 32 """Returns the package name of this APK."""
33 return self._package_name 33 return self._package_name
34 34
35 # Override. 35 # Override.
36 def Install(self, device): 36 def Install(self, device):
37 device.old_interface.ManagedInstall( 37 device.Install(self.GetApkPath())
38 self.GetApkPath(), package_name=self.GetPackageName())
39 38
OLDNEW
« no previous file with comments | « build/android/pylib/gtest/test_package_apk.py ('k') | build/android/pylib/instrumentation/test_runner.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698