Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(214)

Unified Diff: components/cronet/android/BUILD.gn

Issue 2561803002: Cronet smoke tests (Closed)
Patch Set: Moved to android.support.test.filters & added support for network-security-config Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | components/cronet/android/cronet_impl_common_proguard.cfg » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/cronet/android/BUILD.gn
diff --git a/components/cronet/android/BUILD.gn b/components/cronet/android/BUILD.gn
index 24bd00203289543dfccbcc164e9f53c4bd0d0740..21eabaaa157a98c98c81e317663bea3767a52b76 100644
--- a/components/cronet/android/BUILD.gn
+++ b/components/cronet/android/BUILD.gn
@@ -553,7 +553,10 @@ shared_library("cronet_tests") {
android_resources("cronet_test_apk_resources") {
testonly = true
- resource_dirs = [ "test/res" ]
+ resource_dirs = [
+ "test/res",
+ "test/smoketests/res/native",
+ ]
android_manifest = "test/AndroidManifest.xml"
}
@@ -588,6 +591,35 @@ android_library("cronet_test_apk_java") {
run_findbugs_override = true
}
+cronet_smoketests_platform_only_common_srcs = [
+ "test/smoketests/src/org/chromium/net/smoke/ChromiumPlatformOnlyTestSupport.java",
+ "test/smoketests/src/org/chromium/net/smoke/CronetSmokeTestCase.java",
+ "test/smoketests/src/org/chromium/net/smoke/HttpTestServer.java",
+ "test/smoketests/src/org/chromium/net/smoke/SmokeTestRequestCallback.java",
+ "test/smoketests/src/org/chromium/net/smoke/TestSupport.java",
+]
+
+cronet_smoketests_native_common_srcs = cronet_smoketests_platform_only_common_srcs + [
+ "test/smoketests/src/org/chromium/net/smoke/ChromiumNativeTestSupport.java",
+ "test/smoketests/src/org/chromium/net/smoke/NativeCronetTestCase.java",
+ ]
+
+android_library("cronet_smoketests_native_java") {
+ testonly = true
+ java_files = [
+ "test/smoketests/src/org/chromium/net/smoke/Http2Test.java",
+ "test/smoketests/src/org/chromium/net/smoke/QuicTest.java",
+ ] + cronet_smoketests_native_common_srcs
+
+ deps = [
+ ":cronet_api_java",
+ ":cronet_test_apk_java",
+ "//base:base_java",
+ "//third_party/android_support_test_runner:runner_java",
+ "//third_party/netty4:netty_all_java",
+ ]
+}
+
android_assets("cronet_test_apk_assets") {
testonly = true
@@ -639,13 +671,21 @@ android_apk("cronet_test_apk") {
loadable_modules = [ "$root_out_dir/libnetty-tcnative.so" ]
deps = [
+ ":cronet_combine_proguard_flags",
":cronet_test_apk_assets",
- ":cronet_test_apk_java",
":cronet_test_apk_resources",
"//base:base_java",
"//third_party/netty-tcnative:netty-tcnative-so",
]
+ proguard_enabled = true
+
+ proguard_configs = [
+ "$target_gen_dir/cronet_impl_native_proguard.cfg",
+ "cronet_impl_common_proguard.cfg",
+ "cronet_impl_platform_proguard.cfg",
+ ]
+
run_findbugs_override = true
}
@@ -710,6 +750,7 @@ instrumentation_test_apk("cronet_test_instrumentation_apk") {
":cronet_api_java",
":cronet_impl_all_java",
":cronet_javatests",
+ ":cronet_smoketests_native_java",
":cronet_test_apk_java",
"//base:base_java",
"//base:base_java_test_support",
@@ -723,6 +764,113 @@ instrumentation_test_apk("cronet_test_instrumentation_apk") {
"//net:test_support",
]
+ proguard_enabled = true
+
+ proguard_configs = [ "test/proguard.cfg" ]
+
+ run_findbugs_override = true
+}
+
+android_resources("cronet_smoketests_platform_only_apk_resources") {
+ testonly = true
+ resource_dirs = [ "test/smoketests/res/platform_only" ]
+ android_manifest = "test/AndroidManifest.xml"
+}
+
+android_library("cronet_smoketests_platform_only_java") {
+ testonly = true
+ java_files = [ "test/smoketests/src/org/chromium/net/smoke/PlatformOnlyEngineTest.java" ] + cronet_smoketests_platform_only_common_srcs
+ deps = [
+ ":cronet_api_java",
+ "//third_party/android_support_test_runner:runner_java",
+ "//third_party/netty4:netty_all_java",
+ ]
+}
+
+android_apk("cronet_smoketests_platform_only_apk") {
+ testonly = true
+ apk_name = "PlatformOnlyEngineSmokeTest"
+ android_manifest = "test/AndroidManifest.xml"
+ java_files = [ "test/src/org/chromium/net/CronetTestApplication.java" ]
+
+ proguard_enabled = true
+ proguard_configs = [
+ "cronet_impl_common_proguard.cfg",
+ "cronet_impl_platform_proguard.cfg",
+ ]
+
+ deps = [
+ ":cronet_api_java",
+ ":cronet_impl_common_java",
+ ":cronet_impl_platform_java",
+ ":cronet_smoketests_platform_only_apk_resources",
+ ]
+ run_findbugs_override = true
+}
+
+instrumentation_test_apk(
+ "cronet_smoketests_platform_only_instrumentation_apk") {
+ apk_name = "PlatformOnlyEngineSmokeTestInstrumentation"
+ apk_under_test = ":cronet_smoketests_platform_only_apk"
+ android_manifest = "test/javatests/AndroidManifest.xml"
+ deps = [
+ ":cronet_smoketests_platform_only_java",
+ ]
+
+ proguard_enabled = true
+
+ proguard_configs = [ "test/proguard.cfg" ]
+ run_findbugs_override = true
+}
+
+android_library("cronet_smoketests_missing_native_library_java") {
+ testonly = true
+ java_files = [ "test/smoketests/src/org/chromium/net/smoke/MissingNativeLibraryTest.java" ] + cronet_smoketests_native_common_srcs
+ deps = [
+ ":cronet_api_java",
+ ":cronet_test_apk_java",
+ "//base:base_java",
+ "//third_party/android_support_test_runner:runner_java",
+ "//third_party/netty4:netty_all_java",
+ ]
+}
+
+android_apk("cronet_smoketests_missing_native_library_apk") {
+ testonly = true
+ apk_name = "MissingNativeLibrarySmokeTest"
+ android_manifest = "test/AndroidManifest.xml"
+ deps = [
+ ":cronet_api_java",
+ ":cronet_combine_proguard_flags",
+ ":cronet_impl_common_java",
+ ":cronet_impl_platform_java",
+ ":cronet_test_apk_resources",
+ ]
+
+ proguard_enabled = true
+ proguard_configs = [
+ "$target_gen_dir/cronet_impl_native_proguard.cfg",
+ "cronet_impl_common_proguard.cfg",
+ "cronet_impl_platform_proguard.cfg",
+ ]
+
+ run_findbugs_override = true
+}
+
+instrumentation_test_apk(
+ "cronet_smoketests_missing_native_library_instrumentation_apk") {
+ apk_name = "MissingNativeLibrarySmokeTestInstrumentation"
+ apk_under_test = ":cronet_smoketests_missing_native_library_apk"
+ android_manifest = "test/javatests/AndroidManifest.xml"
+
+ deps = [
+ ":cronet_smoketests_missing_native_library_java",
+ ]
+
+ proguard_enabled = true
+
+ proguard_configs = [ "test/proguard.cfg" ]
+
run_findbugs_override = true
}
@@ -763,7 +911,7 @@ android_apk("cronet_perf_test_apk") {
proguard_configs = [
"$target_gen_dir/cronet_impl_native_proguard.cfg",
"cronet_impl_common_proguard.cfg",
- "test/javaperftests/proguard.cfg",
+ "test/proguard.cfg",
"//base/android/proguard/chromium_apk.flags",
]
}
« no previous file with comments | « no previous file | components/cronet/android/cronet_impl_common_proguard.cfg » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698