chromium/ios/chrome/browser/saved_tab_groups/model/BUILD.gn

# 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 = [
    "ios_tab_group_action_context.h",
    "ios_tab_group_action_context.mm",
    "ios_tab_group_sync_delegate.h",
    "ios_tab_group_sync_delegate.mm",
    "ios_tab_group_sync_util.h",
    "ios_tab_group_sync_util.mm",
    "tab_group_local_update_observer.h",
    "tab_group_local_update_observer.mm",
    "tab_group_sync_service_factory.h",
    "tab_group_sync_service_factory.mm",
  ]
  deps = [
    "//base",
    "//components/keyed_service/core",
    "//components/keyed_service/ios",
    "//components/saved_tab_groups:core",
    "//components/saved_tab_groups:fake_tab_group_sync_service",
    "//components/saved_tab_groups:tab_group_sync_bridge",
    "//components/sync/base",
    "//components/sync/model",
    "//components/sync_device_info",
    "//components/tab_groups",
    "//ios/chrome/app:tests_hook",
    "//ios/chrome/app/application_delegate:app_state_header",
    "//ios/chrome/browser/sessions/model:restoration_observer",
    "//ios/chrome/browser/sessions/model:session_restoration_service",
    "//ios/chrome/browser/sessions/model:session_restoration_service_factory",
    "//ios/chrome/browser/shared/coordinator/scene:scene_state_header",
    "//ios/chrome/browser/shared/model/browser",
    "//ios/chrome/browser/shared/model/browser_state",
    "//ios/chrome/browser/shared/model/profile",
    "//ios/chrome/browser/shared/model/web_state_list",
    "//ios/chrome/browser/shared/model/web_state_list:utils",
    "//ios/chrome/browser/shared/public/features",
    "//ios/chrome/browser/sync/model:data_type_store_service_factory",
    "//ios/chrome/browser/sync/model:device_info_sync_service_factory",
    "//ios/chrome/browser/tab_insertion/model",
    "//ios/chrome/common",
    "//ios/web/public",
  ]
}

source_set("unit_tests") {
  testonly = true
  sources = [
    "ios_tab_group_sync_delegate_unittest.mm",
    "ios_tab_group_sync_util_unittest.mm",
    "tab_group_local_update_observer_unittest.mm",
    "tab_group_sync_service_factory_unittest.mm",
  ]
  deps = [
    ":model",
    "//base",
    "//base/test:test_support",
    "//components/saved_tab_groups:model",
    "//components/saved_tab_groups:test_support",
    "//components/tab_groups",
    "//ios/chrome/app/application_delegate:app_state_header",
    "//ios/chrome/browser/sessions/model:session_restoration_service_factory",
    "//ios/chrome/browser/sessions/model:test_support",
    "//ios/chrome/browser/shared/coordinator/scene:scene_state_header",
    "//ios/chrome/browser/shared/coordinator/scene/test",
    "//ios/chrome/browser/shared/model/browser",
    "//ios/chrome/browser/shared/model/browser/test:test_support",
    "//ios/chrome/browser/shared/model/profile/test",
    "//ios/chrome/browser/shared/model/web_state_list/test:test_support",
    "//ios/chrome/browser/shared/public/features",
    "//ios/chrome/browser/snapshots/model",
    "//ios/chrome/browser/tab_insertion/model",
    "//ios/web/public/test",
    "//testing/gmock",
    "//testing/gtest",
    "//third_party/ocmock",
  ]
}