| OLD | NEW |
| 1 # Android Test Instructions | 1 # Android Test Instructions |
| 2 | 2 |
| 3 [TOC] | 3 [TOC] |
| 4 | 4 |
| 5 ## Device Setup | 5 ## Device Setup |
| 6 | 6 |
| 7 ### Physical Device Setup | 7 ### Physical Device Setup |
| 8 | 8 |
| 9 #### ADB Debugging | 9 #### ADB Debugging |
| 10 | 10 |
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 199 for example, `content_junit_tests` and `chrome_junit_tests`. | 199 for example, `content_junit_tests` and `chrome_junit_tests`. |
| 200 | 200 |
| 201 When adding a new JUnit test, the associated `BUILD.gn` file must be updated. | 201 When adding a new JUnit test, the associated `BUILD.gn` file must be updated. |
| 202 For example, adding a test to `chrome_junit_tests` requires to update | 202 For example, adding a test to `chrome_junit_tests` requires to update |
| 203 `chrome/android/BUILD.gn`. If you are a GYP user, you will not need to do that | 203 `chrome/android/BUILD.gn`. If you are a GYP user, you will not need to do that |
| 204 step in order to run the test locally but it is still required for GN users to | 204 step in order to run the test locally but it is still required for GN users to |
| 205 run the test. | 205 run the test. |
| 206 | 206 |
| 207 ```shell | 207 ```shell |
| 208 # Build the test suite. | 208 # Build the test suite. |
| 209 ninja -C out/Release chrome_junit_tests | 209 ninja -C out/my_build chrome_junit_tests |
| 210 | 210 |
| 211 # Run the test suite. | 211 # Run the test suite. |
| 212 build/android/test_runner.py junit -s chrome_junit_tests --release -vvv | 212 BUILDTYPE=my_build build/android/test_runner.py junit -s chrome_junit_tests -vvv |
| 213 | 213 |
| 214 # Run a subset of tests. You might need to pass the package name for some tests. | 214 # Run a subset of tests. You might need to pass the package name for some tests. |
| 215 build/android/test_runner.py junit -s chrome_junit_tests --release -vvv | 215 BUILDTYPE=my_build build/android/test_runner.py junit -s chrome_junit_tests -vvv |
| 216 -f "org.chromium.chrome.browser.media.*" | 216 -f "org.chromium.chrome.browser.media.*" |
| 217 ``` | 217 ``` |
| 218 | 218 |
| 219 ## Gtests | 219 ## Gtests |
| 220 | 220 |
| 221 ```shell | 221 ```shell |
| 222 # Build a test suite | 222 # Build a test suite |
| 223 ninja -C out/Release content_unittests | 223 ninja -C out/Release content_unittests |
| 224 | 224 |
| 225 # Run a test suite | 225 # Run a test suite |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 306 | 306 |
| 307 See [Layout Tests](testing/layout_tests.md). | 307 See [Layout Tests](testing/layout_tests.md). |
| 308 | 308 |
| 309 ## Running GPU tests | 309 ## Running GPU tests |
| 310 | 310 |
| 311 (e.g. the "Android Debug (Nexus 7)" bot on the chromium.gpu waterfall) | 311 (e.g. the "Android Debug (Nexus 7)" bot on the chromium.gpu waterfall) |
| 312 | 312 |
| 313 See https://www.chromium.org/developers/testing/gpu-testing for details. Use | 313 See https://www.chromium.org/developers/testing/gpu-testing for details. Use |
| 314 `--browser=android-content-shell`. Examine the stdio from the test invocation on | 314 `--browser=android-content-shell`. Examine the stdio from the test invocation on |
| 315 the bots to see arguments to pass to `src/content/test/gpu/run_gpu_test.py`. | 315 the bots to see arguments to pass to `src/content/test/gpu/run_gpu_test.py`. |
| OLD | NEW |