chromium/chrome/browser/ui/android/omnibox/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/config.gni")
import("//build/config/android/rules.gni")
import("//chrome/browser/buildflags.gni")
import("//third_party/jni_zero/jni_zero.gni")

android_library("java") {
  srcjar_deps = [ ":jni_headers" ]
  sources = [
    "java/src/org/chromium/chrome/browser/omnibox/AutocompleteEditText.java",
    "java/src/org/chromium/chrome/browser/omnibox/AutocompleteEditTextModelBase.java",
    "java/src/org/chromium/chrome/browser/omnibox/AutocompleteInputConnection.java",
    "java/src/org/chromium/chrome/browser/omnibox/AutocompleteState.java",
    "java/src/org/chromium/chrome/browser/omnibox/BackKeyBehaviorDelegate.java",
    "java/src/org/chromium/chrome/browser/omnibox/ChromeAutocompleteProviderClient.java",
    "java/src/org/chromium/chrome/browser/omnibox/ChromeAutocompleteSchemeClassifier.java",
    "java/src/org/chromium/chrome/browser/omnibox/DeferredIMEWindowInsetApplicationCallback.java",
    "java/src/org/chromium/chrome/browser/omnibox/KeyboardHideHelper.java",
    "java/src/org/chromium/chrome/browser/omnibox/LocationBar.java",
    "java/src/org/chromium/chrome/browser/omnibox/LocationBarCoordinator.java",
    "java/src/org/chromium/chrome/browser/omnibox/LocationBarCoordinatorPhone.java",
    "java/src/org/chromium/chrome/browser/omnibox/LocationBarCoordinatorTablet.java",
    "java/src/org/chromium/chrome/browser/omnibox/LocationBarDataProvider.java",
    "java/src/org/chromium/chrome/browser/omnibox/LocationBarEmbedderUiOverrides.java",
    "java/src/org/chromium/chrome/browser/omnibox/LocationBarLayout.java",
    "java/src/org/chromium/chrome/browser/omnibox/LocationBarMediator.java",
    "java/src/org/chromium/chrome/browser/omnibox/LocationBarPhone.java",
    "java/src/org/chromium/chrome/browser/omnibox/LocationBarTablet.java",
    "java/src/org/chromium/chrome/browser/omnibox/NewTabPageDelegate.java",
    "java/src/org/chromium/chrome/browser/omnibox/OmniboxFocusReason.java",
    "java/src/org/chromium/chrome/browser/omnibox/OmniboxMetrics.java",
    "java/src/org/chromium/chrome/browser/omnibox/OmniboxPrerender.java",
    "java/src/org/chromium/chrome/browser/omnibox/OmniboxStub.java",
    "java/src/org/chromium/chrome/browser/omnibox/OmniboxSuggestionsDropdownEmbedderImpl.java",
    "java/src/org/chromium/chrome/browser/omnibox/OmniboxViewUtil.java",
    "java/src/org/chromium/chrome/browser/omnibox/OverrideUrlLoadingDelegate.java",
    "java/src/org/chromium/chrome/browser/omnibox/SearchEngineUtils.java",
    "java/src/org/chromium/chrome/browser/omnibox/SpanCursorController.java",
    "java/src/org/chromium/chrome/browser/omnibox/SpannableAutocompleteEditTextModel.java",
    "java/src/org/chromium/chrome/browser/omnibox/UrlBar.java",
    "java/src/org/chromium/chrome/browser/omnibox/UrlBarApi26.java",
    "java/src/org/chromium/chrome/browser/omnibox/UrlBarCoordinator.java",
    "java/src/org/chromium/chrome/browser/omnibox/UrlBarData.java",
    "java/src/org/chromium/chrome/browser/omnibox/UrlBarEditingTextStateProvider.java",
    "java/src/org/chromium/chrome/browser/omnibox/UrlBarMediator.java",
    "java/src/org/chromium/chrome/browser/omnibox/UrlBarProperties.java",
    "java/src/org/chromium/chrome/browser/omnibox/UrlBarViewBinder.java",
    "java/src/org/chromium/chrome/browser/omnibox/UrlFocusChangeListener.java",
    "java/src/org/chromium/chrome/browser/omnibox/geo/GeolocationHeader.java",
    "java/src/org/chromium/chrome/browser/omnibox/geo/GeolocationTracker.java",
    "java/src/org/chromium/chrome/browser/omnibox/geo/PlatformNetworksManager.java",
    "java/src/org/chromium/chrome/browser/omnibox/geo/VisibleNetworks.java",
    "java/src/org/chromium/chrome/browser/omnibox/geo/VisibleNetworksTracker.java",
    "java/src/org/chromium/chrome/browser/omnibox/status/PageInfoIPHController.java",
    "java/src/org/chromium/chrome/browser/omnibox/status/StatusCoordinator.java",
    "java/src/org/chromium/chrome/browser/omnibox/status/StatusIconView.java",
    "java/src/org/chromium/chrome/browser/omnibox/status/StatusMediator.java",
    "java/src/org/chromium/chrome/browser/omnibox/status/StatusProperties.java",
    "java/src/org/chromium/chrome/browser/omnibox/status/StatusView.java",
    "java/src/org/chromium/chrome/browser/omnibox/status/StatusViewBinder.java",
    "java/src/org/chromium/chrome/browser/omnibox/styles/OmniboxDrawableState.java",
    "java/src/org/chromium/chrome/browser/omnibox/styles/OmniboxImageSupplier.java",
    "java/src/org/chromium/chrome/browser/omnibox/styles/OmniboxResourceProvider.java",
    "java/src/org/chromium/chrome/browser/omnibox/styles/SuggestionSpannable.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/AutocompleteController.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/AutocompleteCoordinator.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/AutocompleteDelegate.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/AutocompleteMediator.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/CachedZeroSuggestionsManager.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/DropdownCommonProperties.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/DropdownItemProcessor.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/DropdownItemViewInfo.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/DropdownItemViewInfoListBuilder.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/DropdownItemViewInfoListManager.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/OmniboxLoadUrlParams.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/OmniboxSuggestionsDropdown.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/OmniboxSuggestionsDropdownAdapter.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/OmniboxSuggestionsDropdownEmbedder.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/OmniboxSuggestionsDropdownScrollListener.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/OmniboxSuggestionsVisualState.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/PreWarmingRecycledViewPool.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/RecyclerViewSelectionController.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/SuggestionCommonProperties.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/SuggestionHorizontalDivider.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/SuggestionHost.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/SuggestionListProperties.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/SuggestionListViewBinder.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/SuggestionProcessor.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/SuggestionsListAnimationDriver.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/UrlBarDelegate.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/action/OmniboxActionDelegateImpl.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/action/OmniboxActionFactoryImpl.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/action/OmniboxActionInSuggest.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/action/OmniboxAnswerAction.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/action/OmniboxPedal.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/answer/AnswerSuggestionProcessor.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/answer/AnswerSuggestionViewBinder.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/answer/AnswerSuggestionViewProperties.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/answer/AnswerText.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/answer/AnswerTextNewLayout.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/answer/AnswerTextUtils.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/answer/RichAnswerText.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/base/ActionChipsBinder.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/base/ActionChipsProcessor.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/base/ActionChipsProperties.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/base/ActionChipsView.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/base/BaseSuggestionView.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/base/BaseSuggestionViewBinder.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/base/BaseSuggestionViewProcessor.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/base/BaseSuggestionViewProperties.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/base/DynamicSpacingRecyclerViewItemDecoration.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/base/SimpleHorizontalLayoutView.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/base/SimpleVerticalLayoutView.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/base/SpacingRecyclerViewItemDecoration.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/base/SuggestionLayout.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/basic/BasicSuggestionProcessor.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/basic/SuggestionViewProperties.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/basic/SuggestionViewViewBinder.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/carousel/BaseCarouselSuggestionItemViewBuilder.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/carousel/BaseCarouselSuggestionProcessor.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/carousel/BaseCarouselSuggestionView.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/carousel/BaseCarouselSuggestionViewBinder.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/carousel/BaseCarouselSuggestionViewProperties.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/clipboard/ClipboardSuggestionProcessor.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/editurl/EditUrlSuggestionProcessor.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/editurl/EditUrlSuggestionView.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/editurl/EditUrlSuggestionViewBinder.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/entity/EntitySuggestionProcessor.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/entity/EntitySuggestionViewBinder.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/entity/EntitySuggestionViewProperties.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/groupseparator/GroupSeparatorProcessor.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/groupseparator/GroupSeparatorView.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/header/HeaderProcessor.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/header/HeaderView.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/header/HeaderViewBinder.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/header/HeaderViewProperties.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/mostvisited/MostVisitedTilesProcessor.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/tail/AlignmentManager.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/tail/TailSuggestionProcessor.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/tail/TailSuggestionView.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/tail/TailSuggestionViewBinder.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/tail/TailSuggestionViewProperties.java",
    "java/src/org/chromium/chrome/browser/omnibox/voice/VoiceRecognitionHandler.java",
  ]

  public_deps = [
    ":partner_location_descriptor_proto_java",
    ":util_java",
  ]

  deps = [
    ":java_resources",
    "$google_play_services_package:google_play_services_location_java",
    "$google_play_services_package:google_play_services_tasks_java",
    "//base:base_java",
    "//build/android:build_java",
    "//chrome/browser/android/lifecycle:java",
    "//chrome/browser/back_press/android:java",
    "//chrome/browser/browser_controls/android:java",
    "//chrome/browser/commerce/merchant_viewer/android:java",
    "//chrome/browser/device:java",
    "//chrome/browser/feature_engagement:java",
    "//chrome/browser/flags:java",
    "//chrome/browser/history_clusters:java",
    "//chrome/browser/language/android:java",
    "//chrome/browser/lens:java",
    "//chrome/browser/locale:java",
    "//chrome/browser/preferences:java",
    "//chrome/browser/prefetch/android:java",
    "//chrome/browser/privacy:java",
    "//chrome/browser/profiles/android:java",
    "//chrome/browser/quick_delete:java",
    "//chrome/browser/search_engines/android:java",
    "//chrome/browser/settings:factory_java",
    "//chrome/browser/share:java",
    "//chrome/browser/signin/services/android:java",
    "//chrome/browser/tab:java",
    "//chrome/browser/tabmodel:java",
    "//chrome/browser/ui/android/favicon:java",
    "//chrome/browser/ui/android/layouts:java",
    "//chrome/browser/ui/android/native_page:java",
    "//chrome/browser/ui/android/night_mode:java",
    "//chrome/browser/ui/android/page_info:java",
    "//chrome/browser/ui/android/searchactivityutils:java",
    "//chrome/browser/ui/android/theme:java",
    "//chrome/browser/user_education:java",
    "//chrome/browser/util:java",
    "//components/browser_ui/bottomsheet/android:java",
    "//components/browser_ui/settings/android:java",
    "//components/browser_ui/share/android:java",
    "//components/browser_ui/site_settings/android:java",
    "//components/browser_ui/styles/android:java",
    "//components/browser_ui/util/android:java",
    "//components/browser_ui/widget/android:java",
    "//components/browser_ui/widget/android:java_resources",
    "//components/content_settings/android:content_settings_enums_java",
    "//components/content_settings/android:java",
    "//components/embedder_support/android:simple_factory_key_java",
    "//components/embedder_support/android:util_java",
    "//components/externalauth/android:java",
    "//components/favicon/android:java",
    "//components/feature_engagement/public:public_java",
    "//components/image_fetcher:java",
    "//components/omnibox/browser:browser_java",
    "//components/omnibox/browser:browser_java",
    "//components/omnibox/common:features_java",
    "//components/page_info/android:java",
    "//components/permissions/android:java",
    "//components/prefs/android:java",
    "//components/search_engines/android:java",
    "//components/security_state/core:security_state_enums_java",
    "//components/signin/public/android:java",
    "//components/ukm/android:java",
    "//components/user_prefs/android:java",
    "//content/public/android:content_java",
    "//third_party/android_deps:guava_android_java",
    "//third_party/android_deps:material_design_java",
    "//third_party/android_deps:protobuf_lite_runtime_java",
    "//third_party/androidx:androidx_annotation_annotation_java",
    "//third_party/androidx:androidx_appcompat_appcompat_java",
    "//third_party/androidx:androidx_appcompat_appcompat_resources_java",
    "//third_party/androidx:androidx_collection_collection_java",
    "//third_party/androidx:androidx_core_core_java",
    "//third_party/androidx:androidx_interpolator_interpolator_java",
    "//third_party/androidx:androidx_recyclerview_recyclerview_java",
    "//third_party/jni_zero:jni_zero_java",
    "//third_party/metrics_proto:metrics_proto_java",
    "//ui/accessibility:ax_base_java",
    "//ui/android:ui_full_java",
    "//ui/android:ui_utils_java",
    "//ui/base/mojom:mojom_java",
    "//url:gurl_java",
  ]

  resources_package = "org.chromium.chrome.browser.omnibox"
}

android_library("util_java") {
  sources = [ "java/src/org/chromium/chrome/browser/omnibox/voice/VoiceRecognitionUtil.java" ]

  deps = [
    "//base:base_java",
    "//chrome/browser/flags:java",
    "//chrome/browser/preferences:java",
    "//chrome/browser/profiles/android:java",
    "//components/prefs/android:java",
    "//components/user_prefs/android:java",
    "//content/public/android:content_java",
    "//third_party/androidx:androidx_annotation_annotation_java",
    "//ui/android:ui_no_recycler_view_java",
  ]
}

generate_jni("jni_headers") {
  sources = [
    "java/src/org/chromium/chrome/browser/omnibox/ChromeAutocompleteProviderClient.java",
    "java/src/org/chromium/chrome/browser/omnibox/ChromeAutocompleteSchemeClassifier.java",
    "java/src/org/chromium/chrome/browser/omnibox/OmniboxPrerender.java",
    "java/src/org/chromium/chrome/browser/omnibox/OmniboxViewUtil.java",
    "java/src/org/chromium/chrome/browser/omnibox/geo/GeolocationHeader.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/AutocompleteController.java",
  ]
}

android_resources("java_resources") {
  sources = [
    "java/res/drawable-hdpi/bookmark_edit_active.png",
    "java/res/drawable-hdpi/btn_suggestion_refine.png",
    "java/res/drawable-hdpi/ic_history_googblue_24dp.png",
    "java/res/drawable-hdpi/ic_suggestion_magnifier.png",
    "java/res/drawable-ldrtl-hdpi/btn_suggestion_refine.png",
    "java/res/drawable-ldrtl-hdpi/ic_suggestion_magnifier.png",
    "java/res/drawable-ldrtl-mdpi/btn_suggestion_refine.png",
    "java/res/drawable-ldrtl-mdpi/ic_suggestion_magnifier.png",
    "java/res/drawable-ldrtl-xhdpi/btn_suggestion_refine.png",
    "java/res/drawable-ldrtl-xhdpi/ic_suggestion_magnifier.png",
    "java/res/drawable-ldrtl-xxhdpi/btn_suggestion_refine.png",
    "java/res/drawable-ldrtl-xxhdpi/ic_suggestion_magnifier.png",
    "java/res/drawable-ldrtl-xxxhdpi/btn_suggestion_refine.png",
    "java/res/drawable-ldrtl-xxxhdpi/ic_suggestion_magnifier.png",
    "java/res/drawable-mdpi/bookmark_edit_active.png",
    "java/res/drawable-mdpi/btn_suggestion_refine.png",
    "java/res/drawable-mdpi/ic_history_googblue_24dp.png",
    "java/res/drawable-mdpi/ic_suggestion_magnifier.png",
    "java/res/drawable-xhdpi/bookmark_edit_active.png",
    "java/res/drawable-xhdpi/btn_suggestion_refine.png",
    "java/res/drawable-xhdpi/ic_history_googblue_24dp.png",
    "java/res/drawable-xhdpi/ic_suggestion_magnifier.png",
    "java/res/drawable-xxhdpi/bookmark_edit_active.png",
    "java/res/drawable-xxhdpi/btn_suggestion_refine.png",
    "java/res/drawable-xxhdpi/ic_history_googblue_24dp.png",
    "java/res/drawable-xxhdpi/ic_suggestion_magnifier.png",
    "java/res/drawable-xxxhdpi/bookmark_edit_active.png",
    "java/res/drawable-xxxhdpi/btn_suggestion_refine.png",
    "java/res/drawable-xxxhdpi/ic_history_googblue_24dp.png",
    "java/res/drawable-xxxhdpi/ic_suggestion_magnifier.png",
    "java/res/drawable/ic_book_round.xml",
    "java/res/drawable/ic_content_copy_black.xml",
    "java/res/drawable/ic_equals_sign_round.xml",
    "java/res/drawable/ic_event_round.xml",
    "java/res/drawable/ic_google_round.xml",
    "java/res/drawable/ic_logo_googleg_20dp.xml",
    "java/res/drawable/ic_loop_round.xml",
    "java/res/drawable/ic_swap_vert_round.xml",
    "java/res/drawable/ic_wb_sunny_round.xml",
    "java/res/drawable/logo_partly_cloudy.xml",
    "java/res/drawable/logo_translate_round.xml",
    "java/res/drawable/omnibox_button_highlight_background.xml",
    "java/res/drawable/omnibox_button_ripple.xml",
    "java/res/drawable/status_view_highlight_background.xml",
    "java/res/drawable/status_view_ripple.xml",
    "java/res/drawable/status_view_verbose_highlight_background.xml",
    "java/res/drawable/status_view_verbose_ripple.xml",
    "java/res/drawable/switch_to_tab.xml",
    "java/res/drawable/trending_up_black_24dp.xml",
    "java/res/layout-sw600dp/location_bar.xml",
    "java/res/layout/location_bar.xml",
    "java/res/layout/location_bar_base.xml",
    "java/res/layout/location_status.xml",
    "java/res/layout/location_status_icon.xml",
    "java/res/layout/location_status_incognito_badge.xml",
    "java/res/layout/omnibox_answer_suggestion.xml",
    "java/res/layout/omnibox_basic_suggestion.xml",
    "java/res/layout/omnibox_results_container.xml",
    "java/res/layout/suggestions_tile_view.xml",
    "java/res/layout/url_action_container.xml",
    "java/res/values-night/dimens.xml",
    "java/res/values-night/drawables.xml",
    "java/res/values-sw600dp/dimens.xml",
    "java/res/values/colors.xml",
    "java/res/values/dimens.xml",
    "java/res/values/drawables.xml",
    "java/res/values/ids.xml",
    "java/res/values/styles.xml",
  ]

  deps = [
    "//chrome/browser/ui/android/strings:ui_strings_grd",
    "//components/browser_ui/styles/android:java_resources",
    "//content/public/android:content_java_resources",
  ]
}

proto_java_library("partner_location_descriptor_proto_java") {
  proto_path = "java/src/org/chromium/chrome/browser/omnibox/geo"
  sources = [ "$proto_path/partner_location_descriptor.proto" ]
}

android_library("unit_device_javatests") {
  resources_package = "org.chromium.chrome.browser.omnibox"
  testonly = true
  sources = [
    "java/src/org/chromium/chrome/browser/omnibox/UrlBarUiUnitTest.java",
    "java/src/org/chromium/chrome/browser/omnibox/status/StatusViewRenderTest.java",
    "java/src/org/chromium/chrome/browser/omnibox/status/StatusViewTest.java",
  ]
  deps = [
    ":java",
    ":java_resources",
    "//base:base_java",
    "//base:base_java_test_support",
    "//chrome/android:chrome_app_java_resources",
    "//chrome/browser/flags:java",
    "//chrome/browser/profiles/android:java",
    "//chrome/browser/tab:java",
    "//chrome/browser/ui/android/toolbar:java",
    "//chrome/test/android:chrome_java_test_support_common",
    "//components/browser_ui/site_settings/android:java",
    "//components/browser_ui/widget/android:java",
    "//components/content_settings/android:content_settings_enums_java",
    "//content/public/test/android:content_java_test_support",
    "//third_party/android_deps:espresso_java",
    "//third_party/androidx:androidx_appcompat_appcompat_resources_java",
    "//third_party/androidx:androidx_core_core_java",
    "//third_party/androidx:androidx_recyclerview_recyclerview_java",
    "//third_party/androidx:androidx_test_core_java",
    "//third_party/androidx:androidx_test_runner_java",
    "//third_party/hamcrest:hamcrest_java",
    "//third_party/hamcrest:hamcrest_library_java",
    "//third_party/jni_zero:jni_zero_java",
    "//third_party/junit:junit",
    "//third_party/mockito:mockito_java",
    "//ui/android:ui_java_test_support",
    "//ui/android:ui_no_recycler_view_java",
    "//url:gurl_java",
  ]
}

robolectric_library("junit") {
  sources = [
    "java/src/org/chromium/chrome/browser/omnibox/AutocompleteEditTextTest.java",
    "java/src/org/chromium/chrome/browser/omnibox/AutocompleteStateUnitTest.java",
    "java/src/org/chromium/chrome/browser/omnibox/DeferredIMEWindowInsetApplicationCallbackTest.java",
    "java/src/org/chromium/chrome/browser/omnibox/KeyboardHideHelperUnitTest.java",
    "java/src/org/chromium/chrome/browser/omnibox/LocationBarMediatorTest.java",
    "java/src/org/chromium/chrome/browser/omnibox/OmniboxSuggestionsDropdownEmbedderImplTest.java",
    "java/src/org/chromium/chrome/browser/omnibox/SearchEngineUtilsUnitTest.java",
    "java/src/org/chromium/chrome/browser/omnibox/ShadowUrlBarData.java",
    "java/src/org/chromium/chrome/browser/omnibox/SpannableAutocompleteEditTextModelUnitTest.java",
    "java/src/org/chromium/chrome/browser/omnibox/UrlBarDataTest.java",
    "java/src/org/chromium/chrome/browser/omnibox/UrlBarMediatorUnitTest.java",
    "java/src/org/chromium/chrome/browser/omnibox/UrlBarUnitTest.java",
    "java/src/org/chromium/chrome/browser/omnibox/UrlBarViewBinderUnitTest.java",
    "java/src/org/chromium/chrome/browser/omnibox/geo/GeolocationHeaderUnitTest.java",
    "java/src/org/chromium/chrome/browser/omnibox/geo/PlatformNetworksManagerTest.java",
    "java/src/org/chromium/chrome/browser/omnibox/geo/VisibleNetworksTest.java",
    "java/src/org/chromium/chrome/browser/omnibox/geo/VisibleNetworksTrackerTest.java",
    "java/src/org/chromium/chrome/browser/omnibox/status/PageInfoIPHControllerUnitTest.java",
    "java/src/org/chromium/chrome/browser/omnibox/status/StatusMediatorUnitTest.java",
    "java/src/org/chromium/chrome/browser/omnibox/styles/OmniboxImageSupplierUnitTest.java",
    "java/src/org/chromium/chrome/browser/omnibox/styles/OmniboxResourceProviderTest.java",
    "java/src/org/chromium/chrome/browser/omnibox/styles/SuggestionSpannableUnitTest.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/AutocompleteMediatorUnitTest.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/CachedZeroSuggestionsManagerUnitTest.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/DropdownItemViewInfoListBuilderUnitTest.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/DropdownItemViewInfoListManagerUnitTest.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/OmniboxLoadUrlParamsUnitTest.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/OmniboxSuggestionsDropdownAdapterUnitTest.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/OmniboxSuggestionsDropdownUnitTest.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/PreWarmingRecycledViewPoolTest.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/RecyclerViewSelectionControllerUnitTest.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/SuggestionHorizontalDividerTest.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/SuggestionsListAnimationDriverTest.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/action/OmniboxActionDelegateImplUnitTest.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/action/OmniboxActionFactoryImplUnitTest.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/action/OmniboxActionInSuggestUnitTest.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/action/OmniboxAnswerActionTest.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/action/OmniboxPedalUnitTest.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/answer/AnswerSuggestionProcessorUnitTest.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/answer/AnswerSuggestionViewBinderTest.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/answer/AnswerTextNewLayoutUnitTest.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/answer/RichAnswerTextTest.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/base/ActionChipsProcessorUnitTest.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/base/ActionChipsViewUnitTest.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/base/BaseSuggestionProcessorUnitTest.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/base/BaseSuggestionViewBinderUnitTest.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/base/BaseSuggestionViewProcessorUnitTest.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/base/BaseSuggestionViewTest.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/base/BaseSuggestionViewUnitTest.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/base/DynamicSpacingRecyclerViewItemDecorationUnitTest.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/base/SimpleHorizontalLayoutViewTest.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/base/SimpleVerticalLayoutViewTest.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/base/SpacingRecyclerViewItemDecorationUnitTest.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/base/SuggestionLayoutUnitTest.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/basic/BasicSuggestionProcessorUnitTest.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/carousel/BaseCarouselSuggestionProcessorUnitTest.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/carousel/BaseCarouselSuggestionViewBinderUnitTest.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/carousel/BaseCarouselSuggestionViewUnitTest.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/clipboard/ClipboardSuggestionProcessorUnitTest.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/editurl/EditUrlSuggestionProcessorUnitTest.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/entity/EntitySuggestionProcessorUnitTest.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/entity/EntitySuggestionViewBinderUnitTest.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/groupseparator/GroupSeparatorProcessorUnitTest.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/header/HeaderProcessorUnitTest.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/header/HeaderViewBinderUnitTest.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/mostvisited/MostVisitedTilesProcessorUnitTest.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/tail/AlignmentManagerUnitTest.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/tail/TailSuggestionProcessorUnitTest.java",
    "java/src/org/chromium/chrome/browser/omnibox/suggestions/tail/TailSuggestionViewBinderUnitTest.java",
    "java/src/org/chromium/chrome/browser/omnibox/voice/RecognitionTestHelper.java",
    "java/src/org/chromium/chrome/browser/omnibox/voice/VoiceRecognitionHandlerUnitTest.java",
    "java/src/org/chromium/chrome/browser/omnibox/voice/VoiceRecognitionUtilTest.java",
  ]
  deps = [
    ":java",
    ":java_resources",
    "$google_play_services_package:google_play_services_location_java",
    "$google_play_services_package:google_play_services_tasks_java",
    "//base:base_java",
    "//base:base_java_test_support",
    "//base:base_junit_test_support",
    "//build/android:build_java",
    "//chrome/android:base_module_java",
    "//chrome/android:chrome_app_java_resources",
    "//chrome/browser/android/lifecycle:java",
    "//chrome/browser/commerce/merchant_viewer/android:java",
    "//chrome/browser/device:java",
    "//chrome/browser/feature_engagement:java",
    "//chrome/browser/flags:java",
    "//chrome/browser/lens:java",
    "//chrome/browser/locale:java",
    "//chrome/browser/preferences:java",
    "//chrome/browser/prefetch/android:java",
    "//chrome/browser/privacy:java",
    "//chrome/browser/profiles/android:java",
    "//chrome/browser/search_engines/android:java",
    "//chrome/browser/settings:factory_java",
    "//chrome/browser/share:java",
    "//chrome/browser/signin/services/android:java",
    "//chrome/browser/tab:java",
    "//chrome/browser/tabmodel:java",
    "//chrome/browser/ui/android/favicon:java",
    "//chrome/browser/ui/android/theme:java",
    "//chrome/browser/ui/android/toolbar:java",
    "//chrome/browser/user_education:java",
    "//chrome/browser/util:java",
    "//chrome/test/android:chrome_java_unit_test_support",
    "//components/browser_ui/settings/android:java",
    "//components/browser_ui/site_settings/android:java",
    "//components/browser_ui/styles/android:java",
    "//components/browser_ui/theme/android:java_resources",
    "//components/browser_ui/widget/android:java",
    "//components/content_settings/android:content_settings_enums_java",
    "//components/content_settings/android:java",
    "//components/embedder_support/android:util_java",
    "//components/externalauth/android:java",
    "//components/favicon/android:java",
    "//components/feature_engagement/public:public_java",
    "//components/image_fetcher:java",
    "//components/omnibox/browser:browser_java",
    "//components/omnibox/browser:junit_test_support",
    "//components/omnibox/common:features_java",
    "//components/permissions/android:java",
    "//components/prefs/android:java",
    "//components/search_engines/android:java",
    "//components/security_state/core:security_state_enums_java",
    "//components/signin/public/android:java",
    "//components/signin/public/android:signin_java_test_support",
    "//components/ukm/android:java",
    "//components/user_prefs/android:java",
    "//content/public/android:content_java",
    "//content/public/android:content_main_dex_jni_java",
    "//content/public/android:public_common_jni_java",
    "//content/public/test/android:content_java_test_support",
    "//testing/android/junit:junit_test_support",
    "//third_party/android_deps:espresso_java",
    "//third_party/android_deps:material_design_java",
    "//third_party/android_deps:protobuf_lite_runtime_java",
    "//third_party/androidx:androidx_annotation_annotation_java",
    "//third_party/androidx:androidx_appcompat_appcompat_java",
    "//third_party/androidx:androidx_core_core_java",
    "//third_party/androidx:androidx_recyclerview_recyclerview_java",
    "//third_party/androidx:androidx_test_core_java",
    "//third_party/androidx:androidx_test_ext_junit_java",
    "//third_party/androidx:androidx_test_runner_java",
    "//third_party/hamcrest:hamcrest_core_java",
    "//third_party/hamcrest:hamcrest_library_java",
    "//third_party/jni_zero:jni_zero_java",
    "//third_party/junit",
    "//third_party/metrics_proto:metrics_proto_java",
    "//third_party/mockito:mockito_java",
    "//ui/accessibility:ax_base_java",
    "//ui/android:ui_java_test_support",
    "//ui/android:ui_no_recycler_view_java",
    "//ui/android:ui_recycler_view_java",
    "//url:gurl_java",
    "//url:gurl_junit_test_support",
  ]
  resources_package = "org.chromium.chrome.browser.omnibox.test"
}