| # Copyright 2024 The Chromium Authors |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| source_set("model") { |
| sources = [ |
| "share_kit_avatar_configuration.h", |
| "share_kit_avatar_configuration.mm", |
| "share_kit_avatar_primitive.h", |
| "share_kit_face_pile_configuration.h", |
| "share_kit_face_pile_configuration.mm", |
| "share_kit_join_configuration.h", |
| "share_kit_join_configuration.mm", |
| "share_kit_manage_configuration.h", |
| "share_kit_manage_configuration.mm", |
| "share_kit_read_configuration.h", |
| "share_kit_read_configuration.mm", |
| "share_kit_service.h", |
| "share_kit_service.mm", |
| "share_kit_service_configuration.h", |
| "share_kit_service_configuration.mm", |
| "share_kit_share_group_configuration.h", |
| "share_kit_share_group_configuration.mm", |
| ] |
| deps = [ |
| "//components/data_sharing/public/protocol", |
| "//components/keyed_service/core", |
| "//ios/chrome/browser/saved_tab_groups/favicon/coordinator", |
| "//ios/chrome/browser/saved_tab_groups/favicon/ui", |
| "//url", |
| ] |
| public_deps = [ "//base" ] |
| } |
| |
| source_set("factory") { |
| sources = [ |
| "share_kit_service_factory.h", |
| "share_kit_service_factory.mm", |
| ] |
| deps = [ |
| ":model", |
| "//components/keyed_service/core", |
| "//components/keyed_service/ios", |
| "//ios/chrome/app:tests_hook", |
| "//ios/chrome/browser/collaboration/model", |
| "//ios/chrome/browser/collaboration/model:features", |
| "//ios/chrome/browser/data_sharing/model", |
| "//ios/chrome/browser/favicon/model", |
| "//ios/chrome/browser/saved_tab_groups/favicon/coordinator", |
| "//ios/chrome/browser/saved_tab_groups/model", |
| "//ios/chrome/browser/shared/model/profile", |
| "//ios/chrome/browser/shared/model/profile:profile_keyed_service_factory", |
| "//ios/chrome/browser/signin/model", |
| "//ios/chrome/browser/signin/model:authentication_service_factory", |
| "//ios/public/provider/chrome/browser/share_kit", |
| ] |
| } |
| |
| source_set("test_support") { |
| testonly = true |
| sources = [ |
| "fake_share_flow_view_controller.h", |
| "fake_share_flow_view_controller.mm", |
| "test_share_kit_service.h", |
| "test_share_kit_service.mm", |
| ] |
| deps = [ |
| ":model", |
| ":test_constants", |
| "//base", |
| ] |
| } |
| |
| source_set("test_constants") { |
| testonly = true |
| sources = [ |
| "test_constants.h", |
| "test_constants.mm", |
| ] |
| deps = [] |
| } |
| |
| source_set("unit_tests") { |
| testonly = true |
| sources = [ "share_kit_service_factory_unittest.mm" ] |
| deps = [ |
| ":factory", |
| ":model", |
| "//base/test:test_support", |
| "//components/data_sharing/public", |
| "//components/saved_tab_groups/test_support", |
| "//ios/chrome/browser/favicon/model", |
| "//ios/chrome/browser/saved_tab_groups/model", |
| "//ios/chrome/browser/shared/model/profile/test", |
| "//ios/chrome/browser/shared/public/features", |
| "//ios/web/public/test:test", |
| ] |
| } |