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 # This empty target is there to help with upstreaming by removing a manual | 5 import("//ios/chrome/test/earl_grey/chrome_ios_eg_test.gni") |
6 # step from the process (updating the //ios:all target). It will be changed | 6 |
7 # to a real target as part of upstreaming. | |
8 group("all_tests") { | 7 group("all_tests") { |
9 testonly = true | 8 testonly = true |
10 } | 9 deps = [ |
| 10 ":ios_chrome_device_check_egtests", |
| 11 ":ios_chrome_flaky_egtests", |
| 12 ":ios_chrome_integration_egtests", |
| 13 ":ios_chrome_multitasking_egtests", |
| 14 ":ios_chrome_reading_list_egtests", |
| 15 ":ios_chrome_settings_egtests", |
| 16 ":ios_chrome_smoke_egtests", |
| 17 ":ios_chrome_ui_egtests", |
| 18 ":ios_chrome_web_egtests", |
| 19 ] |
| 20 } |
| 21 |
| 22 chrome_ios_eg_test("ios_chrome_integration_egtests") { |
| 23 deps = [ |
| 24 "//ios/chrome/browser/autofill:eg_tests", |
| 25 "//ios/chrome/browser/context_menu:eg_tests", |
| 26 "//ios/chrome/browser/device_sharing:eg_tests", |
| 27 "//ios/chrome/browser/metrics:eg_tests", |
| 28 "//ios/chrome/browser/net:eg_tests", |
| 29 "//ios/chrome/browser/translate:eg_tests", |
| 30 ] |
| 31 } |
| 32 |
| 33 chrome_ios_eg_test("ios_chrome_reading_list_egtests") { |
| 34 deps = [ |
| 35 ":test_support", |
| 36 "//ios/chrome/browser/ui/reading_list:eg_tests", |
| 37 ] |
| 38 } |
| 39 |
| 40 chrome_ios_eg_test("ios_chrome_settings_egtests") { |
| 41 deps = [ |
| 42 "//ios/chrome/browser/ui/settings:eg_tests", |
| 43 ] |
| 44 } |
| 45 |
| 46 chrome_ios_eg_test("ios_chrome_ui_egtests") { |
| 47 deps = [ |
| 48 "//ios/chrome/app/safe_mode:eg_tests", |
| 49 "//ios/chrome/browser/ui:eg_tests", |
| 50 "//ios/chrome/browser/ui/activity_services:eg_tests", |
| 51 "//ios/chrome/browser/ui/alert_coordinator:eg_tests", |
| 52 "//ios/chrome/browser/ui/authentication:eg_tests", |
| 53 "//ios/chrome/browser/ui/bookmarks:eg_tests", |
| 54 "//ios/chrome/browser/ui/dialogs:eg_tests", |
| 55 "//ios/chrome/browser/ui/find_bar:eg_tests", |
| 56 "//ios/chrome/browser/ui/first_run:eg_tests", |
| 57 "//ios/chrome/browser/ui/history:eg_tests", |
| 58 "//ios/chrome/browser/ui/infobars:eg_tests", |
| 59 "//ios/chrome/browser/ui/ntp:eg_tests", |
| 60 "//ios/chrome/browser/ui/ntp/recent_tabs:eg_tests", |
| 61 "//ios/chrome/browser/ui/print:eg_tests", |
| 62 "//ios/chrome/browser/ui/qr_scanner:eg_tests", |
| 63 "//ios/chrome/browser/ui/stack_view:eg_tests", |
| 64 "//ios/chrome/browser/ui/sync:eg_tests", |
| 65 "//ios/chrome/browser/ui/tab_switcher:eg_tests", |
| 66 "//ios/chrome/browser/ui/tabs:eg_tests", |
| 67 "//ios/chrome/browser/ui/toolbar:eg_tests", |
| 68 "//ios/chrome/browser/ui/tools_menu:eg_tests", |
| 69 "//ios/chrome/browser/ui/webui:eg_tests", |
| 70 ] |
| 71 } |
| 72 |
| 73 chrome_ios_eg_test("ios_chrome_web_egtests") { |
| 74 deps = [ |
| 75 "//ios/chrome/browser/web:eg_tests", |
| 76 ] |
| 77 } |
| 78 |
| 79 chrome_ios_eg_test("ios_chrome_multitasking_egtests") { |
| 80 sources = [ |
| 81 "//ios/chrome/app/multitasking_test_application_delegate.h", |
| 82 "//ios/chrome/app/multitasking_test_application_delegate.mm", |
| 83 ] |
| 84 |
| 85 deps = [ |
| 86 ":test_support", |
| 87 "//base", |
| 88 "//ios/chrome/app:app_internal", |
| 89 "//ios/chrome/app/application_delegate:application_delegate_internal", |
| 90 |
| 91 # Depends on all EarlGrey test suites to create multitasking tests suite. |
| 92 ":ios_chrome_integration_egtests_deps_group", |
| 93 ":ios_chrome_settings_egtests_deps_group", |
| 94 ":ios_chrome_ui_egtests_deps_group", |
| 95 ":ios_chrome_web_egtests_deps_group", |
| 96 ] |
| 97 |
| 98 eg_main_application_delegate = "MultitaskingTestApplicationDelegate" |
| 99 } |
| 100 |
| 101 chrome_ios_eg_test("ios_chrome_device_check_egtests") { |
| 102 sources = [ |
| 103 "device_check_egtest.mm", |
| 104 ] |
| 105 deps = [ |
| 106 ":test_support", |
| 107 "//ios/third_party/earl_grey", |
| 108 "//url", |
| 109 ] |
| 110 } |
| 111 |
| 112 chrome_ios_eg_test("ios_chrome_flaky_egtests") { |
| 113 deps = [ |
| 114 ":test_support", |
| 115 "//base", |
| 116 |
| 117 # Depends on all EarlGrey test suites to run all the FLAKY_ tests found. |
| 118 # When adding a new test application, please follow the same pattern. |
| 119 ":ios_chrome_integration_egtests_deps_group", |
| 120 ":ios_chrome_settings_egtests_deps_group", |
| 121 ":ios_chrome_ui_egtests_deps_group", |
| 122 ":ios_chrome_web_egtests_deps_group", |
| 123 ] |
| 124 } |
| 125 |
| 126 chrome_ios_eg_test("ios_chrome_smoke_egtests") { |
| 127 sources = [ |
| 128 "smoke_egtest.mm", |
| 129 ] |
| 130 deps = [ |
| 131 ":test_support", |
| 132 "//ios/chrome/app:app_internal", |
| 133 "//ios/chrome/app/strings", |
| 134 "//ios/chrome/browser/ui:ui_internal", |
| 135 "//ios/third_party/earl_grey", |
| 136 "//ui/base", |
| 137 ] |
| 138 libs = [ "XCTest.framework" ] |
| 139 } |
| 140 |
| 141 source_set("test_support") { |
| 142 testonly = true |
| 143 sources = [ |
| 144 "accessibility_util.h", |
| 145 "accessibility_util.mm", |
| 146 "chrome_actions.h", |
| 147 "chrome_actions.mm", |
| 148 "chrome_assertions.h", |
| 149 "chrome_assertions.mm", |
| 150 "chrome_earl_grey.h", |
| 151 "chrome_earl_grey.mm", |
| 152 "chrome_earl_grey_ui.h", |
| 153 "chrome_earl_grey_ui.mm", |
| 154 "chrome_matchers.h", |
| 155 "chrome_matchers.mm", |
| 156 "chrome_test_case.h", |
| 157 "chrome_test_case.mm", |
| 158 "chrome_util.h", |
| 159 "chrome_util.mm", |
| 160 ] |
| 161 |
| 162 deps = [ |
| 163 "//base", |
| 164 "//base/test:test_support", |
| 165 "//components/strings", |
| 166 "//ios/chrome/app/strings", |
| 167 "//ios/chrome/browser/ui:ui", |
| 168 "//ios/chrome/browser/ui/collection_view/cells", |
| 169 "//ios/chrome/browser/ui/omnibox:omnibox_internal", |
| 170 "//ios/chrome/browser/ui/static_content", |
| 171 "//ios/chrome/browser/ui/toolbar", |
| 172 "//ios/chrome/browser/ui/tools_menu", |
| 173 "//ios/chrome/test/app:test_support", |
| 174 "//ios/testing:ios_test_support", |
| 175 "//ios/third_party/material_components_ios", |
| 176 "//ios/web", |
| 177 "//ios/web:earl_grey_test_support", |
| 178 "//ios/web:test_support", |
| 179 "//ui/base", |
| 180 "//url", |
| 181 ] |
| 182 |
| 183 public_deps = [ |
| 184 "//build/config/ios:xctest", |
| 185 "//ios/third_party/earl_grey", |
| 186 ] |
| 187 |
| 188 libs = [ |
| 189 "OCHamcrest.framework", |
| 190 "WebKit.framework", |
| 191 "XCTest.framework", |
| 192 ] |
| 193 } |
| 194 |
| 195 source_set("hooks") { |
| 196 testonly = true |
| 197 sources = [ |
| 198 "eg_tests_hook.mm", |
| 199 ] |
| 200 deps = [ |
| 201 "//ios/chrome/app:tests_hook", |
| 202 ] |
| 203 } |
OLD | NEW |