chromium/chrome/browser/ui/android/theme/BUILD.gn

# 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")

android_library("java") {
  sources = [
    "java/src/org/chromium/chrome/browser/theme/ThemeColorProvider.java",
    "java/src/org/chromium/chrome/browser/theme/ThemeUtils.java",
    "java/src/org/chromium/chrome/browser/theme/TopUiThemeColorProvider.java",
    "java/src/org/chromium/chrome/browser/ui/theme/BrandedColorScheme.java",
    "java/src/org/chromium/chrome/browser/ui/theme/ChromeSemanticColorUtils.java",
  ]
  deps = [
    ":java_resources",
    "//base:base_java",
    "//chrome/browser/android/lifecycle:java",
    "//chrome/browser/flags:java",
    "//chrome/browser/tab:java",
    "//chrome/browser/ui/android/desktop_windowing:java",
    "//chrome/browser/ui/android/native_page:java",
    "//components/browser_ui/styles/android:java",
    "//components/embedder_support/android:util_java",
    "//components/security_state/content/android:java",
    "//content/public/android:content_java",
    "//third_party/android_deps:material_design_java",
    "//third_party/androidx:androidx_annotation_annotation_java",
    "//third_party/androidx:androidx_appcompat_appcompat_resources_java",
    "//third_party/androidx:androidx_core_core_java",
    "//ui/android:ui_no_recycler_view_java",
  ]
  resources_package = "org.chromium.chrome.browser.theme"
}

android_resources("java_resources") {
  sources = [ "java/res/values/colors.xml" ]
  deps = [
    "//components/browser_ui/styles/android:java_resources",
    "//components/browser_ui/widget/android:java_resources",
  ]
}

robolectric_library("junit") {
  sources =
      [ "java/src/org/chromium/chrome/browser/theme/ThemeUtilsUnitTest.java" ]
  deps = [
    ":java",
    ":java_resources",
    "//base:base_java",
    "//base:base_java_test_support",
    "//base:base_junit_test_support",
    "//chrome/android:chrome_app_java_resources",
    "//chrome/test/android:chrome_java_unit_test_support",
    "//components/browser_ui/styles/android:java",
    "//testing/android/junit:junit_test_support",
    "//third_party/hamcrest:hamcrest_core_java",
    "//third_party/hamcrest:hamcrest_library_java",
    "//third_party/junit",
    "//third_party/mockito:mockito_java",
    "//ui/android:ui_no_recycler_view_java",
  ]
  resources_package = "org.chromium.chrome.browser.theme"
}