# Copyright 2021 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 = [
"tabs_search_service.h",
"tabs_search_service.mm",
]
deps = [
"//base",
"//components/history/core/browser",
"//components/signin/public/base",
"//components/signin/public/identity_manager",
"//components/sync_sessions",
"//components/tab_groups",
"//ios/chrome/browser/history/model:utils",
"//ios/chrome/browser/history/ui_bundled:history_driver",
"//ios/chrome/browser/shared/model/browser",
"//ios/chrome/browser/shared/model/web_state_list",
"//ios/chrome/browser/synced_sessions/model",
"//ios/chrome/browser/tabs/model",
"//ios/web/public",
]
}
source_set("model_factory") {
sources = [
"tabs_search_service_factory.h",
"tabs_search_service_factory.mm",
]
deps = [
":model",
"//base",
"//components/keyed_service/core",
"//components/keyed_service/ios",
"//ios/chrome/browser/history/model",
"//ios/chrome/browser/sessions/model",
"//ios/chrome/browser/shared/model/browser",
"//ios/chrome/browser/shared/model/browser_state",
"//ios/chrome/browser/shared/model/profile",
"//ios/chrome/browser/signin/model",
"//ios/chrome/browser/sync/model",
]
}
source_set("unit_tests") {
testonly = true
sources = [ "tabs_search_service_unittest.mm" ]
deps = [
":model",
":model_factory",
"//components/sessions",
"//ios/chrome/browser/history/model",
"//ios/chrome/browser/sessions/model",
"//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",
"//ios/chrome/browser/tabs/model",
"//ios/chrome/test:test_support",
"//ios/web/public/test",
"//ios/web/public/test/fakes",
"//testing/gtest",
"//url",
]
}