OLD | NEW |
(Empty) | |
| 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 |
| 3 # found in the LICENSE file. |
| 4 |
| 5 import("//ios/web/js_compile.gni") |
| 6 |
| 7 source_set("browser") { |
| 8 sources = [ |
| 9 "ios_translate_driver.h", |
| 10 "ios_translate_driver.mm", |
| 11 "js_language_detection_manager.h", |
| 12 "js_language_detection_manager.mm", |
| 13 "js_translate_manager.h", |
| 14 "js_translate_manager.mm", |
| 15 "language_detection_controller.h", |
| 16 "language_detection_controller.mm", |
| 17 "translate_controller.h", |
| 18 "translate_controller.mm", |
| 19 ] |
| 20 |
| 21 deps = [ |
| 22 "//base", |
| 23 "//components/translate/core/browser", |
| 24 "//components/translate/core/common", |
| 25 "//components/translate/core/language_detection", |
| 26 "//ios/web", |
| 27 "//url", |
| 28 ":injected_js", |
| 29 ] |
| 30 } |
| 31 |
| 32 js_compile_checked("injected_js") { |
| 33 visibility = [ ":browser" ] |
| 34 sources = [ |
| 35 "resources/language_detection.js", |
| 36 "resources/translate_ios.js", |
| 37 ] |
| 38 } |
| 39 |
| 40 source_set("unit_tests") { |
| 41 testonly = true |
| 42 sources = [ |
| 43 "js_translate_manager_unittest.mm", |
| 44 "language_detection_controller_unittest.mm", |
| 45 "translate_controller_unittest.mm", |
| 46 ] |
| 47 |
| 48 deps = [ |
| 49 "//base", |
| 50 "//components/resources", |
| 51 "//components/translate/core/common", |
| 52 "//ios/web:test_support", |
| 53 "//testing/gtest", |
| 54 "//third_party/ocmock", |
| 55 "//ui/base", |
| 56 "//url", |
| 57 ":browser", |
| 58 ] |
| 59 } |
OLD | NEW |