Chromium Code Reviews| 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", |
|
stkhapugin
2017/06/13 12:22:54
Please mark ivars as explicit __strong. Memory man
marq (ping after 24h)
2017/06/14 13:31:23
Done.
| |
| 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 # The files in this target depend on non-ARC memeory management. | |
|
rohitrao (ping after 24h)
2017/06/14 12:30:05
I wonder if we should add a disable_arc target, so
rohitrao (ping after 24h)
2017/06/14 12:30:05
Typo: memory.
marq (ping after 24h)
2017/06/14 13:31:23
Good idea, created a bug for that.
marq (ping after 24h)
2017/06/14 13:31:23
Done.
| |
| 65 testonly = true | |
| 66 sources = [ | |
| 67 "block_cleanup_test.h", | |
| 68 "block_cleanup_test.mm", | |
| 69 ] | |
| 70 | |
| 71 deps = [ | |
| 72 "//base", | |
| 73 "//testing/gtest", | |
| 74 ] | |
| 75 } | |
| 76 | |
| 60 source_set("run_all_unittests") { | 77 source_set("run_all_unittests") { |
| 61 testonly = true | 78 testonly = true |
| 62 sources = [ | 79 sources = [ |
| 63 "run_all_unittests.cc", | 80 "run_all_unittests.cc", |
| 64 ] | 81 ] |
| 65 deps = [ | 82 deps = [ |
| 66 ":test_support", | 83 ":test_support", |
| 67 "//base", | 84 "//base", |
| 68 "//base/test:test_support", | 85 "//base/test:test_support", |
| 69 ] | 86 ] |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 195 "//ios/chrome/test/base:unit_tests", | 212 "//ios/chrome/test/base:unit_tests", |
| 196 "//ios/shared/chrome/browser/ui/broadcaster:unit_tests", | 213 "//ios/shared/chrome/browser/ui/broadcaster:unit_tests", |
| 197 "//ios/shared/chrome/browser/ui/browser_list:unit_tests", | 214 "//ios/shared/chrome/browser/ui/browser_list:unit_tests", |
| 198 "//ios/shared/chrome/browser/ui/commands:unit_tests", | 215 "//ios/shared/chrome/browser/ui/commands:unit_tests", |
| 199 "//ios/shared/chrome/browser/ui/coordinators:unit_tests", | 216 "//ios/shared/chrome/browser/ui/coordinators:unit_tests", |
| 200 "//ios/testing:http_server_bundle_data", | 217 "//ios/testing:http_server_bundle_data", |
| 201 ] | 218 ] |
| 202 | 219 |
| 203 assert_no_deps = ios_assert_no_deps | 220 assert_no_deps = ios_assert_no_deps |
| 204 } | 221 } |
| OLD | NEW |