# Copyright 2024 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_library("java") {
# srcjar_deps = [ ":jni_headers" ]
sources = [
"java/src/org/chromium/chrome/browser/single_tab/SingleTabModuleBuilder.java",
"java/src/org/chromium/chrome/browser/single_tab/SingleTabSwitcherCoordinator.java",
"java/src/org/chromium/chrome/browser/single_tab/SingleTabSwitcherOnNtpMediator.java",
"java/src/org/chromium/chrome/browser/single_tab/SingleTabView.java",
"java/src/org/chromium/chrome/browser/single_tab/SingleTabViewBinder.java",
"java/src/org/chromium/chrome/browser/single_tab/SingleTabViewProperties.java",
]
deps = [
":java_resources",
"//base:base_cached_flags_java",
"//base:base_java",
"//chrome/browser/android/lifecycle:java",
"//chrome/browser/flags:java",
"//chrome/browser/magic_stack/android:java",
"//chrome/browser/profiles/android:java",
"//chrome/browser/tab:java",
"//chrome/browser/tab_ui/android:java",
"//chrome/browser/tabmodel:java",
"//chrome/browser/util:java",
"//components/browser_ui/strings/android:browser_ui_strings_grd",
"//components/browser_ui/styles/android:java_resources",
"//components/browser_ui/widget/android:java",
"//components/browser_ui/widget/android:java_resources",
"//components/embedder_support/android:util_java",
"//third_party/androidx:androidx_annotation_annotation_java",
"//ui/android:ui_no_recycler_view_java",
"//url:gurl_java",
]
resources_package = "org.chromium.chrome.browser.single_tab"
}
android_resources("java_resources") {
sources = [
"java/res/drawable/favicon_background.xml",
"java/res/drawable/single_tab_card_ripple.xml",
"java/res/drawable/single_tab_thumbnail_background.xml",
"java/res/layout/single_tab_module_layout.xml",
"java/res/values/dimens.xml",
]
deps = []
}
robolectric_library("junit") {
testonly = true
resources_package = "org.chromium.chrome.browser.single_tab"
sources = [
"junit/src/org/chromium/chrome/browser/single_tab/SingleTabModuleViewBinderUnitTest.java",
"junit/src/org/chromium/chrome/browser/single_tab/SingleTabSwitcherOnNtpMediatorUnitTest.java",
]
deps = [
":java",
":java_resources",
"//base:base_java",
"//base:base_java_test_support",
"//base:base_junit_test_support",
"//chrome/browser/android/lifecycle:java",
"//chrome/browser/browser_controls/android:java",
"//chrome/browser/magic_stack/android:java",
"//chrome/browser/tab:java",
"//chrome/browser/tab_ui/android:java",
"//chrome/browser/tabmodel:java",
"//chrome/browser/util:java",
"//chrome/test/android:chrome_java_unit_test_support",
"//components/browser_ui/widget/android:java",
"//components/browser_ui/widget/android:java_resources",
"//components/embedder_support/android:util_java",
"//third_party/androidx:androidx_test_runner_java",
"//third_party/jni_zero:jni_zero_java",
"//third_party/junit:junit",
"//third_party/mockito:mockito_java",
"//ui/android:ui_java",
"//url:gurl_java",
"//url:gurl_junit_test_support",
]
}