# 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/config.gni")
import("//build/config/android/rules.gni")
import("//chrome/browser/buildflags.gni")
android_library("java") {
sources = [
"java/src/org/chromium/chrome/browser/tasks/tab_groups/TabGroup.java",
"java/src/org/chromium/chrome/browser/tasks/tab_groups/TabGroupCollapsedUtils.java",
"java/src/org/chromium/chrome/browser/tasks/tab_groups/TabGroupColorUtils.java",
"java/src/org/chromium/chrome/browser/tasks/tab_groups/TabGroupModelFilter.java",
"java/src/org/chromium/chrome/browser/tasks/tab_groups/TabGroupModelFilterObserver.java",
"java/src/org/chromium/chrome/browser/tasks/tab_groups/TabGroupSyncIdUtils.java",
"java/src/org/chromium/chrome/browser/tasks/tab_groups/TabGroupTitleUtils.java",
]
deps = [
"//base:base_cached_flags_java",
"//base:base_java",
"//base:base_shared_preferences_java",
"//chrome/browser/flags:java",
"//chrome/browser/preferences:java",
"//chrome/browser/profiles/android:java",
"//chrome/browser/sync/android:java",
"//chrome/browser/tab:java",
"//chrome/browser/tab_group_sync:features_java",
"//chrome/browser/tabmodel:java",
"//components/sync/android:sync_java",
"//components/tab_groups:tab_groups_java",
"//third_party/androidx:androidx_annotation_annotation_java",
"//third_party/androidx:androidx_collection_collection_java",
]
}
robolectric_library("junit") {
sources = [
"junit/src/org/chromium/chrome/browser/tasks/tab_groups/TabGroupCollapsedUtilsUnitTest.java",
"junit/src/org/chromium/chrome/browser/tasks/tab_groups/TabGroupColorUtilsUnitTest.java",
"junit/src/org/chromium/chrome/browser/tasks/tab_groups/TabGroupModelFilterUnitTest.java",
"junit/src/org/chromium/chrome/browser/tasks/tab_groups/TabGroupSyncIdUtilsUnitTest.java",
"junit/src/org/chromium/chrome/browser/tasks/tab_groups/TabGroupTitleUtilsUnitTest.java",
]
deps = [
":java",
"//base:base_java",
"//base:base_java_test_support",
"//base:base_junit_test_support",
"//chrome/browser/flags:java",
"//chrome/browser/profiles/android:java",
"//chrome/browser/sync/android:java",
"//chrome/browser/tab:java",
"//chrome/browser/tab_group_sync:features_java",
"//chrome/browser/tabmodel:java",
"//chrome/test/android:chrome_java_unit_test_support",
"//components/sync/android:sync_java",
"//components/tab_groups:tab_groups_java",
"//third_party/android_deps:espresso_java",
"//third_party/androidx:androidx_annotation_annotation_java",
"//third_party/androidx:androidx_collection_collection_java",
"//third_party/hamcrest:hamcrest_core_java",
"//third_party/jni_zero:jni_zero_java",
"//third_party/junit",
"//third_party/mockito:mockito_java",
"//ui/android:ui_java_test_support",
"//url:url_java",
]
}