Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / components / translate / core / browser / BUILD.gn
blob0d6ec0ed0bddb2494bed6433e7aa3c432fc2b225
1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
5 source_set("browser") {
6   sources = [
7     "language_state.cc",
8     "language_state.h",
9     "options_menu_model.cc",
10     "options_menu_model.h",
11     "page_translated_details.h",
12     "translate_accept_languages.cc",
13     "translate_accept_languages.h",
14     "translate_browser_metrics.cc",
15     "translate_browser_metrics.h",
16     "translate_client.h",
17     "translate_download_manager.cc",
18     "translate_download_manager.h",
19     "translate_driver.h",
20     "translate_error_details.h",
21     "translate_event_details.cc",
22     "translate_event_details.h",
23     "translate_infobar_delegate.cc",
24     "translate_infobar_delegate.h",
25     "translate_language_list.cc",
26     "translate_language_list.h",
27     "translate_manager.cc",
28     "translate_manager.h",
29     "translate_prefs.cc",
30     "translate_prefs.h",
31     "translate_script.cc",
32     "translate_script.h",
33     "translate_step.h",
34     "translate_ui_delegate.cc",
35     "translate_ui_delegate.h",
36     "translate_url_fetcher.cc",
37     "translate_url_fetcher.h",
38     "translate_url_util.cc",
39     "translate_url_util.h",
40   ]
42   deps = [
43     "//base",
44     "//components/data_use_measurement/core",
45     "//components/language_usage_metrics",
46     "//components/resources:components_resources",
47     "//components/strings",
48     "//components/translate/core/common",
49     "//net",
50     "//third_party/icu",
51     "//ui/base",
52     "//url",
53   ]
56 source_set("unit_tests") {
57   testonly = true
58   sources = [
59     "language_state_unittest.cc",
60     "translate_browser_metrics_unittest.cc",
61     "translate_language_list_unittest.cc",
62     "translate_prefs_unittest.cc",
63     "translate_script_unittest.cc",
64   ]
65   deps = [
66     ":browser",
67     "//testing/gtest",
68   ]