# Copyright 2016 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("//chrome/android/webapk/libs/runtime_library_version.gni")
import("//chrome/android/webapk/shell_apk/request_update_for_version.gni")
android_library("client_java") {
sources = [
"src/org/chromium/webapk/lib/client/WebApkIdentityServiceClient.java",
"src/org/chromium/webapk/lib/client/WebApkNavigationClient.java",
"src/org/chromium/webapk/lib/client/WebApkServiceConnectionManager.java",
]
deps = [
"//base:base_java",
"//chrome/android/webapk/libs/common:common_java",
"//chrome/android/webapk/libs/runtime_library:webapk_service_aidl_java",
"//components/webapk/android/libs/common:java",
]
}
robolectric_binary("webapk_client_junit_tests") {
package_name = "org.chromium.test"
sources = [
"junit/src/org/chromium/webapk/lib/client/WebApkIdentityServiceClientTest.java",
"junit/src/org/chromium/webapk/lib/client/WebApkServiceConnectionManagerTest.java",
]
data = [ "//chrome/test/data/webapks/" ]
deps = [
":client_java",
"//base:base_java",
"//base:base_junit_test_support",
"//chrome/android/webapk/libs/common:common_java",
"//chrome/android/webapk/libs/runtime_library:webapk_service_aidl_java",
"//chrome/android/webapk/test:junit_test_support",
"//components/webapk/android/libs/client:junit",
"//components/webapk/android/libs/common:java",
"//testing/android/junit:junit_test_support",
]
}