# Copyright 2021 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")
android_library("java") {
sources = [
"java/src/org/chromium/chrome/browser/management/ManagementCoordinator.java",
"java/src/org/chromium/chrome/browser/management/ManagementMediator.java",
"java/src/org/chromium/chrome/browser/management/ManagementPage.java",
"java/src/org/chromium/chrome/browser/management/ManagementProperties.java",
"java/src/org/chromium/chrome/browser/management/ManagementView.java",
"java/src/org/chromium/chrome/browser/management/ManagementViewBinder.java",
]
deps = [
":java_resources",
"//base:base_java",
"//chrome/browser/enterprise/util:java",
"//chrome/browser/preferences:java",
"//chrome/browser/profiles/android:java",
"//chrome/browser/tab:java",
"//chrome/browser/ui/android/native_page:java",
"//components/browser_ui/widget/android:java",
"//components/embedder_support/android:util_java",
"//components/prefs/android:java",
"//components/user_prefs/android:java",
"//content/public/android:content_full_java",
"//third_party/androidx:androidx_annotation_annotation_java",
"//ui/android:ui_no_recycler_view_java",
]
resources_package = "org.chromium.chrome.browser.management"
}
android_resources("java_resources") {
sources = [
"java/res/drawable/enterprise_legacy_tech.xml",
"java/res/drawable/enterprise_phone.xml",
"java/res/drawable/enterprise_user_circle.xml",
"java/res/layout/enterprise_management.xml",
"java/res/values/dimens.xml",
]
deps = [
"//chrome/app:branded_strings",
"//chrome/browser/ui/android/strings:ui_strings_grd",
"//components/browser_ui/styles/android:java_resources",
"//components/strings:components_locale_settings_grd",
"//components/strings:components_strings_grd",
]
}
robolectric_library("junit") {
resources_package = "org.chromium.chrome.browser.management"
sources = [
"java/src/org/chromium/chrome/browser/management/ManagementViewTest.java",
]
deps = [
":java",
":java_resources",
"//base:base_java_test_support",
"//base:base_junit_test_support",
"//chrome/browser/enterprise/util:java",
"//chrome/browser/preferences:java",
"//chrome/browser/profiles/android:java",
"//chrome/browser/ui/android/native_page:java",
"//components/prefs/android:java",
"//components/user_prefs/android:java",
"//content/public/android:content_full_java",
"//third_party/androidx:androidx_test_core_java",
"//third_party/androidx:androidx_test_ext_junit_java",
"//third_party/hamcrest:hamcrest_java",
"//third_party/jni_zero:jni_zero_java",
"//third_party/junit",
"//third_party/mockito:mockito_java",
"//ui/android:ui_java_test_support",
]
}