summaryrefslogtreecommitdiffstats
path: root/components/translate/core/browser/BUILD.gn
blob: 862d2d0a52fef7bd5d9fba4062a690c957fa9af1 (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.

source_set("browser") {
  sources = [
    "language_state.cc",
    "language_state.h",
    "options_menu_model.cc",
    "options_menu_model.h",
    "page_translated_details.h",
    "translate_accept_languages.cc",
    "translate_accept_languages.h",
    "translate_browser_metrics.cc",
    "translate_browser_metrics.h",
    "translate_client.h",
    "translate_download_manager.cc",
    "translate_download_manager.h",
    "translate_driver.h",
    "translate_error_details.h",
    "translate_event_details.cc",
    "translate_event_details.h",
    "translate_infobar_delegate.cc",
    "translate_infobar_delegate.h",
    "translate_language_list.cc",
    "translate_language_list.h",
    "translate_manager.cc",
    "translate_manager.h",
    "translate_prefs.cc",
    "translate_prefs.h",
    "translate_script.cc",
    "translate_script.h",
    "translate_step.h",
    "translate_ui_delegate.cc",
    "translate_ui_delegate.h",
    "translate_url_fetcher.cc",
    "translate_url_fetcher.h",
    "translate_url_util.cc",
    "translate_url_util.h",
  ]

  deps = [
    "//base",
    "//components/language_usage_metrics",
    "//components/resources:components_resources",
    "//components/strings",
    "//components/translate/core/common",
    "//net",
    "//third_party/icu",
    "//ui/base",
    "//url",
  ]
}

source_set("unit_tests") {
  testonly = true
  sources = [
    "language_state_unittest.cc",
    "translate_browser_metrics_unittest.cc",
    "translate_language_list_unittest.cc",
    "translate_prefs_unittest.cc",
    "translate_script_unittest.cc",
  ]
  deps = [
    ":browser",
    "//testing/gtest",
  ]
}