# Copyright 2014 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/features.gni")
static_library("browser") {
sources = [
"content_record_page_language.cc",
"content_record_page_language.h",
"content_translate_driver.cc",
"content_translate_driver.h",
"content_translate_util.cc",
"content_translate_util.h",
"partial_translate_manager.cc",
"partial_translate_manager.h",
]
public_deps = [
"//base",
"//components/contextual_search/core/browser",
"//components/translate/content/common",
"//components/translate/core/browser",
"//components/translate/core/common",
"//content/public/browser",
]
deps = [
"//components/keyed_service/core",
"//components/language/core/browser",
"//components/optimization_guide/content/browser",
"//components/optimization_guide/core",
"//components/optimization_guide/proto:optimization_guide_proto",
"//components/search_engines",
"//components/services/language_detection/public/cpp",
"//components/services/language_detection/public/mojom",
"//components/translate/core/browser:translate_model_service",
"//components/translate/core/language_detection:language_detection",
"//components/ukm/content",
"//content/public/browser",
"//content/public/common",
"//net",
]
}
source_set("unit_tests") {
testonly = true
sources = [ "partial_translate_manager_unittest.cc" ]
deps = [
":browser",
"//base",
"//content/test:test_support",
"//testing/gtest",
]
}
static_library("test_support") {
testonly = true
sources = [
"translate_waiter.cc",
"translate_waiter.h",
]
public_deps = [
":browser",
"//base",
"//components/translate/core/common",
]
}