| OLD | NEW |
| 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 devil.android import apk_helper | 9 from devil.android import apk_helper |
| 10 from pylib.instrumentation import test_jar | 10 from pylib.instrumentation import test_jar |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 def GetPackageName(self): | 32 def GetPackageName(self): |
| 33 """Returns the package name of this APK.""" | 33 """Returns the package name of this APK.""" |
| 34 return self._package_name | 34 return self._package_name |
| 35 | 35 |
| 36 # Override. | 36 # Override. |
| 37 def Install(self, device): | 37 def Install(self, device): |
| 38 device.Install(self.GetApkPath()) | 38 device.Install(self.GetApkPath()) |
| 39 if (self._test_support_apk_path and | 39 if (self._test_support_apk_path and |
| 40 os.path.exists(self._test_support_apk_path)): | 40 os.path.exists(self._test_support_apk_path)): |
| 41 device.Install(self._test_support_apk_path) | 41 device.Install(self._test_support_apk_path) |
| 42 | |
| OLD | NEW |