Roll src/third_party/WebKit b4168eb:6c137a7 (svn 202006:202008)
[chromium-blink-merge.git] / net / android / BUILD.gn
blobc891da7de1626f214509b2ef627246e7acfe6c25
1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
5 import("//build/config/android/config.gni")
6 import("//build/config/android/rules.gni")
8 android_library("net_java") {
9   DEPRECATED_java_in_dir = "java/src"
10   deps = [
11     "//base:base_java",
12   ]
13   srcjar_deps = [
14     ":net_errors_java",
15     ":net_android_java_enums_srcjar",
16     ":remote_android_keystore_aidl",
17   ]
20 android_aidl("remote_android_keystore_aidl") {
21   interface_file =
22       "java/src/org/chromium/net/IRemoteAndroidKeyStoreInterface.aidl"
23   sources = [
24     "java/src/org/chromium/net/IRemoteAndroidKeyStore.aidl",
25     "java/src/org/chromium/net/IRemoteAndroidKeyStoreCallbacks.aidl",
26   ]
29 android_library("net_java_test_support") {
30   DEPRECATED_java_in_dir = "../test/android/javatests/src"
31   deps = [
32     "//base:base_java",
33     "//third_party/android_tools:legacy_http_javalib",
34     ":net_java",
35   ]
36   srcjar_deps = [ ":net_java_test_support_enums_srcjar" ]
39 android_library("net_javatests") {
40   DEPRECATED_java_in_dir = "javatests/src"
41   deps = [
42     "//base:base_java",
43     "//base:base_java_test_support",
44     ":net_java",
45   ]
48 java_cpp_template("net_errors_java") {
49   package_name = "org/chromium/net"
50   sources = [
51     "java/NetError.template",
52   ]
53   inputs = [
54     "../base/net_error_list.h",
55   ]
58 java_cpp_enum("net_java_test_support_enums_srcjar") {
59   sources = [
60     "../test/url_request/url_request_failed_job.h",
61   ]
62   outputs = [
63     "org/chromium/net/test/FailurePhase.java",
64   ]
67 java_cpp_enum("net_android_java_enums_srcjar") {
68   sources = [
69     "../base/mime_util.h",
70     "../base/network_change_notifier.h",
71     "cert_verify_result_android.h",
72     "keystore.h",
73   ]
74   outputs = [
75     "org/chromium/net/CertificateMimeType.java",
76     "org/chromium/net/CertVerifyStatusAndroid.java",
77     "org/chromium/net/ConnectionSubtype.java",
78     "org/chromium/net/ConnectionType.java",
79     "org/chromium/net/PrivateKeyType.java",
80   ]
83 junit_binary("net_junit_tests") {
84   java_files =
85       [ "junit/src/org/chromium/net/HttpNegotiateAuthenticatorTest.java" ]
86   deps = [
87     ":net_java",
88     "//base:base_java",
89     "//base:base_java_test_support",
90     "//base:base_junit_test_support",
91     "//third_party/junit:hamcrest",
92   ]
95 # TODO(GYP)
96 if (false) {
97   unittest_apk("net_unittests_apk") {
98     deps = [
99       ":net_java",
100       ":net_javatests",
101       "//net:net_unittests",
102     ]
103     unittests_dep = "//net:net_unittests"
104   }