Commit 3042f15a authored by Wez's avatar Wez Committed by Commit Bot

Rename Android's cronet_unittests target to cronet_unittests_android.

We are introducing a cross-platform version of cronet_unittests,
initially for Linux, Mac and Fuchsia, so having the special Android-
specific test binary with the same name makes it impossible to set up
the GN isolate mapping correctly.

Bug: 808075
Cq-Include-Trybots: master.tryserver.chromium.android:android_cronet_tester;master.tryserver.chromium.mac:ios-simulator-cronet
Change-Id: I104259ab0ab9f3533600665555d67946bb39fcfc
Reviewed-on: https://chromium-review.googlesource.com/933591Reviewed-by: default avatarJohn Budorick <jbudorick@chromium.org>
Reviewed-by: default avatarAndrei Kapishnikov <kapishnikov@chromium.org>
Commit-Queue: Wez <wez@chromium.org>
Cr-Commit-Position: refs/heads/master@{#538962}
parent a27eebae
...@@ -325,7 +325,7 @@ group("gn_all") { ...@@ -325,7 +325,7 @@ group("gn_all") {
"//components/cronet/android:cronet_sample_test_apk", "//components/cronet/android:cronet_sample_test_apk",
"//components/cronet/android:cronet_test_apk", "//components/cronet/android:cronet_test_apk",
"//components/cronet/android:cronet_test_instrumentation_apk", "//components/cronet/android:cronet_test_instrumentation_apk",
"//components/cronet/android:cronet_unittests", "//components/cronet/android:cronet_unittests_android",
] ]
} }
......
...@@ -835,7 +835,7 @@ android_apk("cronet_perf_test_apk") { ...@@ -835,7 +835,7 @@ android_apk("cronet_perf_test_apk") {
] ]
} }
test("cronet_unittests") { test("cronet_unittests_android") {
sources = [ sources = [
"//components/cronet/android/cert/cert_verifier_cache_serializer_unittest.cc", "//components/cronet/android/cert/cert_verifier_cache_serializer_unittest.cc",
] ]
......
...@@ -74,7 +74,7 @@ command. For example: ...@@ -74,7 +74,7 @@ command. For example:
$ ./components/cronet/tools/cr_cronet.py build-test -f QuicTest#testQuicLoadUrl $ ./components/cronet/tools/cr_cronet.py build-test -f QuicTest#testQuicLoadUrl
``` ```
#### Running net_unittests and cronet_unittests #### Running net_unittests and cronet_unittests_android
To run C++ and Java unit tests of net/ functionality: To run C++ and Java unit tests of net/ functionality:
...@@ -87,8 +87,8 @@ $ ./out/Debug/bin/run_net_unittests --fast-local-dev ...@@ -87,8 +87,8 @@ $ ./out/Debug/bin/run_net_unittests --fast-local-dev
For more information about running net_unittests, read For more information about running net_unittests, read
[Android Test Instructions](../../../docs/android_test_instructions.md). [Android Test Instructions](../../../docs/android_test_instructions.md).
There are a small number of C++ Cronet unit tests, called cronet_unittests, that There are a small number of C++ Cronet unit tests, called cronet_unittests_android, that
can be run by following the above instructions and substituting cronet_unittests can be run by following the above instructions and substituting cronet_unittests_android
for net_unittests. for net_unittests.
#### Running Cronet performance tests #### Running Cronet performance tests
......
...@@ -34,7 +34,7 @@ def test(out_dir, extra_options): ...@@ -34,7 +34,7 @@ def test(out_dir, extra_options):
def unittest(out_dir, extra_options): def unittest(out_dir, extra_options):
return run(out_dir + '/bin/run_cronet_unittests ' + \ return run(out_dir + '/bin/run_cronet_unittests_android ' + \
extra_options) extra_options)
...@@ -112,7 +112,7 @@ def main(): ...@@ -112,7 +112,7 @@ def main():
else: else:
target_os = 'android' target_os = 'android'
test_target = 'cronet_test_instrumentation_apk' test_target = 'cronet_test_instrumentation_apk'
unit_target = 'cronet_unittests' unit_target = 'cronet_unittests_android'
gn_args = 'use_errorprone_java_compiler=true ' gn_args = 'use_errorprone_java_compiler=true '
gn_extra = '' gn_extra = ''
out_dir_suffix = '' out_dir_suffix = ''
......
...@@ -186,7 +186,7 @@ ...@@ -186,7 +186,7 @@
"--bucket", "--bucket",
"chromium-result-details", "chromium-result-details",
"--test-name", "--test-name",
"cronet_unittests" "cronet_unittests_android"
], ],
"script": "//build/android/pylib/results/presentation/test_results_presentation.py" "script": "//build/android/pylib/results/presentation/test_results_presentation.py"
}, },
...@@ -217,7 +217,7 @@ ...@@ -217,7 +217,7 @@
} }
] ]
}, },
"test": "cronet_unittests" "test": "cronet_unittests_android"
}, },
{ {
"args": [ "args": [
...@@ -294,7 +294,7 @@ ...@@ -294,7 +294,7 @@
"swarming": { "swarming": {
"can_use_on_swarming_builders": false "can_use_on_swarming_builders": false
}, },
"test": "cronet_unittests" "test": "cronet_unittests_android"
}, },
{ {
"swarming": { "swarming": {
...@@ -489,7 +489,7 @@ ...@@ -489,7 +489,7 @@
"--bucket", "--bucket",
"chromium-result-details", "chromium-result-details",
"--test-name", "--test-name",
"cronet_unittests" "cronet_unittests_android"
], ],
"script": "//build/android/pylib/results/presentation/test_results_presentation.py" "script": "//build/android/pylib/results/presentation/test_results_presentation.py"
}, },
...@@ -520,7 +520,7 @@ ...@@ -520,7 +520,7 @@
} }
] ]
}, },
"test": "cronet_unittests" "test": "cronet_unittests_android"
}, },
{ {
"args": [ "args": [
......
...@@ -181,7 +181,7 @@ ...@@ -181,7 +181,7 @@
} }
] ]
}, },
"test": "cronet_unittests" "test": "cronet_unittests_android"
}, },
{ {
"args": [ "args": [
...@@ -249,7 +249,7 @@ ...@@ -249,7 +249,7 @@
"swarming": { "swarming": {
"can_use_on_swarming_builders": false "can_use_on_swarming_builders": false
}, },
"test": "cronet_unittests" "test": "cronet_unittests_android"
}, },
{ {
"swarming": { "swarming": {
...@@ -429,7 +429,7 @@ ...@@ -429,7 +429,7 @@
} }
] ]
}, },
"test": "cronet_unittests" "test": "cronet_unittests_android"
}, },
{ {
"args": [ "args": [
......
...@@ -446,6 +446,10 @@ ...@@ -446,6 +446,10 @@
"label": "//components/cronet/ios/test:cronet_test", "label": "//components/cronet/ios/test:cronet_test",
"type": "raw", "type": "raw",
}, },
"cronet_unittests_android": {
"label": "//components/cronet/android:cronet_unittests_android",
"type": "console_test_launcher",
},
"cronet_unittests_ios": { "cronet_unittests_ios": {
"label": "//components/cronet/ios:cronet_unittests_ios", "label": "//components/cronet/ios:cronet_unittests_ios",
"type": "raw", "type": "raw",
...@@ -454,10 +458,6 @@ ...@@ -454,10 +458,6 @@
"label": "//components/cronet/android:cronet_test_instrumentation_apk", "label": "//components/cronet/android:cronet_test_instrumentation_apk",
"type": "additional_compile_target", "type": "additional_compile_target",
}, },
"cronet_unittests": {
"label": "//components/cronet/android:cronet_unittests",
"type": "console_test_launcher",
},
"crypto_unittests": { "crypto_unittests": {
"label": "//crypto:crypto_unittests", "label": "//crypto:crypto_unittests",
"type": "console_test_launcher", "type": "console_test_launcher",
......
...@@ -740,7 +740,7 @@ ...@@ -740,7 +740,7 @@
'hard_timeout': 600, 'hard_timeout': 600,
}, },
}, },
'cronet_unittests': { 'cronet_unittests_android': {
'swarming': { 'swarming': {
'hard_timeout': 300, 'hard_timeout': 300,
}, },
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment