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/build/config.gni") | 5 import("//ios/build/config.gni") |
6 import("//ios/public/provider/chrome/browser/build_config.gni") | 6 import("//ios/public/provider/chrome/browser/build_config.gni") |
7 import("//testing/test.gni") | 7 import("//testing/test.gni") |
8 | 8 |
9 # All tests needs to be listed in that target to be built as part of | 9 # All tests needs to be listed in that target to be built as part of |
10 # "gn_all" target (i.e. by the bots). | 10 # "gn_all" target (i.e. by the bots). |
11 group("all_tests") { | 11 group("all_tests") { |
12 testonly = true | 12 testonly = true |
13 deps = [ | 13 deps = [ |
14 ":ios_chrome_perftests", | 14 ":ios_chrome_perftests", |
15 ":ios_chrome_unittests", | 15 ":ios_chrome_unittests", |
16 ] | 16 ] |
17 } | 17 } |
18 | 18 |
19 source_set("test_support") { | 19 source_set("test_support") { |
| 20 configs += [ "//build/config/compiler:enable_arc" ] |
20 testonly = true | 21 testonly = true |
21 sources = [ | 22 sources = [ |
22 "block_cleanup_test.h", | |
23 "block_cleanup_test.mm", | |
24 "ios_chrome_scoped_testing_chrome_browser_provider.h", | 23 "ios_chrome_scoped_testing_chrome_browser_provider.h", |
25 "ios_chrome_scoped_testing_chrome_browser_provider.mm", | 24 "ios_chrome_scoped_testing_chrome_browser_provider.mm", |
26 "ios_chrome_scoped_testing_chrome_browser_state_manager.cc", | 25 "ios_chrome_scoped_testing_chrome_browser_state_manager.cc", |
27 "ios_chrome_scoped_testing_chrome_browser_state_manager.h", | 26 "ios_chrome_scoped_testing_chrome_browser_state_manager.h", |
28 "ios_chrome_scoped_testing_local_state.cc", | 27 "ios_chrome_scoped_testing_local_state.cc", |
29 "ios_chrome_scoped_testing_local_state.h", | 28 "ios_chrome_scoped_testing_local_state.h", |
30 "ios_chrome_unit_test_suite.h", | 29 "ios_chrome_unit_test_suite.h", |
31 "ios_chrome_unit_test_suite.mm", | 30 "ios_chrome_unit_test_suite.mm", |
32 "scoped_key_window.h", | 31 "scoped_key_window.h", |
33 "testing_application_context.h", | 32 "testing_application_context.h", |
34 "testing_application_context.mm", | 33 "testing_application_context.mm", |
35 ] | 34 ] |
36 | 35 |
| 36 public_deps = [ |
| 37 ":block_cleanup_test", |
| 38 ] |
| 39 |
37 deps = [ | 40 deps = [ |
38 "//base", | 41 "//base", |
39 "//base/test:test_support", | 42 "//base/test:test_support", |
40 "//components/content_settings/core/common", | 43 "//components/content_settings/core/common", |
41 "//components/network_time", | 44 "//components/network_time", |
42 "//components/prefs", | 45 "//components/prefs", |
43 "//components/prefs:test_support", | 46 "//components/prefs:test_support", |
44 "//ios/chrome/browser", | 47 "//ios/chrome/browser", |
45 "//ios/chrome/browser/browser_state", | 48 "//ios/chrome/browser/browser_state", |
46 "//ios/chrome/browser/browser_state:browser_state_impl", | 49 "//ios/chrome/browser/browser_state:browser_state_impl", |
47 "//ios/chrome/browser/prefs:browser_prefs", | 50 "//ios/chrome/browser/prefs:browser_prefs", |
48 "//ios/public/provider/chrome/browser", | 51 "//ios/public/provider/chrome/browser", |
49 "//ios/public/provider/chrome/browser:test_support", | 52 "//ios/public/provider/chrome/browser:test_support", |
50 "//ios/web", | 53 "//ios/web", |
51 "//ios/web/public/test", | 54 "//ios/web/public/test", |
52 "//net", | 55 "//net", |
53 "//testing/gmock", | 56 "//testing/gmock", |
54 "//testing/gtest", | 57 "//testing/gtest", |
55 "//ui/base", | 58 "//ui/base", |
56 "//url", | 59 "//url", |
57 ] | 60 ] |
58 } | 61 } |
59 | 62 |
| 63 source_set("block_cleanup_test") { |
| 64 # TODO(crbug.com/733237): Replace this comment with an explicit disable_arc co
nfig. |
| 65 # The files in this target depend on non-ARC memeory management. |
| 66 testonly = true |
| 67 sources = [ |
| 68 "block_cleanup_test.h", |
| 69 "block_cleanup_test.mm", |
| 70 ] |
| 71 |
| 72 deps = [ |
| 73 "//base", |
| 74 "//testing/gtest", |
| 75 ] |
| 76 } |
| 77 |
60 source_set("run_all_unittests") { | 78 source_set("run_all_unittests") { |
61 testonly = true | 79 testonly = true |
62 sources = [ | 80 sources = [ |
63 "run_all_unittests.cc", | 81 "run_all_unittests.cc", |
64 ] | 82 ] |
65 deps = [ | 83 deps = [ |
66 ":test_support", | 84 ":test_support", |
67 "//base", | 85 "//base", |
68 "//base/test:test_support", | 86 "//base/test:test_support", |
69 ] | 87 ] |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 "//ios/chrome/test/base:unit_tests", | 213 "//ios/chrome/test/base:unit_tests", |
196 "//ios/shared/chrome/browser/ui/broadcaster:unit_tests", | 214 "//ios/shared/chrome/browser/ui/broadcaster:unit_tests", |
197 "//ios/shared/chrome/browser/ui/browser_list:unit_tests", | 215 "//ios/shared/chrome/browser/ui/browser_list:unit_tests", |
198 "//ios/shared/chrome/browser/ui/commands:unit_tests", | 216 "//ios/shared/chrome/browser/ui/commands:unit_tests", |
199 "//ios/shared/chrome/browser/ui/coordinators:unit_tests", | 217 "//ios/shared/chrome/browser/ui/coordinators:unit_tests", |
200 "//ios/testing:http_server_bundle_data", | 218 "//ios/testing:http_server_bundle_data", |
201 ] | 219 ] |
202 | 220 |
203 assert_no_deps = ios_assert_no_deps | 221 assert_no_deps = ios_assert_no_deps |
204 } | 222 } |
OLD | NEW |