OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 | 5 |
6 import logging | 6 import logging |
7 import os | 7 import os |
8 | 8 |
9 from pylib import constants | 9 from pylib import constants |
10 from pylib import ports | 10 from pylib import ports |
11 from pylib.base import test_run | 11 from pylib.base import test_run |
12 from pylib.device import device_errors | 12 from pylib.device import device_errors |
13 from pylib.gtest import gtest_test_instance | 13 from pylib.gtest import gtest_test_instance |
14 | 14 |
15 from pylib.local import local_test_server_spawner | 15 from pylib.local import local_test_server_spawner |
16 from pylib.local.device import local_device_environment | 16 from pylib.local.device import local_device_environment |
17 from pylib.local.device import local_device_test_run | 17 from pylib.local.device import local_device_test_run |
18 from pylib.utils import apk_helper | 18 from pylib.utils import apk_helper |
19 from pylib.utils import device_temp_file | 19 from pylib.utils import device_temp_file |
20 | 20 |
21 _COMMAND_LINE_FLAGS_SUPPORTED = True | 21 _COMMAND_LINE_FLAGS_SUPPORTED = True |
22 | 22 |
23 _EXTRA_COMMAND_LINE_FILE = ( | 23 _EXTRA_COMMAND_LINE_FILE = ( |
24 'org.chromium.native_test.ChromeNativeTestActivity.CommandLineFile') | 24 'org.chromium.native_test.NativeTestActivity.CommandLineFile') |
25 _EXTRA_COMMAND_LINE_FLAGS = ( | 25 _EXTRA_COMMAND_LINE_FLAGS = ( |
26 'org.chromium.native_test.ChromeNativeTestActivity.CommandLineFlags') | 26 'org.chromium.native_test.NativeTestActivity.CommandLineFlags') |
27 | 27 |
28 _MAX_SHARD_SIZE = 256 | 28 _MAX_SHARD_SIZE = 256 |
29 | 29 |
30 # TODO(jbudorick): Move this up to the test instance if the net test server is | 30 # TODO(jbudorick): Move this up to the test instance if the net test server is |
31 # handled outside of the APK for the remote_device environment. | 31 # handled outside of the APK for the remote_device environment. |
32 _SUITE_REQUIRES_TEST_SERVER_SPAWNER = [ | 32 _SUITE_REQUIRES_TEST_SERVER_SPAWNER = [ |
33 'components_browsertests', 'content_unittests', 'content_browsertests', | 33 'components_browsertests', 'content_unittests', 'content_browsertests', |
34 'net_unittests', 'unit_tests' | 34 'net_unittests', 'unit_tests' |
35 ] | 35 ] |
36 | 36 |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 return results | 197 return results |
198 | 198 |
199 #override | 199 #override |
200 def TearDown(self): | 200 def TearDown(self): |
201 def individual_device_tear_down(dev): | 201 def individual_device_tear_down(dev): |
202 for s in self._servers[str(dev)]: | 202 for s in self._servers[str(dev)]: |
203 s.TearDown() | 203 s.TearDown() |
204 | 204 |
205 self._env.parallel_devices.pMap(individual_device_tear_down) | 205 self._env.parallel_devices.pMap(individual_device_tear_down) |
206 | 206 |
OLD | NEW |