| 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 testonly = true | 58 testonly = true |
| 56 sources = [ | 59 sources = [ |
| 57 "js_language_detection_manager_unittest.mm", | 60 "js_language_detection_manager_unittest.mm", |
| 61 "language_model_factory_unittest.cc", |
| 58 "translate_service_ios_unittest.cc", | 62 "translate_service_ios_unittest.cc", |
| 59 ] | 63 ] |
| 60 deps = [ | 64 deps = [ |
| 61 ":translate", | 65 ":translate", |
| 62 "//base", | 66 "//base", |
| 63 "//base/test:test_support", | 67 "//base/test:test_support", |
| 64 "//components/translate/ios/browser", | 68 "//components/translate/ios/browser", |
| 65 "//ios/chrome/browser", | 69 "//ios/chrome/browser", |
| 66 "//ios/chrome/browser/web:test_support", | 70 "//ios/chrome/browser/web:test_support", |
| 67 "//ios/chrome/common", | 71 "//ios/chrome/common", |
| 68 "//ios/public/provider/chrome/browser:test_support", | 72 "//ios/public/provider/chrome/browser:test_support", |
| 69 "//ios/web", | 73 "//ios/web", |
| 70 "//ios/web:test_support", | 74 "//ios/web:test_support", |
| 75 "//testing/gmock:gmock", |
| 71 "//testing/gtest", | 76 "//testing/gtest", |
| 72 "//url", | 77 "//url", |
| 73 ] | 78 ] |
| 74 } | 79 } |
| 75 | 80 |
| 76 # Those tests do not use external URLs but fail if the network is unavailable | 81 # Those tests do not use external URLs but fail if the network is unavailable |
| 77 # as they explicitly check whether the network is up or not; it is not possible | 82 # as they explicitly check whether the network is up or not; it is not possible |
| 78 # to safely instantiate a net::NetworkChangeNotifier::DisableForTest to disable | 83 # to safely instantiate a net::NetworkChangeNotifier::DisableForTest to disable |
| 79 # those checks as this in not thread-safe. See http://crbug.com/709131 for more | 84 # those checks as this in not thread-safe. See http://crbug.com/709131 for more |
| 80 # details. | 85 # details. |
| (...skipping 14 matching lines...) Expand all Loading... |
| 95 "//ios/chrome/test/app:test_support", | 100 "//ios/chrome/test/app:test_support", |
| 96 "//ios/chrome/test/earl_grey:test_support", | 101 "//ios/chrome/test/earl_grey:test_support", |
| 97 "//ios/testing:ios_test_support", | 102 "//ios/testing:ios_test_support", |
| 98 "//ios/third_party/earl_grey", | 103 "//ios/third_party/earl_grey", |
| 99 "//ios/web:test_support", | 104 "//ios/web:test_support", |
| 100 "//net", | 105 "//net", |
| 101 "//ui/base", | 106 "//ui/base", |
| 102 ] | 107 ] |
| 103 libs = [ "XCTest.framework" ] | 108 libs = [ "XCTest.framework" ] |
| 104 } | 109 } |
| OLD | NEW |