chromium/chrome/browser/privacy_guide/android/BUILD.gn

# 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/privacy_guide/AdTopicsFragment.java",
    "java/src/org/chromium/chrome/browser/privacy_guide/CookiesFragment.java",
    "java/src/org/chromium/chrome/browser/privacy_guide/DoneFragment.java",
    "java/src/org/chromium/chrome/browser/privacy_guide/HistorySyncFragment.java",
    "java/src/org/chromium/chrome/browser/privacy_guide/MSBBFragment.java",
    "java/src/org/chromium/chrome/browser/privacy_guide/NavbarVisibilityDelegate.java",
    "java/src/org/chromium/chrome/browser/privacy_guide/PreloadFragment.java",
    "java/src/org/chromium/chrome/browser/privacy_guide/PrivacyGuideBasePage.java",
    "java/src/org/chromium/chrome/browser/privacy_guide/PrivacyGuideBottomSheetView.java",
    "java/src/org/chromium/chrome/browser/privacy_guide/PrivacyGuideExplanationHeading.java",
    "java/src/org/chromium/chrome/browser/privacy_guide/PrivacyGuideExplanationItem.java",
    "java/src/org/chromium/chrome/browser/privacy_guide/PrivacyGuideFragment.java",
    "java/src/org/chromium/chrome/browser/privacy_guide/PrivacyGuideMetricsDelegate.java",
    "java/src/org/chromium/chrome/browser/privacy_guide/PrivacyGuidePageTransformer.java",
    "java/src/org/chromium/chrome/browser/privacy_guide/PrivacyGuidePagerAdapter.java",
    "java/src/org/chromium/chrome/browser/privacy_guide/PrivacyGuideUtils.java",
    "java/src/org/chromium/chrome/browser/privacy_guide/SafeBrowsingFragment.java",
    "java/src/org/chromium/chrome/browser/privacy_guide/SearchSuggestionsFragment.java",
    "java/src/org/chromium/chrome/browser/privacy_guide/StepDisplayHandler.java",
    "java/src/org/chromium/chrome/browser/privacy_guide/StepDisplayHandlerImpl.java",
    "java/src/org/chromium/chrome/browser/privacy_guide/WelcomeFragment.java",
  ]
  deps = [
    ":java_resources",
    "//base:base_java",
    "//chrome/browser/back_press/android:java",
    "//chrome/browser/flags:java",
    "//chrome/browser/preferences:java",
    "//chrome/browser/prefetch/android:java",
    "//chrome/browser/privacy_sandbox/android:java",
    "//chrome/browser/profiles/android:java",
    "//chrome/browser/safe_browsing/android:java",
    "//chrome/browser/settings:java",
    "//chrome/browser/signin/services/android:java",
    "//chrome/browser/sync/android:java",
    "//components/browser_ui/bottomsheet/android:java",
    "//components/browser_ui/settings/android:java",
    "//components/browser_ui/site_settings/android:java",
    "//components/browser_ui/widget/android:java",
    "//components/content_settings/android:content_settings_enums_java",
    "//components/embedder_support/android:util_java",
    "//components/prefs/android:java",
    "//components/signin/public/android:java",
    "//components/sync/android:sync_java",
    "//components/user_prefs/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_java",
    "//third_party/androidx:androidx_browser_browser_java",
    "//third_party/androidx:androidx_fragment_fragment_java",
    "//third_party/androidx:androidx_recyclerview_recyclerview_java",
    "//third_party/androidx:androidx_viewpager2_viewpager2_java",
    "//ui/android:ui_full_java",
  ]
  srcjar_deps = [ "//chrome/browser/privacy_guide:privacy_guide_enum_javagen" ]
  resources_package = "org.chromium.chrome.browser.privacy_guide"
}

robolectric_library("junit") {
  resources_package = "org.chromium.chrome.browser.privacy_guide"
  sources = [
    "junit/src/org/chromium/chrome/browser/privacy_guide/AdTopicsFragmentTest.java",
    "junit/src/org/chromium/chrome/browser/privacy_guide/CookiesFragmentTest.java",
    "junit/src/org/chromium/chrome/browser/privacy_guide/DoneFragmentTest.java",
    "junit/src/org/chromium/chrome/browser/privacy_guide/HistorySyncFragmentTest.java",
    "junit/src/org/chromium/chrome/browser/privacy_guide/MSBBFragmentTest.java",
    "junit/src/org/chromium/chrome/browser/privacy_guide/NavbarVisibilityDelegateTest.java",
    "junit/src/org/chromium/chrome/browser/privacy_guide/PreloadFragmentTest.java",
    "junit/src/org/chromium/chrome/browser/privacy_guide/PrivacyGuideMetricsDelegateTest.java",
    "junit/src/org/chromium/chrome/browser/privacy_guide/PrivacyGuidePagerAdapterTest.java",
    "junit/src/org/chromium/chrome/browser/privacy_guide/SafeBrowsingFragmentTest.java",
    "junit/src/org/chromium/chrome/browser/privacy_guide/SearchSuggestionsFragmentTest.java",
    "junit/src/org/chromium/chrome/browser/privacy_guide/StepDisplayHandlerImplTest.java",
  ]
  deps = [
    ":java",
    ":java_resources",
    "//base:base_java",
    "//base:base_java_test_support",
    "//base:base_junit_test_support",
    "//chrome/browser/flags:java",
    "//chrome/browser/preferences:java",
    "//chrome/browser/prefetch/android:java",
    "//chrome/browser/privacy_sandbox/android:java",
    "//chrome/browser/profiles/android:java",
    "//chrome/browser/safe_browsing/android:java",
    "//chrome/browser/signin/services/android:java",
    "//chrome/browser/sync/android:java",
    "//chrome/test/android:chrome_java_unit_test_support",
    "//components/browser_ui/bottomsheet/android:java",
    "//components/browser_ui/site_settings/android:java",
    "//components/browser_ui/widget/android:java",
    "//components/content_settings/android:content_settings_enums_java",
    "//components/embedder_support/android:util_java",
    "//components/prefs/android:java",
    "//components/signin/public/android:java",
    "//components/sync/android:sync_java",
    "//components/user_prefs/android:java",
    "//content/public/android:content_java",
    "//third_party/androidx:androidx_appcompat_appcompat_java",
    "//third_party/androidx:androidx_fragment_fragment_java",
    "//third_party/androidx:androidx_fragment_fragment_testing_java",
    "//third_party/androidx:androidx_test_core_java",
    "//third_party/androidx:androidx_test_espresso_espresso_intents_java",
    "//third_party/androidx:androidx_test_runner_java",
    "//third_party/hamcrest:hamcrest_core_java",
    "//third_party/jni_zero:jni_zero_java",
    "//third_party/junit:junit",
    "//third_party/mockito:mockito_java",
  ]
}

android_library("javatests") {
  testonly = true
  resources_package = "org.chromium.chrome.browser.privacy_guide"
  sources = [ "javatests/src/org/chromium/chrome/browser/privacy_guide/PrivacyGuideFragmentTest.java" ]
  deps = [
    ":java",
    ":java_resources",
    "//base:base_java",
    "//base:base_java_test_support",
    "//build/android:build_java",
    "//chrome/android:chrome_java",
    "//chrome/browser/flags:java",
    "//chrome/browser/preferences:java",
    "//chrome/browser/prefetch/android:java",
    "//chrome/browser/privacy_sandbox/android:java",
    "//chrome/browser/profiles/android:java",
    "//chrome/browser/safe_browsing/android:java",
    "//chrome/browser/settings:test_support_java",
    "//chrome/browser/signin/services/android:java",
    "//chrome/browser/sync/android:java",
    "//chrome/test/android:chrome_java_integration_test_support",
    "//chrome/test/android:chrome_java_test_support_common",
    "//components/browser_ui/site_settings/android:java",
    "//components/content_settings/android:content_settings_enums_java",
    "//components/embedder_support/android:util_java",
    "//components/prefs/android:java",
    "//components/signin/public/android:java",
    "//components/sync/android:sync_java",
    "//components/user_prefs/android:java",
    "//content/public/android:content_java",
    "//content/public/test/android:content_java_test_support",
    "//third_party/android_deps:espresso_java",
    "//third_party/androidx:androidx_fragment_fragment_java",
    "//third_party/androidx:androidx_test_runner_java",
    "//third_party/hamcrest:hamcrest_core_java",
    "//third_party/hamcrest:hamcrest_library_java",
    "//third_party/jni_zero:gendeps_java",
    "//third_party/junit:junit",
    "//third_party/mockito:mockito_java",
    "//ui/android:ui_java_test_support",
  ]
}

android_resources("java_resources") {
  sources = [
    "java/res/drawable-night/privacy_guide_ad_topics_image.xml",
    "java/res/drawable-night/privacy_guide_cookies_image.xml",
    "java/res/drawable-night/privacy_guide_done_image.xml",
    "java/res/drawable-night/privacy_guide_history_sync_image.xml",
    "java/res/drawable-night/privacy_guide_msbb_image.xml",
    "java/res/drawable-night/privacy_guide_preload_image.xml",
    "java/res/drawable-night/privacy_guide_sb_image.xml",
    "java/res/drawable-night/privacy_guide_search_suggestions_image.xml",
    "java/res/drawable-night/privacy_guide_welcome_image.xml",
    "java/res/drawable/active_tab_circle.xml",
    "java/res/drawable/inactive_tab_circle.xml",
    "java/res/drawable/privacy_guide_ad_topics_image.xml",
    "java/res/drawable/privacy_guide_cookies_image.xml",
    "java/res/drawable/privacy_guide_done_image.xml",
    "java/res/drawable/privacy_guide_history_sync_image.xml",
    "java/res/drawable/privacy_guide_msbb_image.xml",
    "java/res/drawable/privacy_guide_preload_image.xml",
    "java/res/drawable/privacy_guide_sb_image.xml",
    "java/res/drawable/privacy_guide_search_suggestions_image.xml",
    "java/res/drawable/privacy_guide_welcome_image.xml",
    "java/res/drawable/tab_selector.xml",
    "java/res/layout/privacy_guide_ad_topics_step.xml",
    "java/res/layout/privacy_guide_cookies_step.xml",
    "java/res/layout/privacy_guide_done.xml",
    "java/res/layout/privacy_guide_explanation_heading.xml",
    "java/res/layout/privacy_guide_explanation_item.xml",
    "java/res/layout/privacy_guide_history_sync_step.xml",
    "java/res/layout/privacy_guide_msbb_step.xml",
    "java/res/layout/privacy_guide_msbb_v3_step.xml",
    "java/res/layout/privacy_guide_preload_standard_explanation.xml",
    "java/res/layout/privacy_guide_preload_step.xml",
    "java/res/layout/privacy_guide_sb_enhanced_explanation.xml",
    "java/res/layout/privacy_guide_sb_step.xml",
    "java/res/layout/privacy_guide_search_suggestions_step.xml",
    "java/res/layout/privacy_guide_steps.xml",
    "java/res/layout/privacy_guide_welcome.xml",
    "java/res/menu/privacy_guide_toolbar_menu.xml",
    "java/res/values-sw600dp/dimens.xml",
    "java/res/values/attrs.xml",
    "java/res/values/dimens.xml",
  ]
  deps = [
    "//chrome/browser/ui/android/strings:ui_strings_grd",
    "//components/browser_ui/styles/android:java_resources",
    "//components/browser_ui/widget/android:java_resources",
    "//components/strings:privacy_sandbox_strings_grd",
  ]
}