OLD | NEW |
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 """Finds android browsers that can be controlled by telemetry.""" | 5 """Finds android browsers that can be controlled by telemetry.""" |
6 | 6 |
7 import os | 7 import os |
8 import logging as real_logging | 8 import logging as real_logging |
9 import re | 9 import re |
10 import subprocess | 10 import subprocess |
(...skipping 11 matching lines...) Expand all Loading... |
22 CHROME_PACKAGE_NAMES = { | 22 CHROME_PACKAGE_NAMES = { |
23 'android-content-shell': | 23 'android-content-shell': |
24 ['org.chromium.content_shell_apk', | 24 ['org.chromium.content_shell_apk', |
25 android_browser_backend.ContentShellBackendSettings, | 25 android_browser_backend.ContentShellBackendSettings, |
26 'ContentShell.apk'], | 26 'ContentShell.apk'], |
27 # TODO(tonyg): rename android-chromium-testshell to android-chrome-shell | 27 # TODO(tonyg): rename android-chromium-testshell to android-chrome-shell |
28 'android-chromium-testshell': | 28 'android-chromium-testshell': |
29 ['org.chromium.chrome.shell', | 29 ['org.chromium.chrome.shell', |
30 android_browser_backend.ChromeShellBackendSettings, | 30 android_browser_backend.ChromeShellBackendSettings, |
31 'ChromeShell.apk'], | 31 'ChromeShell.apk'], |
| 32 'android-chrome-shell': |
| 33 ['org.chromium.chrome.shell', |
| 34 android_browser_backend.ChromeShellBackendSettings, |
| 35 'ChromeShell.apk'], |
32 'android-webview': | 36 'android-webview': |
33 ['com.android.webview.chromium.shell', | 37 ['com.android.webview.chromium.shell', |
34 android_browser_backend.WebviewBackendSettings, | 38 android_browser_backend.WebviewBackendSettings, |
35 None], | 39 None], |
36 'android-chrome': | 40 'android-chrome': |
37 ['com.google.android.apps.chrome', | 41 ['com.google.android.apps.chrome', |
38 android_browser_backend.ChromeBackendSettings, | 42 android_browser_backend.ChromeBackendSettings, |
39 'Chrome.apk'], | 43 'Chrome.apk'], |
40 'android-chrome-beta': | 44 'android-chrome-beta': |
41 ['com.chrome.beta', | 45 ['com.chrome.beta', |
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
243 if possible_browsers: | 247 if possible_browsers: |
244 installed_prebuilt_tools = adb_commands.SetupPrebuiltTools(adb) | 248 installed_prebuilt_tools = adb_commands.SetupPrebuiltTools(adb) |
245 if not installed_prebuilt_tools: | 249 if not installed_prebuilt_tools: |
246 logging.error( | 250 logging.error( |
247 'Android device detected, however prebuilt android tools could not ' | 251 'Android device detected, however prebuilt android tools could not ' |
248 'be used. To run on Android you must build them first:\n' | 252 'be used. To run on Android you must build them first:\n' |
249 ' $ ninja -C out/Release android_tools') | 253 ' $ ninja -C out/Release android_tools') |
250 return [] | 254 return [] |
251 | 255 |
252 return possible_browsers | 256 return possible_browsers |
OLD | NEW |