how to use ContentShell.apk to run WPT

572 views
Skip to first unread message

xie wen

unread,
Jan 17, 2024, 11:32:14 AMJan 17
to android-webview-dev
chromium tag:83.0.4103.106
using 'third_party/blink/tools/run_web_tests.py --android -t Release third_party/blink/web_tests/external/wpt/webrtc', but no response on phone.
the output is:

Using port 'android'

Test configuration: <kitkat, x86, debug>

View the test results at file:///chromium/src/out/Release/layout-test-results/results.html

Using random order with seed: 1705474136

Baseline search path: android -> linux -> win -> generic

Using Debug build

Regular timeout: 10000, slow test timeout: 50000

MainThread  Failed to set cpufreq/scaling_governor to 'ondemand' on any cpus

Command line: /chromium/src/out/Release/apks/ContentShell.apk --no-timeout --run-web-tests --ignore-certificate-errors-spki-list=Nxvaj3+bY3oVrTc+Jp7m3E3sB1n3lXtnMDCyBsqEXiY=,55qC1nKu2A88ESbFmk5sTPQS/ScG+8DD7P+2bgFA9iM=,0Rt4mT6SJXojEMHTnKnlJ/hBKMBcI4kteBlhR1eTTdk= --user-data-dir --encode-binary --enable-crash-reporter --crash-dumps-dir=/data/local/tmp/content-shell-crash-dumps --enable-features=CookiesWithoutSameSiteMustBeSecure,SameSiteByDefaultCookies -


Found 123 tests; running 123, skipping 0.

debug: option build

Server running on http://localhost:8001

Server running on http://localhost:8081

Server running on https://localhost:8444

Server running on ws://localhost:9001

Server running on wss://localhost:9444

Server running on http://localhost:8000

Server running on http://localhost:8080

Server running on https://localhost:8443

Running 1 content_shell.


[0/123] external/wpt/webrtc/RTCPeerConnection-canTrickleIceCandidates.html

it stop at chromiumAndroidDriver._start_once waiting for process start:

self._read_prompt(deadline)
def _read_prompt(self, deadline):
last_char = ''
while True:
current_char = self._server_process.read_stdout(deadline, 1)
if current_char == ' ':
if last_char in ('#', '$'):
return
last_char = current_char

the process start:

proc = self._host.executive.popen(self._cmd, stdin=self._host.executive.PIPE,
stdout=self._host.executive.PIPE,
stderr=self._host.executive.PIPE,
close_fds=close_fds,
env=self._env)

and self._cmd:[u'/full/xiewen06/chromium/src/third_party/android_sdk/public/platform-tools/adb', '-s', android device number, 'shell']

firstly i use autoninja -C out/Default blink_tests, third_party/blink/tools/run_web_tests.py -t Default third_party/blink/web_tests/external/wpt/webrtc, it use content_shell and run well.

and i try to run WPT on android, so i changed args.gn(target_os = "android" target_cpu = "arm64"),and run ninja -C out/Default content_shell_apk. Using 'third_party/blink/tools/run_web_tests.py --android -t Default third_party/blink/web_tests/external/wpt/webrtc', and it said that can't find ContentShell.apk in third_party/out/Release, so i changed out/Default to out/Release, and meet this question.

Torne (Richard Coles)

unread,
Jan 17, 2024, 12:31:33 PMJan 17
to xie wen, android-webview-dev
ContentShell doesn't use WebView - even when running on Android it's just based directly on the Chromium //content layer. So, it's probably better to ask chromium-dev@ about this.

--
You received this message because you are subscribed to the Google Groups "android-webview-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-webview...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/android-webview-dev/4f060391-5827-4f5c-9a55-4eeebf45401an%40chromium.org.
Reply all
Reply to author
Forward
0 new messages