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

# Copyright 2017 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 = [
    "accept_languages_service_factory.cc",
    "accept_languages_service_factory.h",
    "language_model_manager_factory.h",
    "language_model_manager_factory.mm",
    "url_language_histogram_factory.cc",
    "url_language_histogram_factory.h",
  ]
  deps = [
    "//base",
    "//components/keyed_service/core",
    "//components/keyed_service/ios",
    "//components/language/core/browser",
    "//components/language/core/common",
    "//components/language/core/language_model",
    "//components/pref_registry",
    "//components/prefs",
    "//ios/chrome/browser/shared/model/application_context",
    "//ios/chrome/browser/shared/model/browser_state",
    "//ios/chrome/browser/shared/model/profile",
  ]
}

source_set("unit_tests") {
  testonly = true
  sources = [
    "language_model_manager_factory_unittest.cc",
    "url_language_histogram_factory_unittest.cc",
  ]
  deps = [
    ":model",
    "//base",
    "//base/test:test_support",
    "//components/language/core/browser",
    "//components/language/core/language_model",
    "//ios/chrome/browser/shared/model/profile/test",
    "//ios/web",
    "//ios/web/public/test",
    "//testing/gmock:gmock",
    "//testing/gtest",
  ]
}