# Copyright 2020 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/android/rules.gni")
import("//third_party/jni_zero/jni_zero.gni")
android_resources("java_resources") {
deps = [
"//components/browser_ui/strings/android:browser_ui_strings_grd",
"//components/browser_ui/styles/android:java_resources",
]
}
generate_jni("jni_headers") {
sources = [ "java/src/org/chromium/components/browser_ui/client_certificate/SSLClientCertificateRequest.java" ]
}
android_library("java") {
srcjar_deps = [ ":jni_headers" ]
sources = [ "java/src/org/chromium/components/browser_ui/client_certificate/SSLClientCertificateRequest.java" ]
deps = [
":java_resources",
"//base:base_java",
"//build/android:build_java",
"//components/browser_ui/widget/android:java_resources",
"//content/public/android:content_java",
"//third_party/androidx:androidx_annotation_annotation_java",
"//third_party/androidx:androidx_appcompat_appcompat_java",
"//third_party/jni_zero:jni_zero_java",
"//ui/android:ui_java",
]
resources_package = "org.chromium.components.browser_ui.client_certificate"
}
source_set("android") {
sources = [
"ssl_client_certificate_request.cc",
"ssl_client_certificate_request.h",
]
deps = [
":jni_headers",
"//base",
"//content/public/browser",
"//net",
"//ui/android",
]
}
robolectric_library("junit") {
sources = [ "java/src/org/chromium/components/browser_ui/client_certificate/SSLClientCertificateRequestTest.java" ]
deps = [
":java",
"//base:base_junit_test_support",
"//third_party/junit",
"//third_party/mockito:mockito_java",
]
}