# 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.
static_library("browser") {
sources = [
"accept_languages_service.cc",
"accept_languages_service.h",
"language_model.cc",
"language_model.h",
"language_model_manager.cc",
"language_model_manager.h",
"language_prefs.cc",
"language_prefs.h",
"language_usage_metrics.cc",
"language_usage_metrics.h",
"locale_util.cc",
"locale_util.h",
"pref_names.h",
"ulp_metrics_logger.cc",
"ulp_metrics_logger.h",
"url_language_histogram.cc",
"url_language_histogram.h",
]
deps = [
"//base",
"//base:i18n",
"//build:chromeos_buildflags",
"//components/keyed_service/core",
"//components/language/core/common",
"//components/pref_registry",
"//components/prefs",
"//components/strings",
"//ui/base",
]
}
source_set("unit_tests") {
testonly = true
sources = [
"accept_languages_service_unittest.cc",
"language_model_manager_unittest.cc",
"language_prefs_unittest.cc",
"language_usage_metrics_unittest.cc",
"ulp_metrics_logger_unittest.cc",
"url_language_histogram_unittest.cc",
]
deps = [
":browser",
":test_support",
"//base",
"//build:chromeos_buildflags",
"//components/language/core/language_model",
"//components/pref_registry:pref_registry",
"//components/prefs",
"//components/prefs:test_support",
"//components/sync_preferences:test_support",
"//components/translate/core/browser",
"//net:test_support",
"//testing/gmock",
"//testing/gtest",
]
}
source_set("test_support") {
testonly = true
sources = [
"language_prefs_test_util.cc",
"language_prefs_test_util.h",
]
deps = [
":browser",
"//base",
"//build:chromeos_buildflags",
"//components/prefs",
"//testing/gmock",
"//testing/gtest",
]
}