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 configs += [ "//build/config/compiler:enable_arc" ] | 8 configs += [ "//build/config/compiler:enable_arc" ] |
9 sources = [ | 9 sources = [ |
10 "ios_translate_driver.h", | 10 "ios_translate_driver.h", |
(...skipping 25 matching lines...) Expand all Loading... |
36 | 36 |
37 js_compile_checked("injected_js") { | 37 js_compile_checked("injected_js") { |
38 visibility = [ ":browser" ] | 38 visibility = [ ":browser" ] |
39 sources = [ | 39 sources = [ |
40 "resources/language_detection.js", | 40 "resources/language_detection.js", |
41 "resources/translate_ios.js", | 41 "resources/translate_ios.js", |
42 ] | 42 ] |
43 } | 43 } |
44 | 44 |
45 source_set("unit_tests") { | 45 source_set("unit_tests") { |
| 46 configs += [ "//build/config/compiler:enable_arc" ] |
46 testonly = true | 47 testonly = true |
47 sources = [ | 48 sources = [ |
48 "js_translate_manager_unittest.mm", | 49 "js_translate_manager_unittest.mm", |
49 "language_detection_controller_unittest.mm", | 50 "language_detection_controller_unittest.mm", |
50 "string_clipping_util_unittest.cc", | 51 "string_clipping_util_unittest.cc", |
51 "translate_controller_unittest.mm", | 52 "translate_controller_unittest.mm", |
52 ] | 53 ] |
53 | 54 |
54 deps = [ | 55 deps = [ |
55 ":browser", | 56 ":browser", |
56 "//base", | 57 "//base", |
57 "//components/prefs:test_support", | 58 "//components/prefs:test_support", |
58 "//components/resources", | 59 "//components/resources", |
59 "//components/translate/core/common", | 60 "//components/translate/core/common", |
60 "//ios/web:test_support", | 61 "//ios/web:test_support", |
61 "//testing/gtest", | 62 "//testing/gtest", |
62 "//third_party/ocmock", | 63 "//third_party/ocmock", |
63 "//ui/base", | 64 "//ui/base", |
64 "//url", | 65 "//url", |
65 ] | 66 ] |
66 } | 67 } |
OLD | NEW |