summaryrefslogtreecommitdiff
path: root/chromium/components/translate/content/browser/BUILD.gn
blob: 1dfbe926fe7bde1f0de5d5cd5bdfa5b4bbadc361 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# Copyright 2014 The Chromium Authors. All rights reserved.
# 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",
    "per_frame_content_translate_driver.cc",
    "per_frame_content_translate_driver.h",
  ]

  public_deps = [
    "//base",
    "//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: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/common",
    "//net",
  ]
}

source_set("unit_tests") {
  testonly = true
  sources = [ "per_frame_content_translate_driver_unittest.cc" ]

  deps = [
    ":browser",
    "//base",
    "//components/services/language_detection/public/mojom",
    "//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",
  ]
}