| # Copyright 2020 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/chromeos/ui_mode.gni") |
| import("//testing/test.gni") |
| |
| assert(is_chromeos_ash, "Phone Hub is Ash only") |
| |
| static_library("phonehub") { |
| sources = [ |
| "browser_tabs_metadata_fetcher.h", |
| "browser_tabs_model.cc", |
| "browser_tabs_model.h", |
| "browser_tabs_model_controller.cc", |
| "browser_tabs_model_controller.h", |
| "browser_tabs_model_provider.cc", |
| "browser_tabs_model_provider.h", |
| "camera_roll_download_manager.h", |
| "camera_roll_item.cc", |
| "camera_roll_item.h", |
| "camera_roll_manager.cc", |
| "camera_roll_manager.h", |
| "camera_roll_manager_impl.cc", |
| "camera_roll_manager_impl.h", |
| "camera_roll_thumbnail_decoder.h", |
| "camera_roll_thumbnail_decoder_impl.cc", |
| "camera_roll_thumbnail_decoder_impl.h", |
| "connection_scheduler.h", |
| "connection_scheduler_impl.cc", |
| "connection_scheduler_impl.h", |
| "cros_state_sender.cc", |
| "cros_state_sender.h", |
| "do_not_disturb_controller.cc", |
| "do_not_disturb_controller.h", |
| "do_not_disturb_controller_impl.cc", |
| "do_not_disturb_controller_impl.h", |
| "feature_status.cc", |
| "feature_status.h", |
| "feature_status_provider.cc", |
| "feature_status_provider.h", |
| "feature_status_provider_impl.cc", |
| "feature_status_provider_impl.h", |
| "find_my_device_controller.cc", |
| "find_my_device_controller.h", |
| "find_my_device_controller_impl.cc", |
| "find_my_device_controller_impl.h", |
| "invalid_connection_disconnector.cc", |
| "invalid_connection_disconnector.h", |
| "message_receiver.cc", |
| "message_receiver.h", |
| "message_receiver_impl.cc", |
| "message_receiver_impl.h", |
| "message_sender.h", |
| "message_sender_impl.cc", |
| "message_sender_impl.h", |
| "multidevice_setup_state_updater.cc", |
| "multidevice_setup_state_updater.h", |
| "mutable_phone_model.cc", |
| "mutable_phone_model.h", |
| "notification.cc", |
| "notification.h", |
| "notification_access_manager.cc", |
| "notification_access_manager.h", |
| "notification_access_manager_impl.cc", |
| "notification_access_manager_impl.h", |
| "notification_access_setup_operation.cc", |
| "notification_access_setup_operation.h", |
| "notification_click_handler.h", |
| "notification_interaction_handler.cc", |
| "notification_interaction_handler.h", |
| "notification_interaction_handler_impl.cc", |
| "notification_interaction_handler_impl.h", |
| "notification_manager.cc", |
| "notification_manager.h", |
| "notification_manager_impl.cc", |
| "notification_manager_impl.h", |
| "notification_processor.cc", |
| "notification_processor.h", |
| "onboarding_ui_tracker.cc", |
| "onboarding_ui_tracker.h", |
| "onboarding_ui_tracker_impl.cc", |
| "onboarding_ui_tracker_impl.h", |
| "phone_hub_manager.h", |
| "phone_hub_manager_impl.cc", |
| "phone_hub_manager_impl.h", |
| "phone_model.cc", |
| "phone_model.h", |
| "phone_status_model.cc", |
| "phone_status_model.h", |
| "phone_status_processor.cc", |
| "phone_status_processor.h", |
| "pref_names.cc", |
| "pref_names.h", |
| "recent_app_click_observer.h", |
| "recent_apps_interaction_handler.cc", |
| "recent_apps_interaction_handler.h", |
| "recent_apps_interaction_handler_impl.cc", |
| "recent_apps_interaction_handler_impl.h", |
| "screen_lock_manager.cc", |
| "screen_lock_manager.h", |
| "screen_lock_manager_impl.cc", |
| "screen_lock_manager_impl.h", |
| "tether_controller.cc", |
| "tether_controller.h", |
| "tether_controller_impl.cc", |
| "tether_controller_impl.h", |
| "url_constants.cc", |
| "url_constants.h", |
| "user_action_recorder.h", |
| "user_action_recorder_impl.cc", |
| "user_action_recorder_impl.h", |
| "util/histogram_util.cc", |
| "util/histogram_util.h", |
| ] |
| |
| deps = [ |
| "//ash/components/phonehub/proto", |
| "//ash/constants", |
| "//base", |
| "//chromeos/components/multidevice", |
| "//chromeos/components/multidevice/logging", |
| "//chromeos/dbus/power", |
| "//chromeos/services/device_sync/public/cpp", |
| "//chromeos/services/multidevice_setup/public/cpp", |
| "//chromeos/services/multidevice_setup/public/cpp:prefs", |
| "//chromeos/services/network_config", |
| "//chromeos/services/network_config:in_process_instance", |
| "//chromeos/services/secure_channel/public/cpp/client", |
| "//chromeos/services/secure_channel/public/mojom", |
| "//components/keyed_service/core", |
| "//components/prefs", |
| "//components/session_manager/core", |
| "//device/bluetooth", |
| "//net", |
| "//services/data_decoder/public/cpp", |
| "//ui/gfx", |
| "//url", |
| ] |
| } |
| |
| # Sources only include files used in the debug UI. |
| static_library("debug") { |
| sources = [ |
| "fake_browser_tabs_model_provider.cc", |
| "fake_browser_tabs_model_provider.h", |
| "fake_camera_roll_manager.cc", |
| "fake_camera_roll_manager.h", |
| "fake_connection_scheduler.cc", |
| "fake_connection_scheduler.h", |
| "fake_do_not_disturb_controller.cc", |
| "fake_do_not_disturb_controller.h", |
| "fake_feature_status_provider.cc", |
| "fake_feature_status_provider.h", |
| "fake_find_my_device_controller.cc", |
| "fake_find_my_device_controller.h", |
| "fake_notification_access_manager.cc", |
| "fake_notification_access_manager.h", |
| "fake_notification_interaction_handler.cc", |
| "fake_notification_interaction_handler.h", |
| "fake_notification_manager.cc", |
| "fake_notification_manager.h", |
| "fake_onboarding_ui_tracker.cc", |
| "fake_onboarding_ui_tracker.h", |
| "fake_phone_hub_manager.cc", |
| "fake_phone_hub_manager.h", |
| "fake_recent_apps_interaction_handler.cc", |
| "fake_recent_apps_interaction_handler.h", |
| "fake_screen_lock_manager.cc", |
| "fake_screen_lock_manager.h", |
| "fake_tether_controller.cc", |
| "fake_tether_controller.h", |
| "fake_user_action_recorder.cc", |
| "fake_user_action_recorder.h", |
| ] |
| |
| public_deps = [ ":phonehub" ] |
| |
| deps = [ |
| "//ash/components/phonehub/proto", |
| "//ash/constants", |
| "//base", |
| "//chromeos/components/multidevice/logging", |
| "//chromeos/services/multidevice_setup/public/mojom", |
| ] |
| } |
| |
| static_library("test_support") { |
| testonly = true |
| |
| sources = [ |
| "fake_browser_tabs_metadata_fetcher.cc", |
| "fake_browser_tabs_metadata_fetcher.h", |
| "fake_browser_tabs_model_provider.cc", |
| "fake_browser_tabs_model_provider.h", |
| "fake_camera_roll_download_manager.cc", |
| "fake_camera_roll_download_manager.h", |
| "fake_message_receiver.h", |
| "fake_message_sender.cc", |
| "fake_message_sender.h", |
| "phone_model_test_util.cc", |
| "phone_model_test_util.h", |
| ] |
| |
| public_deps = [ |
| ":debug", |
| ":phonehub", |
| ] |
| |
| deps = [ |
| "//ash/components/phonehub/proto", |
| "//base", |
| "//chromeos/services/secure_channel/public/mojom", |
| ] |
| } |
| |
| source_set("unit_tests") { |
| testonly = true |
| |
| sources = [ |
| "browser_tabs_model_controller_unittest.cc", |
| "browser_tabs_model_unittest.cc", |
| "camera_roll_item_unittest.cc", |
| "camera_roll_manager_impl_unittest.cc", |
| "camera_roll_thumbnail_decoder_impl_unittest.cc", |
| "connection_scheduler_impl_unittest.cc", |
| "cros_state_sender_unittest.cc", |
| "do_not_disturb_controller_impl_unittest.cc", |
| "feature_status_provider_impl_unittest.cc", |
| "find_my_device_controller_impl_unittest.cc", |
| "invalid_connection_disconnector_unittest.cc", |
| "message_receiver_unittest.cc", |
| "message_sender_unittest.cc", |
| "multidevice_setup_state_updater_unittest.cc", |
| "mutable_phone_model_unittest.cc", |
| "notification_access_manager_impl_unittest.cc", |
| "notification_interaction_handler_impl_unittest.cc", |
| "notification_manager_impl_unittest.cc", |
| "notification_processor_unittest.cc", |
| "onboarding_ui_tracker_impl_unittest.cc", |
| "phone_status_model_unittest.cc", |
| "phone_status_processor_unittest.cc", |
| "recent_apps_interaction_handler_impl_unittest.cc", |
| "screen_lock_manager_impl_unittest.cc", |
| "tether_controller_impl_unittest.cc", |
| "user_action_recorder_impl_unittest.cc", |
| ] |
| |
| deps = [ |
| ":debug", |
| ":phonehub", |
| ":test_support", |
| "//ash/components/phonehub/proto", |
| "//ash/constants", |
| "//base", |
| "//base/test:test_support", |
| "//chromeos/components/multidevice", |
| "//chromeos/components/multidevice:test_support", |
| "//chromeos/dbus/power", |
| "//chromeos/network:network", |
| "//chromeos/network:test_support", |
| "//chromeos/services/device_sync/public/cpp", |
| "//chromeos/services/device_sync/public/cpp:test_support", |
| "//chromeos/services/multidevice_setup/public/cpp", |
| "//chromeos/services/multidevice_setup/public/cpp:prefs", |
| "//chromeos/services/multidevice_setup/public/cpp:test_support", |
| "//chromeos/services/network_config:in_process_instance", |
| "//chromeos/services/network_config/public/cpp:test_support", |
| "//chromeos/services/secure_channel/public/cpp/client:test_support", |
| "//chromeos/services/secure_channel/public/mojom", |
| "//components/prefs:test_support", |
| "//components/session_manager/core", |
| "//device/bluetooth:mocks", |
| "//testing/gtest", |
| "//ui/gfx", |
| "//ui/gfx:test_support", |
| ] |
| } |