# 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")
import("//third_party/jni_zero/jni_zero.gni")
generate_jni("jni_headers") {
sources = [
"java/src/org/chromium/chrome/browser/paint_preview/PaintPreviewCompositorUtils.java",
"java/src/org/chromium/chrome/browser/paint_preview/services/PaintPreviewTabService.java",
"java/src/org/chromium/chrome/browser/paint_preview/services/PaintPreviewTabServiceFactory.java",
]
}
android_library("java") {
srcjar_deps = [ ":jni_headers" ]
sources = [
"java/src/org/chromium/chrome/browser/paint_preview/DemoPaintPreview.java",
"java/src/org/chromium/chrome/browser/paint_preview/PaintPreviewCompositorUtils.java",
"java/src/org/chromium/chrome/browser/paint_preview/StartupPaintPreview.java",
"java/src/org/chromium/chrome/browser/paint_preview/StartupPaintPreviewMetrics.java",
"java/src/org/chromium/chrome/browser/paint_preview/TabbedPaintPreview.java",
"java/src/org/chromium/chrome/browser/paint_preview/services/PaintPreviewTabService.java",
"java/src/org/chromium/chrome/browser/paint_preview/services/PaintPreviewTabServiceFactory.java",
]
deps = [
":java_resources",
"//base:base_java",
"//build/android:build_java",
"//chrome/browser/android/lifecycle:java",
"//chrome/browser/browser_controls/android:java",
"//chrome/browser/flags:java",
"//chrome/browser/tab:java",
"//chrome/browser/tabmodel:java",
"//chrome/browser/ui/messages/android:java",
"//chrome/browser/util:java",
"//components/browser_ui/styles/android:java",
"//components/embedder_support/android:util_java",
"//components/paint_preview/browser/android:java",
"//components/paint_preview/player/android:java",
"//content/public/android:content_java",
"//third_party/androidx:androidx_annotation_annotation_java",
"//third_party/jni_zero:jni_zero_java",
"//ui/android:ui_java",
"//url:gurl_java",
]
resources_package = "org.chromium.chrome.browser.paint_preview"
}
android_resources("java_resources") {
deps = [ "//chrome/browser/ui/android/strings:ui_strings_grd" ]
}
android_library("javatests") {
testonly = true
resources_package = "org.chromium.chrome.browser.paint_preview"
sources = [
"javatests/src/org/chromium/chrome/browser/paint_preview/DemoPaintPreviewTest.java",
"javatests/src/org/chromium/chrome/browser/paint_preview/StartupPaintPreviewTest.java",
"javatests/src/org/chromium/chrome/browser/paint_preview/TabbedPaintPreviewAccessibilityTest.java",
"javatests/src/org/chromium/chrome/browser/paint_preview/TabbedPaintPreviewTest.java",
"javatests/src/org/chromium/chrome/browser/paint_preview/services/PaintPreviewTabServiceTest.java",
]
deps = [
":java",
"//base:base_java",
"//base:base_java_test_support",
"//chrome/android:chrome_app_java_resources",
"//chrome/android:chrome_java",
"//chrome/browser/browser_controls/android:java",
"//chrome/browser/flags:java",
"//chrome/browser/tab:java",
"//chrome/browser/tabmodel:java",
"//chrome/browser/ui/android/appmenu:java",
"//chrome/browser/ui/android/appmenu/test:test_support_java",
"//chrome/browser/ui/messages/android:java",
"//chrome/test/android:chrome_java_integration_test_support",
"//components/paint_preview/browser/android:java",
"//components/paint_preview/player/android:java",
"//content/public/android:content_java",
"//content/public/test/android:content_java_test_support",
"//net/android:net_java_test_support",
"//third_party/android_deps:espresso_java",
"//third_party/androidx:androidx_annotation_annotation_java",
"//third_party/androidx:androidx_test_monitor_java",
"//third_party/androidx:androidx_test_runner_java",
"//third_party/androidx:androidx_test_uiautomator_uiautomator_java",
"//third_party/hamcrest:hamcrest_java",
"//third_party/hamcrest:hamcrest_library_java",
"//third_party/junit",
"//third_party/mockito:mockito_java",
"//ui/accessibility:ax_base_java",
"//ui/android:ui_java_test_support",
"//ui/android:ui_no_recycler_view_java",
"//url:gurl_java",
]
}