OLD | NEW |
1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import("//ios/web/js_compile.gni") | 5 import("//ios/web/js_compile.gni") |
6 | 6 |
7 source_set("browser") { | 7 source_set("browser") { |
8 sources = [ | 8 sources = [ |
9 "ios_translate_driver.h", | 9 "ios_translate_driver.h", |
10 "ios_translate_driver.mm", | 10 "ios_translate_driver.mm", |
11 "js_language_detection_manager.h", | 11 "js_language_detection_manager.h", |
12 "js_language_detection_manager.mm", | 12 "js_language_detection_manager.mm", |
13 "js_translate_manager.h", | 13 "js_translate_manager.h", |
14 "js_translate_manager.mm", | 14 "js_translate_manager.mm", |
15 "language_detection_controller.h", | 15 "language_detection_controller.h", |
16 "language_detection_controller.mm", | 16 "language_detection_controller.mm", |
17 "translate_controller.h", | 17 "translate_controller.h", |
18 "translate_controller.mm", | 18 "translate_controller.mm", |
19 ] | 19 ] |
20 | 20 |
21 deps = [ | 21 deps = [ |
22 ":injected_js", | 22 ":injected_js", |
23 "//base", | 23 "//base", |
24 "//base:prefs", | 24 "//components/prefs", |
25 "//components/translate/core/browser", | 25 "//components/translate/core/browser", |
26 "//components/translate/core/common", | 26 "//components/translate/core/common", |
27 "//components/translate/core/language_detection", | 27 "//components/translate/core/language_detection", |
28 "//ios/web", | 28 "//ios/web", |
29 "//ui/base", | 29 "//ui/base", |
30 "//url", | 30 "//url", |
31 ] | 31 ] |
32 } | 32 } |
33 | 33 |
34 js_compile_checked("injected_js") { | 34 js_compile_checked("injected_js") { |
35 visibility = [ ":browser" ] | 35 visibility = [ ":browser" ] |
36 sources = [ | 36 sources = [ |
37 "resources/language_detection.js", | 37 "resources/language_detection.js", |
38 "resources/translate_ios.js", | 38 "resources/translate_ios.js", |
39 ] | 39 ] |
40 } | 40 } |
41 | 41 |
42 source_set("unit_tests") { | 42 source_set("unit_tests") { |
43 testonly = true | 43 testonly = true |
44 sources = [ | 44 sources = [ |
45 "js_translate_manager_unittest.mm", | 45 "js_translate_manager_unittest.mm", |
46 "language_detection_controller_unittest.mm", | 46 "language_detection_controller_unittest.mm", |
47 "translate_controller_unittest.mm", | 47 "translate_controller_unittest.mm", |
48 ] | 48 ] |
49 | 49 |
50 deps = [ | 50 deps = [ |
51 ":browser", | 51 ":browser", |
52 "//base", | 52 "//base", |
53 "//base:prefs_test_support", | 53 "//components/prefs:test_support", |
54 "//components/resources", | 54 "//components/resources", |
55 "//components/translate/core/common", | 55 "//components/translate/core/common", |
56 "//ios/web:test_support", | 56 "//ios/web:test_support", |
57 "//testing/gtest", | 57 "//testing/gtest", |
58 "//third_party/ocmock", | 58 "//third_party/ocmock", |
59 "//ui/base", | 59 "//ui/base", |
60 "//url", | 60 "//url", |
61 ] | 61 ] |
62 } | 62 } |
OLD | NEW |