| # 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("//third_party/protobuf/proto_library.gni") |
| |
| if (is_android) { |
| import("//build/config/android/rules.gni") |
| } |
| |
| proto_library("proto") { |
| sources = [ |
| "action_strategy.proto", |
| "action_value.proto", |
| "dom_action.proto", |
| "generic_ui.proto", |
| "model.proto", |
| "service.proto", |
| "view_layout.proto", |
| ] |
| } |
| |
| static_library("browser") { |
| sources = [ |
| "actions/action.cc", |
| "actions/action.h", |
| "actions/action_delegate.h", |
| "actions/action_delegate_util.cc", |
| "actions/action_delegate_util.h", |
| "actions/check_element_tag_action.cc", |
| "actions/check_element_tag_action.h", |
| "actions/check_option_element_action.cc", |
| "actions/check_option_element_action.h", |
| "actions/clear_persistent_ui_action.cc", |
| "actions/clear_persistent_ui_action.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/configure_ui_state_action.cc", |
| "actions/configure_ui_state_action.h", |
| "actions/dispatch_js_event_action.cc", |
| "actions/dispatch_js_event_action.h", |
| "actions/expect_navigation_action.cc", |
| "actions/expect_navigation_action.h", |
| "actions/fallback_handler/required_field.cc", |
| "actions/fallback_handler/required_field.h", |
| "actions/fallback_handler/required_fields_fallback_handler.cc", |
| "actions/fallback_handler/required_fields_fallback_handler.h", |
| "actions/generate_password_for_form_field_action.cc", |
| "actions/generate_password_for_form_field_action.h", |
| "actions/get_element_status_action.cc", |
| "actions/get_element_status_action.h", |
| "actions/highlight_element_action.cc", |
| "actions/highlight_element_action.h", |
| "actions/navigate_action.cc", |
| "actions/navigate_action.h", |
| "actions/perform_on_single_element_action.cc", |
| "actions/perform_on_single_element_action.h", |
| "actions/popup_message_action.cc", |
| "actions/popup_message_action.h", |
| "actions/presave_generated_password_action.cc", |
| "actions/presave_generated_password_action.h", |
| "actions/prompt_action.cc", |
| "actions/prompt_action.h", |
| "actions/release_elements_action.cc", |
| "actions/release_elements_action.h", |
| "actions/save_generated_password_action.cc", |
| "actions/save_generated_password_action.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/set_persistent_ui_action.cc", |
| "actions/set_persistent_ui_action.h", |
| "actions/show_cast_action.cc", |
| "actions/show_cast_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/stopwatch.cc", |
| "actions/stopwatch.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", |
| "autofill_assistant_onboarding_fetcher.cc", |
| "autofill_assistant_onboarding_fetcher.h", |
| "basic_interactions.cc", |
| "basic_interactions.h", |
| "batch_element_checker.cc", |
| "batch_element_checker.h", |
| "bottom_sheet_state.cc", |
| "bottom_sheet_state.h", |
| "chip.cc", |
| "chip.h", |
| "client.h", |
| "client_context.cc", |
| "client_context.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", |
| "field_formatter.cc", |
| "field_formatter.h", |
| "full_card_requester.cc", |
| "full_card_requester.h", |
| "generic_ui_java_generated_enums.h", |
| "generic_ui_replace_placeholders.cc", |
| "generic_ui_replace_placeholders.h", |
| "info_box.cc", |
| "info_box.h", |
| "intent_strings.cc", |
| "intent_strings.h", |
| "metrics.cc", |
| "metrics.h", |
| "onboarding_result.h", |
| "overlay_state.h", |
| "protocol_utils.cc", |
| "protocol_utils.h", |
| "radio_button_controller.cc", |
| "radio_button_controller.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_parameters.cc", |
| "script_parameters.h", |
| "script_precondition.cc", |
| "script_precondition.h", |
| "script_tracker.cc", |
| "script_tracker.h", |
| "selector.cc", |
| "selector.h", |
| "service/access_token_fetcher.h", |
| "service/api_key_fetcher.cc", |
| "service/api_key_fetcher.h", |
| "service/server_url_fetcher.cc", |
| "service/server_url_fetcher.h", |
| "service/service.h", |
| "service/service_impl.cc", |
| "service/service_impl.h", |
| "service/service_request_sender.cc", |
| "service/service_request_sender.h", |
| "service/service_request_sender_impl.cc", |
| "service/service_request_sender_impl.h", |
| "service/service_request_sender_local_impl.cc", |
| "service/service_request_sender_local_impl.h", |
| "service/simple_url_loader_factory.cc", |
| "service/simple_url_loader_factory.h", |
| "starter.cc", |
| "starter.h", |
| "starter_platform_delegate.h", |
| "startup_util.cc", |
| "startup_util.h", |
| "state.h", |
| "string_conversions_util.cc", |
| "string_conversions_util.h", |
| "switches.cc", |
| "switches.h", |
| "top_padding.cc", |
| "top_padding.h", |
| "trigger_context.cc", |
| "trigger_context.h", |
| "trigger_scripts/dynamic_trigger_conditions.cc", |
| "trigger_scripts/dynamic_trigger_conditions.h", |
| "trigger_scripts/static_trigger_conditions.cc", |
| "trigger_scripts/static_trigger_conditions.h", |
| "trigger_scripts/trigger_script.cc", |
| "trigger_scripts/trigger_script.h", |
| "trigger_scripts/trigger_script_coordinator.cc", |
| "trigger_scripts/trigger_script_coordinator.h", |
| "ui_delegate.h", |
| "url_utils.cc", |
| "url_utils.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", |
| "wait_for_document_operation.cc", |
| "wait_for_document_operation.h", |
| "wait_for_dom_observer.h", |
| "web/check_on_top_worker.cc", |
| "web/check_on_top_worker.h", |
| "web/click_or_tap_worker.cc", |
| "web/click_or_tap_worker.h", |
| "web/element.cc", |
| "web/element.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/element_store.cc", |
| "web/element_store.h", |
| "web/js_snippets.cc", |
| "web/js_snippets.h", |
| "web/send_keyboard_input_worker.cc", |
| "web/send_keyboard_input_worker.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_manager.cc", |
| "website_login_manager.h", |
| "website_login_manager_impl.cc", |
| "website_login_manager_impl.h", |
| ] |
| |
| deps = [ |
| ":proto", |
| "//base", |
| "//build:chromeos_buildflags", |
| "//components/autofill/content/browser", |
| "//components/autofill/core/browser", |
| "//components/autofill/core/common", |
| "//components/autofill_assistant/browser/devtools", |
| "//components/autofill_assistant/browser/public:public", |
| "//components/google/core/common:common", |
| "//components/keyed_service/core", |
| "//components/password_manager/content/browser:browser", |
| "//components/password_manager/core/browser:browser", |
| "//components/password_manager/core/browser/form_parsing:form_parsing", |
| "//components/signin/public/identity_manager", |
| "//components/strings:components_strings_grit", |
| "//components/ukm/content:content", |
| "//components/version_info", |
| "//content/public/browser", |
| "//google_apis", |
| "//net", |
| "//services/metrics/public/cpp:metrics_cpp", |
| "//services/metrics/public/cpp:ukm_builders", |
| "//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", |
| "fake_starter_platform_delegate.cc", |
| "fake_starter_platform_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_user_model_observer.cc", |
| "mock_user_model_observer.h", |
| "mock_website_login_manager.cc", |
| "mock_website_login_manager.h", |
| "service/mock_service.cc", |
| "service/mock_service.h", |
| "web/fake_element_store.cc", |
| "web/fake_element_store.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", |
| "//components/version_info", |
| "//testing/gmock", |
| "//testing/gtest", |
| ] |
| } |
| |
| source_set("unit_tests") { |
| testonly = true |
| sources = [ |
| "actions/action_delegate_util_unittest.cc", |
| "actions/action_test_utils.cc", |
| "actions/action_test_utils.h", |
| "actions/action_unittest.cc", |
| "actions/check_element_tag_action_unittest.cc", |
| "actions/check_option_element_action_unittest.cc", |
| "actions/clear_persistent_ui_action_unittest.cc", |
| "actions/click_action_unittest.cc", |
| "actions/collect_user_data_action_unittest.cc", |
| "actions/configure_bottom_sheet_action_unittest.cc", |
| "actions/dispatch_js_event_action_unittest.cc", |
| "actions/fallback_handler/required_field_unittest.cc", |
| "actions/fallback_handler/required_fields_fallback_handler_unittest.cc", |
| "actions/generate_password_for_form_field_action_unittest.cc", |
| "actions/get_element_status_action_unittest.cc", |
| "actions/highlight_element_action_unittest.cc", |
| "actions/perform_on_single_element_action_unittest.cc", |
| "actions/popup_message_action_unittest.cc", |
| "actions/presave_generated_password_action_unittest.cc", |
| "actions/prompt_action_unittest.cc", |
| "actions/release_elements_action_unittest.cc", |
| "actions/save_generated_password_action_unittest.cc", |
| "actions/select_option_action_unittest.cc", |
| "actions/set_attribute_action_unittest.cc", |
| "actions/set_form_field_value_action_unittest.cc", |
| "actions/set_persistent_ui_action_unittest.cc", |
| "actions/show_cast_action_unittest.cc", |
| "actions/show_details_action_unittest.cc", |
| "actions/show_generic_ui_action_unittest.cc", |
| "actions/show_progress_bar_action_unittest.cc", |
| "actions/stopwatch_unittest.cc", |
| "actions/tell_action_unittest.cc", |
| "actions/upload_dom_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", |
| "autofill_assistant_onboarding_fetcher_unittest.cc", |
| "basic_interactions_unittest.cc", |
| "batch_element_checker_unittest.cc", |
| "client_context_unittest.cc", |
| "client_settings_unittest.cc", |
| "controller_unittest.cc", |
| "details_unittest.cc", |
| "element_area_unittest.cc", |
| "element_precondition_unittest.cc", |
| "event_handler_unittest.cc", |
| "field_formatter_unittest.cc", |
| "generic_ui_replace_placeholders_unittest.cc", |
| "mock_client_context.cc", |
| "mock_client_context.h", |
| "protocol_utils_unittest.cc", |
| "radio_button_controller_unittest.cc", |
| "retry_timer_unittest.cc", |
| "script_executor_unittest.cc", |
| "script_parameters_unittest.cc", |
| "script_precondition_unittest.cc", |
| "script_tracker_unittest.cc", |
| "selector_unittest.cc", |
| "service/api_key_fetcher_unittest.cc", |
| "service/mock_access_token_fetcher.cc", |
| "service/mock_access_token_fetcher.h", |
| "service/mock_service_request_sender.cc", |
| "service/mock_service_request_sender.h", |
| "service/mock_simple_url_loader_factory.cc", |
| "service/mock_simple_url_loader_factory.h", |
| "service/mock_url_loader.cc", |
| "service/mock_url_loader.h", |
| "service/server_url_fetcher_unittest.cc", |
| "service/service_impl_unittest.cc", |
| "service/service_request_sender_impl_unittest.cc", |
| "service/service_request_sender_local_impl_unittest.cc", |
| "starter_unittest.cc", |
| "startup_util_unittest.cc", |
| "string_conversions_util_unittest.cc", |
| "test_util.cc", |
| "test_util.h", |
| "trigger_context_unittest.cc", |
| "trigger_scripts/dynamic_trigger_conditions_unittest.cc", |
| "trigger_scripts/mock_dynamic_trigger_conditions.cc", |
| "trigger_scripts/mock_dynamic_trigger_conditions.h", |
| "trigger_scripts/mock_static_trigger_conditions.cc", |
| "trigger_scripts/mock_static_trigger_conditions.h", |
| "trigger_scripts/mock_trigger_script_ui_delegate.cc", |
| "trigger_scripts/mock_trigger_script_ui_delegate.h", |
| "trigger_scripts/static_trigger_conditions_unittest.cc", |
| "trigger_scripts/trigger_script_coordinator_unittest.cc", |
| "trigger_scripts/trigger_script_unittest.cc", |
| "url_utils_unittest.cc", |
| "user_data_util_unittest.cc", |
| "user_model_unittest.cc", |
| "value_util_unittest.cc", |
| "wait_for_document_operation_unittest.cc", |
| "web/element_store_unittest.cc", |
| "website_login_manager_impl_unittest.cc", |
| ] |
| |
| deps = [ |
| ":browser", |
| ":proto", |
| ":unit_test_support", |
| "//base", |
| "//base/test:test_support", |
| "//components/autofill/core/browser:test_support", |
| "//components/autofill_assistant/browser/public:unit_test_support", |
| "//components/password_manager/core/browser:test_support", |
| "//components/password_manager/core/common", |
| "//components/strings:components_strings_grit", |
| "//components/ukm:test_support", |
| "//components/ukm/content:content", |
| "//components/version_info", |
| "//content/test:test_support", |
| "//services/network: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/action_strategy.proto", |
| "$proto_path/action_value.proto", |
| "$proto_path/dom_action.proto", |
| "$proto_path/generic_ui.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", |
| "onboarding_result.h", |
| "overlay_state.h", |
| "trigger_scripts/trigger_script_action.h", |
| "user_data.h", |
| "viewport_mode.h", |
| ] |
| } |
| |
| java_cpp_strings("autofill_assistant_intent_strings_java") { |
| sources = [ "intent_strings.cc" ] |
| |
| template = "java_templates/IntentStrings.java.tmpl" |
| } |
| |
| static_library("test_support") { |
| testonly = true |
| sources = [ |
| "service/java_service.cc", |
| "service/java_service.h", |
| "service/java_service_request_sender.cc", |
| "service/java_service_request_sender.h", |
| "service/java_test_endpoint_service.cc", |
| "service/java_test_endpoint_service.h", |
| ] |
| |
| deps = [ |
| ":browser", |
| ":proto", |
| "//base", |
| "//chrome/android/features/autofill_assistant:test_support_jni_headers", |
| "//content/public/browser", |
| "//net", |
| "//url:url", |
| ] |
| } |
| } |