Clean up URLFetcher unit tests, part 8.
[chromium-blink-merge.git] / net / android / BUILD.gn
blobdb15835ed1e48ef9686f793a54c51b89606fef22
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   ]
14   srcjar_deps = [
15     ":net_errors_java",
16     ":net_android_java_enums_srcjar",
17     ":remote_android_keystore_aidl",
18   ]
21 android_aidl("remote_android_keystore_aidl") {
22   interface_file =
23       "java/src/org/chromium/net/IRemoteAndroidKeyStoreInterface.aidl"
24   sources = [
25     "java/src/org/chromium/net/IRemoteAndroidKeyStore.aidl",
26     "java/src/org/chromium/net/IRemoteAndroidKeyStoreCallbacks.aidl",
27   ]
30 android_library("net_java_test_support") {
31   DEPRECATED_java_in_dir = "../test/android/javatests/src"
34 android_library("net_javatests") {
35   DEPRECATED_java_in_dir = "javatests/src"
36   deps = [
37     "//base:base_java",
38     "//base:base_java_test_support",
39     ":net_java",
40   ]
43 java_cpp_template("net_errors_java") {
44   package_name = "org/chromium/net"
45   sources = [
46     "java/NetError.template",
47   ]
48   inputs = [
49     "../base/net_error_list.h",
50   ]
53 java_cpp_enum("net_android_java_enums_srcjar") {
54   sources = [
55     "../base/mime_util.h",
56     "../base/network_change_notifier.h",
57     "cert_verify_result_android.h",
58     "keystore.h",
59   ]
60   outputs = [
61     "org/chromium/net/CertificateMimeType.java",
62     "org/chromium/net/CertVerifyStatusAndroid.java",
63     "org/chromium/net/ConnectionSubtype.java",
64     "org/chromium/net/ConnectionType.java",
65     "org/chromium/net/PrivateKeyType.java",
66   ]
69 # TODO(GYP)
70 if (false) {
71   unittest_apk("net_unittests_apk") {
72     deps = [
73       ":net_java",
74       ":net_javatests",
75       "//net:net_unittests",
76     ]
77     unittests_dep = "//net:net_unittests"
78   }