commit | b793785e34fc0316dab9f6fdc845bfc199c8098f | [log] [tgz] |
---|---|---|
author | danakj <[email protected]> | Tue Jun 04 16:44:33 2019 |
committer | Commit Bot <[email protected]> | Tue Jun 04 16:44:33 2019 |
tree | 8639bee22a896b916d217fb85586b68642d2c9dc | |
parent | 945f8ff653159d8c3e0afd9ed8c953189eb7e3a0 [diff] |
Add a java skeleton for running chrome browser tests on Android. This adds a ChromeBrowserTests java activity and application, based on content and components browser tests. It additionally sets up a ChromeBrowserInitializer which is needed before running the native setup of ChromeBrowserMainParts etc. The JNI_Onload runs the Chrome Android production path to set up a ContentShellDelegate, and unsets the product version number afterward as tests do no expect to have a version number. The test_activity.xml layout refers to a ShellManager as the java pieces are setting up the same UI as content-based browser tests for now. We will need to use more Chrome java pieces for the UI in order for tests to call out to java probably. But this gives a baseline framework that runs the //chrome C++ code in an Android browser test. We still need a BrowserTestBase subclass to provide the Test class so that we may begin writing browser tests on Android. We standardize the java code for content and components browser tests while writing the ChromeBrowserTestsApplication, based on the code in ChromeApplication and NativeUnitTest. In order to depend on NestedMessagePumpAndroid in browser tests, but not depend on WebTestSupport, we split the web_test_support target into two parts, and we depend on the NestedMessagePumpAndroid in each place it is used directly, which are the onload.cc files for each android browser test target. We remove dependencies on web_test_support from everywhere but content_shell_lib, where it is used. [email protected] Bug: 961849 Change-Id: I4212482849eaf52dc8b8c22070806572215a8905 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1633212 Commit-Queue: danakj <[email protected]> Reviewed-by: John Abd-El-Malek <[email protected]> Reviewed-by: John Budorick <[email protected]> Cr-Commit-Position: refs/heads/master@{#665950}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .