Files
rk35xx-android14/external/cronet/testing/android/docs/README.md
T
hmz007 36ed224bac Rockchip Anroid14_SDK 20240628-rkr5 (2556df1a)
Signed-off-by: hmz007 <hmz007@gmail.com>
Change-Id: Ib87fdbe7a0be7dc961af3500fe9ea4589a127f9f
2024-10-29 18:12:02 +08:00

3.0 KiB

Android Testing in Chromium

Concepts

  • Native Unit Tests: Normal Chromium unit tests based on the gtest framework. Tests for native code.
  • Java Unit Tests: JUnit tests that run on the host machine using Robolectric to emulate Android APIs.
  • Instrumentation Tests: JUnit tests that run on Android devices (or emulators).
    • Unit Instrumentation Tests: Instrumentation tests that test an individual feature. They do not require starting up ContentShell (or Chrome browser). These use BaseActivityTestRule or BlankUiTestActivityTestCase based on BaseActivityTestRule.
    • Integration Instrumentation Tests: Instrumentation tests that bring up ContentShell (or Chrome browser) to test a certain feature in the end-to-end flow. These typically use more specialized test rules such as ContentShellActivityTestRule or ChromeActivityTestRule.

How do I...

How does it work on Android?