DescriptionCronet smoke tests
1. Added test support classes that allow running the smoke tests in
different environments against different servers. There is one
support class for Java-only tests and one that requires H2 & QUIC.
The concrete implementation of support classes is determined at
runtime by reading the value of |TestSupportImplClass| from the
Android string resource file.
2. Added two test APKs one for Java only deployment and one to test
behavior when the native “.so” file is absent.
3. Enabled proguarding for the existing unit tests. The new APKS also
run proguard in order to check the correctness of proguard configs
for different deployments.
4. Added new HttpServer for Java-only scenario that does not depend on
Chromium “base” and “net” modules.
5. Added two additional smoke QUIC & H2 tests to the existing test APK.
To run all smoke tests, execute:
ninja -C out/Debug cronet_smoketests_platform_only_instrumentation_apk \
cronet_smoketests_missing_native_library_instrumentation_apk \
cronet_test_instrumentation_apk -j 240 && \
./out/Debug/bin/run_cronet_smoketests_platform_only_instrumentation_apk && \
./out/Debug/bin/run_cronet_smoketests_missing_native_library_instrumentation_apk && \
./out/Debug/bin/run_cronet_test_instrumentation_apk \
--test-filter=org.chromium.net.smoke.*
The output jars that contain the smoke tests:
./out/Debug/lib.java/components/cronet/android/cronet_smoketests_missing_native_library_java.jar
./out/Debug/lib.java/components/cronet/android/cronet_smoketests_native_java.jar
./out/Debug/lib.java/components/cronet/android/cronet_smoketests_platform_only_java.jar
BUG=669264
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.android:android_cronet_tester
Committed: https://crrev.com/7a4cba9f6d608b3347984e3aaa6f7dfd1d9f63b3
Cr-Commit-Position: refs/heads/master@{#440760}
Patch Set 1 #Patch Set 2 : Rebase #
Total comments: 16
Patch Set 3 : Addressed Helen's comments #Patch Set 4 : Renamed ChromiumQuicTestSupport to ChromiumNativeTestSupport #
Total comments: 27
Patch Set 5 : Addressed some of Misha's comments #Patch Set 6 : Re-implemented TestUrlRequestCallback. Got rid of API(19) requirement. #Patch Set 7 : Got rid of //base/android/proguard/chromium_apk.flags proguard config. #
Total comments: 41
Patch Set 8 : Addressed Misha's comments #Patch Set 9 : Changed @Smoke to @SmallTest #
Total comments: 9
Patch Set 10 : Code cleaning #Patch Set 11 : More cleaning #Patch Set 12 : Moved to android.support.test.filters & added support for network-security-config #Messages
Total messages: 32 (17 generated)
|