| OLD | NEW |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 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 source_set("translate") { | 5 source_set("translate") { |
| 6 sources = [ | 6 sources = [ |
| 7 "after_translate_infobar_controller.h", | 7 "after_translate_infobar_controller.h", |
| 8 "after_translate_infobar_controller.mm", | 8 "after_translate_infobar_controller.mm", |
| 9 "before_translate_infobar_controller.h", | 9 "before_translate_infobar_controller.h", |
| 10 "before_translate_infobar_controller.mm", | 10 "before_translate_infobar_controller.mm", |
| 11 "chrome_ios_translate_client.h", | 11 "chrome_ios_translate_client.h", |
| 12 "chrome_ios_translate_client.mm", | 12 "chrome_ios_translate_client.mm", |
| 13 "language_model_factory.cc", |
| 14 "language_model_factory.h", |
| 13 "never_translate_infobar_controller.h", | 15 "never_translate_infobar_controller.h", |
| 14 "never_translate_infobar_controller.mm", | 16 "never_translate_infobar_controller.mm", |
| 15 "translate_accept_languages_factory.cc", | 17 "translate_accept_languages_factory.cc", |
| 16 "translate_accept_languages_factory.h", | 18 "translate_accept_languages_factory.h", |
| 17 "translate_infobar_tags.h", | 19 "translate_infobar_tags.h", |
| 18 "translate_message_infobar_controller.h", | 20 "translate_message_infobar_controller.h", |
| 19 "translate_message_infobar_controller.mm", | 21 "translate_message_infobar_controller.mm", |
| 20 "translate_ranker_factory.cc", | 22 "translate_ranker_factory.cc", |
| 21 "translate_ranker_factory.h", | 23 "translate_ranker_factory.h", |
| 22 "translate_ranker_metrics_provider.cc", | 24 "translate_ranker_metrics_provider.cc", |
| (...skipping 18 matching lines...) Expand all Loading... |
| 41 "//ios/chrome/app/theme", | 43 "//ios/chrome/app/theme", |
| 42 "//ios/chrome/browser", | 44 "//ios/chrome/browser", |
| 43 "//ios/chrome/browser/browser_state", | 45 "//ios/chrome/browser/browser_state", |
| 44 "//ios/chrome/browser/infobars", | 46 "//ios/chrome/browser/infobars", |
| 45 "//ios/chrome/browser/ui/infobars", | 47 "//ios/chrome/browser/ui/infobars", |
| 46 "//ios/web", | 48 "//ios/web", |
| 47 "//ui/base", | 49 "//ui/base", |
| 48 "//ui/gfx", | 50 "//ui/gfx", |
| 49 "//url", | 51 "//url", |
| 50 ] | 52 ] |
| 53 |
| 51 allow_circular_includes_from = [ "//ios/chrome/browser/infobars" ] | 54 allow_circular_includes_from = [ "//ios/chrome/browser/infobars" ] |
| 52 } | 55 } |
| 53 | 56 |
| 54 source_set("unit_tests") { | 57 source_set("unit_tests") { |
| 55 configs += [ "//build/config/compiler:enable_arc" ] | 58 configs += [ "//build/config/compiler:enable_arc" ] |
| 56 testonly = true | 59 testonly = true |
| 57 sources = [ | 60 sources = [ |
| 58 "js_language_detection_manager_unittest.mm", | 61 "js_language_detection_manager_unittest.mm", |
| 62 "language_model_factory_unittest.cc", |
| 59 "translate_service_ios_unittest.cc", | 63 "translate_service_ios_unittest.cc", |
| 60 ] | 64 ] |
| 61 deps = [ | 65 deps = [ |
| 62 ":translate", | 66 ":translate", |
| 63 "//base", | 67 "//base", |
| 64 "//base/test:test_support", | 68 "//base/test:test_support", |
| 65 "//components/translate/ios/browser", | 69 "//components/translate/ios/browser", |
| 66 "//ios/chrome/browser", | 70 "//ios/chrome/browser", |
| 71 "//ios/chrome/browser/browser_state:test_support", |
| 67 "//ios/chrome/browser/web:test_support", | 72 "//ios/chrome/browser/web:test_support", |
| 68 "//ios/chrome/common", | 73 "//ios/chrome/common", |
| 69 "//ios/public/provider/chrome/browser:test_support", | 74 "//ios/public/provider/chrome/browser:test_support", |
| 70 "//ios/web", | 75 "//ios/web", |
| 71 "//ios/web/public/test", | 76 "//ios/web/public/test", |
| 77 "//testing/gmock:gmock", |
| 72 "//testing/gtest", | 78 "//testing/gtest", |
| 73 "//url", | 79 "//url", |
| 74 ] | 80 ] |
| 75 } | 81 } |
| 76 | 82 |
| 77 # Those tests do not use external URLs but fail if the network is unavailable | 83 # Those tests do not use external URLs but fail if the network is unavailable |
| 78 # as they explicitly check whether the network is up or not; it is not possible | 84 # as they explicitly check whether the network is up or not; it is not possible |
| 79 # to safely instantiate a net::NetworkChangeNotifier::DisableForTest to disable | 85 # to safely instantiate a net::NetworkChangeNotifier::DisableForTest to disable |
| 80 # those checks as this in not thread-safe. See http://crbug.com/709131 for more | 86 # those checks as this in not thread-safe. See http://crbug.com/709131 for more |
| 81 # details. | 87 # details. |
| (...skipping 15 matching lines...) Expand all Loading... |
| 97 "//ios/chrome/test/earl_grey:test_support", | 103 "//ios/chrome/test/earl_grey:test_support", |
| 98 "//ios/testing:ios_test_support", | 104 "//ios/testing:ios_test_support", |
| 99 "//ios/third_party/earl_grey", | 105 "//ios/third_party/earl_grey", |
| 100 "//ios/web/public/test", | 106 "//ios/web/public/test", |
| 101 "//ios/web/public/test/http_server", | 107 "//ios/web/public/test/http_server", |
| 102 "//net", | 108 "//net", |
| 103 "//ui/base", | 109 "//ui/base", |
| 104 ] | 110 ] |
| 105 libs = [ "XCTest.framework" ] | 111 libs = [ "XCTest.framework" ] |
| 106 } | 112 } |
| OLD | NEW |