# Copyright 2018 The Chromium Authors.All rights reserved. # Use of this source code is governed by a BSD - style license that can be # found in the LICENSE file. import("//build/config/jumbo.gni") import("//third_party/protobuf/proto_library.gni") if (is_android) { import("//build/config/android/rules.gni") } proto_library("proto") { sources = [ "generic_ui.proto", "interactions.proto", "model.proto", "service.proto", "view_layout.proto", ] } jumbo_static_library("browser") { sources = [ "access_token_fetcher.h", "actions/action.cc", "actions/action.h", "actions/action_delegate.h", "actions/click_action.cc", "actions/click_action.h", "actions/collect_user_data_action.cc", "actions/collect_user_data_action.h", "actions/configure_bottom_sheet_action.cc", "actions/configure_bottom_sheet_action.h", "actions/expect_navigation_action.cc", "actions/expect_navigation_action.h", "actions/focus_element_action.cc", "actions/focus_element_action.h", "actions/highlight_element_action.cc", "actions/highlight_element_action.h", "actions/navigate_action.cc", "actions/navigate_action.h", "actions/popup_message_action.cc", "actions/popup_message_action.h", "actions/prompt_action.cc", "actions/prompt_action.h", "actions/required_fields_fallback_handler.cc", "actions/required_fields_fallback_handler.h", "actions/select_option_action.cc", "actions/select_option_action.h", "actions/set_attribute_action.cc", "actions/set_attribute_action.h", "actions/set_form_field_value_action.cc", "actions/set_form_field_value_action.h", "actions/show_details_action.cc", "actions/show_details_action.h", "actions/show_form_action.cc", "actions/show_form_action.h", "actions/show_generic_ui_action.cc", "actions/show_generic_ui_action.h", "actions/show_info_box_action.cc", "actions/show_info_box_action.h", "actions/show_progress_bar_action.cc", "actions/show_progress_bar_action.h", "actions/stop_action.cc", "actions/stop_action.h", "actions/tell_action.cc", "actions/tell_action.h", "actions/unsupported_action.cc", "actions/unsupported_action.h", "actions/upload_dom_action.cc", "actions/upload_dom_action.h", "actions/use_address_action.cc", "actions/use_address_action.h", "actions/use_credit_card_action.cc", "actions/use_credit_card_action.h", "actions/wait_for_document_action.cc", "actions/wait_for_document_action.h", "actions/wait_for_dom_action.cc", "actions/wait_for_dom_action.h", "actions/wait_for_navigation_action.cc", "actions/wait_for_navigation_action.h", "basic_interactions.cc", "basic_interactions.h", "batch_element_checker.cc", "batch_element_checker.h", "chip.cc", "chip.h", "client.h", "client_settings.cc", "client_settings.h", "client_status.cc", "client_status.h", "controller.cc", "controller.h", "controller_observer.cc", "controller_observer.h", "details.cc", "details.h", "device_context.cc", "device_context.h", "direct_action.cc", "direct_action.h", "element_area.cc", "element_area.h", "element_precondition.cc", "element_precondition.h", "event_handler.cc", "event_handler.h", "features.cc", "features.h", "generic_ui_java_generated_enums.h", "info_box.cc", "info_box.h", "metrics.cc", "metrics.h", "overlay_state.h", "protocol_utils.cc", "protocol_utils.h", "rectf.cc", "rectf.h", "retry_timer.cc", "retry_timer.h", "script.cc", "script.h", "script_executor.cc", "script_executor.h", "script_executor_delegate.h", "script_precondition.cc", "script_precondition.h", "script_tracker.cc", "script_tracker.h", "selector.cc", "selector.h", "self_delete_full_card_requester.cc", "self_delete_full_card_requester.h", "service.h", "service_impl.cc", "service_impl.h", "state.h", "string_conversions_util.cc", "string_conversions_util.h", "top_padding.cc", "top_padding.h", "trigger_context.cc", "trigger_context.h", "ui_delegate.h", "user_action.cc", "user_action.h", "user_data.cc", "user_data.h", "user_data_util.cc", "user_data_util.h", "user_model.cc", "user_model.h", "value_util.cc", "value_util.h", "viewport_mode.h", "web/element_finder.cc", "web/element_finder.h", "web/element_position_getter.cc", "web/element_position_getter.h", "web/element_rect_getter.cc", "web/element_rect_getter.h", "web/web_controller.cc", "web/web_controller.h", "web/web_controller_util.cc", "web/web_controller_util.h", "web/web_controller_worker.h", "website_login_fetcher.cc", "website_login_fetcher.h", "website_login_fetcher_impl.cc", "website_login_fetcher_impl.h", ] deps = [ ":proto", "//base", "//components/autofill/content/browser", "//components/autofill/core/browser", "//components/autofill/core/common", "//components/autofill_assistant/browser/devtools", "//components/password_manager/core/browser:browser", "//components/signin/public/identity_manager", "//components/strings:components_strings_grit", "//components/version_info", "//content/public/browser", "//google_apis", "//net", "//third_party/re2", ] } static_library("unit_test_support") { testonly = true sources = [ "actions/mock_action_delegate.cc", "actions/mock_action_delegate.h", "fake_script_executor_delegate.cc", "fake_script_executor_delegate.h", "mock_client.cc", "mock_client.h", "mock_controller_observer.cc", "mock_controller_observer.h", "mock_personal_data_manager.cc", "mock_personal_data_manager.h", "mock_service.cc", "mock_service.h", "mock_user_model_observer.cc", "mock_user_model_observer.h", "mock_website_login_fetcher.cc", "mock_website_login_fetcher.h", "web/mock_web_controller.cc", "web/mock_web_controller.h", ] deps = [ ":browser", ":proto", "//base", "//base/test:test_support", "//components/autofill/core/browser:test_support", "//testing/gmock", "//testing/gtest", ] } source_set("unit_tests") { testonly = true sources = [ "actions/collect_user_data_action_unittest.cc", "actions/configure_bottom_sheet_action_unittest.cc", "actions/popup_message_action_unittest.cc", "actions/prompt_action_unittest.cc", "actions/required_fields_fallback_handler_unittest.cc", "actions/set_form_field_value_action_unittest.cc", "actions/show_details_action_unittest.cc", "actions/show_generic_ui_action_unittest.cc", "actions/tell_action_unittest.cc", "actions/use_address_action_unittest.cc", "actions/use_credit_card_action_unittest.cc", "actions/wait_for_document_action_unittest.cc", "actions/wait_for_dom_action_unittest.cc", "basic_interactions_unittest.cc", "batch_element_checker_unittest.cc", "controller_unittest.cc", "details_unittest.cc", "element_area_unittest.cc", "element_precondition_unittest.cc", "event_handler_unittest.cc", "protocol_utils_unittest.cc", "retry_timer_unittest.cc", "script_executor_unittest.cc", "script_precondition_unittest.cc", "script_tracker_unittest.cc", "selector_unittest.cc", "service_impl_unittest.cc", "string_conversions_util_unittest.cc", "trigger_context_unittest.cc", "user_data_util_unittest.cc", "user_model_unittest.cc", "value_util_unittest.cc", ] deps = [ ":browser", ":proto", ":unit_test_support", "//base", "//base/test:test_support", "//components/autofill/core/browser:test_support", "//components/password_manager/core/browser:test_support", "//components/strings:components_strings_grit", "//content/test:test_support", "//testing/gmock", "//testing/gtest", "//third_party/re2", ] } static_library("extensions_test_support") { testonly = true deps = [ ":browser", ":proto", ":unit_test_support", "//base", "//base/test:test_support", "//testing/gmock", "//testing/gtest", ] } if (is_android) { proto_java_library("proto_java") { proto_path = "//components/autofill_assistant/browser/" sources = [ "$proto_path/generic_ui.proto", "$proto_path/interactions.proto", "$proto_path/model.proto", "$proto_path/service.proto", "$proto_path/view_layout.proto", ] } java_cpp_enum("autofill_assistant_enums_java") { sources = [ "generic_ui_java_generated_enums.h", "metrics.h", "overlay_state.h", "user_data.h", "viewport_mode.h", ] } static_library("test_support") { testonly = true sources = [ "java_service.cc", "java_service.h", ] deps = [ ":browser", ":proto", "//base", "//chrome/android/features/autofill_assistant:test_support_jni_headers", "//url:url", ] } }