Cronet 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 Review-Url: https://codereview.chromium.org/2561803002 Cr-Commit-Position: refs/heads/master@{#440760}
Showing
Please register or sign in to comment