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

Side by Side Diff: build/android/pylib/linker/test_case.py

Issue 1314313004: [Android][telemetry] Update pylib imports for modules that moved into devil. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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
« no previous file with comments | « build/android/pylib/junit/test_runner.py ('k') | build/android/pylib/linker/test_runner.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2013 The Chromium Authors. All rights reserved. 1 # Copyright 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 """Base class for linker-specific test cases. 5 """Base class for linker-specific test cases.
6 6
7 The custom dynamic linker can only be tested through a custom test case 7 The custom dynamic linker can only be tested through a custom test case
8 for various technical reasons: 8 for various technical reasons:
9 9
10 - It's an 'invisible feature', i.e. it doesn't expose a new API or 10 - It's an 'invisible feature', i.e. it doesn't expose a new API or
(...skipping 22 matching lines...) Expand all
33 build/android/test_runner.py linker 33 build/android/test_runner.py linker
34 34
35 """ 35 """
36 # pylint: disable=R0201 36 # pylint: disable=R0201
37 37
38 import logging 38 import logging
39 import os 39 import os
40 import re 40 import re
41 import time 41 import time
42 42
43 from devil.android import device_errors
44 from devil.android.sdk import intent
43 from pylib import constants 45 from pylib import constants
44 from pylib.base import base_test_result 46 from pylib.base import base_test_result
45 from pylib.device import device_errors
46 from pylib.device import intent
47 47
48 48
49 ResultType = base_test_result.ResultType 49 ResultType = base_test_result.ResultType
50 50
51 _PACKAGE_NAME = 'org.chromium.chromium_linker_test_apk' 51 _PACKAGE_NAME = 'org.chromium.chromium_linker_test_apk'
52 _ACTIVITY_NAME = '.ChromiumLinkerTestActivity' 52 _ACTIVITY_NAME = '.ChromiumLinkerTestActivity'
53 _COMMAND_LINE_FILE = '/data/local/tmp/chromium-linker-test-command-line' 53 _COMMAND_LINE_FILE = '/data/local/tmp/chromium-linker-test-command-line'
54 54
55 # Logcat filters used during each test. Only the 'chromium' one is really 55 # Logcat filters used during each test. Only the 'chromium' one is really
56 # needed, but the logs are added to the TestResult in case of error, and 56 # needed, but the logs are added to the TestResult in case of error, and
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 221
222 Note that there can be other lines beginning with BROWSER_LINKER_TEST: 222 Note that there can be other lines beginning with BROWSER_LINKER_TEST:
223 and RENDERER_LINKER_TEST:, but are not followed by a <status> code. 223 and RENDERER_LINKER_TEST:, but are not followed by a <status> code.
224 224
225 - The test case passes if the <status> for both the browser and renderer 225 - The test case passes if the <status> for both the browser and renderer
226 process are SUCCESS. Otherwise its a fail. 226 process are SUCCESS. Otherwise its a fail.
227 """ 227 """
228 def _RunTest(self, device): 228 def _RunTest(self, device):
229 # Wait up to 30 seconds until the linker test status is in the logcat. 229 # Wait up to 30 seconds until the linker test status is in the logcat.
230 return _StartActivityAndWaitForLinkerTestStatus(device, timeout=30) 230 return _StartActivityAndWaitForLinkerTestStatus(device, timeout=30)
OLDNEW
« no previous file with comments | « build/android/pylib/junit/test_runner.py ('k') | build/android/pylib/linker/test_runner.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698