| OLD | NEW |
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 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 """Base class representing GTest test packages.""" | 5 """Base class representing GTest test packages.""" |
| 6 # pylint: disable=R0201 | 6 # pylint: disable=R0201 |
| 7 | 7 |
| 8 | 8 |
| 9 class TestPackage(object): | 9 class TestPackage(object): |
| 10 | 10 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 """Returns a list of all tests available in the test suite. | 38 """Returns a list of all tests available in the test suite. |
| 39 | 39 |
| 40 Args: | 40 Args: |
| 41 device: Instance of DeviceUtils. | 41 device: Instance of DeviceUtils. |
| 42 """ | 42 """ |
| 43 raise NotImplementedError('Method must be overridden.') | 43 raise NotImplementedError('Method must be overridden.') |
| 44 | 44 |
| 45 def GetGTestReturnCode(self, _device): | 45 def GetGTestReturnCode(self, _device): |
| 46 return None | 46 return None |
| 47 | 47 |
| 48 def SpawnTestProcess(self, device): | 48 def SpawnTestProcess(self, device, tests_run_in_subthread): |
| 49 """Spawn the test process. | 49 """Spawn the test process. |
| 50 | 50 |
| 51 Args: | 51 Args: |
| 52 device: Instance of DeviceUtils. | 52 device: Instance of DeviceUtils. |
| 53 tests_run_in_subthread: true if the tests should run in a subthread. |
| 53 | 54 |
| 54 Returns: | 55 Returns: |
| 55 An instance of pexpect spawn class. | 56 An instance of pexpect spawn class. |
| 56 """ | 57 """ |
| 57 raise NotImplementedError('Method must be overridden.') | 58 raise NotImplementedError('Method must be overridden.') |
| 58 | 59 |
| 59 def Install(self, device): | 60 def Install(self, device): |
| 60 """Install the test package to the device. | 61 """Install the test package to the device. |
| 61 | 62 |
| 62 Args: | 63 Args: |
| 63 device: Instance of DeviceUtils. | 64 device: Instance of DeviceUtils. |
| 64 """ | 65 """ |
| 65 raise NotImplementedError('Method must be overridden.') | 66 raise NotImplementedError('Method must be overridden.') |
| 66 | 67 |
| 67 def PullAppFiles(self, device, files, directory): | 68 def PullAppFiles(self, device, files, directory): |
| 68 """Pull application data from the device. | 69 """Pull application data from the device. |
| 69 | 70 |
| 70 Args: | 71 Args: |
| 71 device: Instance of DeviceUtils. | 72 device: Instance of DeviceUtils. |
| 72 files: A list of paths relative to the application data directory to | 73 files: A list of paths relative to the application data directory to |
| 73 retrieve from the device. | 74 retrieve from the device. |
| 74 directory: The host directory to which files should be pulled. | 75 directory: The host directory to which files should be pulled. |
| 75 """ | 76 """ |
| 76 raise NotImplementedError('Method must be overridden.') | 77 raise NotImplementedError('Method must be overridden.') |
| OLD | NEW |