chromium/ios/chrome/browser/search_engine_choice/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 = [
    "search_engine_choice_util.h",
    "search_engine_choice_util.mm",
  ]
  deps = [
    "//base",
    "//components/search_engines",
    "//ios/chrome/app:tests_hook",
    "//ios/chrome/browser/policy/model",
    "//ios/chrome/browser/search_engines/model",
    "//ios/chrome/browser/shared/model/browser",
    "//ios/chrome/browser/shared/model/browser_state",
    "//ios/chrome/browser/shared/model/profile",
    "//ios/chrome/browser/shared/public/features:system_flags",
    "//ios/chrome/browser/ui/search_engine_choice:ui_util",
    "//ios/public/provider/chrome/browser/signin:choice_api",
  ]
  frameworks = [ "UIKit.framework" ]
}

source_set("unit_tests") {
  testonly = true
  sources = [ "search_engine_choice_util_unittest.mm" ]
  deps = [
    ":model",
    "//base",
    "//base/test:test_support",
    "//components/metrics:metrics_pref_names",
    "//components/policy/core/common:test_support",
    "//components/prefs:test_support",
    "//components/search_engines",
    "//components/sync_preferences:test_support",
    "//ios/chrome/browser/policy/model:test_support",
    "//ios/chrome/browser/search_engines/model",
    "//ios/chrome/browser/shared/model/profile/test",
    "//ios/chrome/browser/signin/model",
    "//ios/chrome/browser/ui/search_engine_choice:constants",
    "//ios/chrome/test:test_support",
    "//ios/web/public/test",
    "//testing/gtest",
  ]
}