| 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("//build/config/ios/rules.gni") |
| 5 import("//testing/test.gni") | 6 import("//testing/test.gni") |
| 6 | 7 |
| 8 bundle_data("ios_chrome_unittests_bundle_data") { |
| 9 testonly = true |
| 10 sources = [ |
| 11 "test/data/webdata/bookmarkimages/image.jpg", |
| 12 "test/data/webdata/bookmarkimages/index.html", |
| 13 ] |
| 14 outputs = [ |
| 15 "{{bundle_resources_dir}}/{{source_root_relative_dir}}/" + |
| 16 "{{source_file_part}}", |
| 17 ] |
| 18 } |
| 19 |
| 20 bundle_data_xib("native_content_controller_test_xib") { |
| 21 testonly = true |
| 22 source = "browser/ui/native_content_controller_test.xib" |
| 23 } |
| 24 |
| 7 test("ios_chrome_unittests") { | 25 test("ios_chrome_unittests") { |
| 8 sources = [ | 26 sources = [ |
| 9 "app/safe_mode_util_unittest.cc", | 27 "app/safe_mode_util_unittest.cc", |
| 10 "browser/chrome_url_util_unittest.mm", | 28 "browser/chrome_url_util_unittest.mm", |
| 11 "browser/crash_loop_detection_util_unittest.mm", | 29 "browser/crash_loop_detection_util_unittest.mm", |
| 12 "browser/favicon/large_icon_cache_unittest.cc", | 30 "browser/favicon/large_icon_cache_unittest.cc", |
| 13 "browser/geolocation/CLLocation+XGeoHeaderTest.mm", | 31 "browser/geolocation/CLLocation+XGeoHeaderTest.mm", |
| 14 "browser/geolocation/location_manager_unittest.mm", | 32 "browser/geolocation/location_manager_unittest.mm", |
| 15 "browser/geolocation/omnibox_geolocation_local_state_unittest.mm", | 33 "browser/geolocation/omnibox_geolocation_local_state_unittest.mm", |
| 16 "browser/install_time_util_unittest.mm", | 34 "browser/install_time_util_unittest.mm", |
| (...skipping 20 matching lines...) Expand all Loading... |
| 37 "browser/ui/keyboard/hardware_keyboard_watcher_unittest.mm", | 55 "browser/ui/keyboard/hardware_keyboard_watcher_unittest.mm", |
| 38 "browser/ui/native_content_controller_unittest.mm", | 56 "browser/ui/native_content_controller_unittest.mm", |
| 39 "browser/ui/ui_util_unittest.mm", | 57 "browser/ui/ui_util_unittest.mm", |
| 40 "browser/ui/uikit_ui_util_unittest.mm", | 58 "browser/ui/uikit_ui_util_unittest.mm", |
| 41 "browser/update_client/ios_chrome_update_query_params_delegate_unittest.cc", | 59 "browser/update_client/ios_chrome_update_query_params_delegate_unittest.cc", |
| 42 "browser/web_resource/web_resource_util_unittest.cc", | 60 "browser/web_resource/web_resource_util_unittest.cc", |
| 43 "common/string_util_unittest.mm", | 61 "common/string_util_unittest.mm", |
| 44 ] | 62 ] |
| 45 | 63 |
| 46 deps = [ | 64 deps = [ |
| 65 ":ios_chrome_unittests_bundle_data", |
| 66 ":native_content_controller_test_xib", |
| 47 "//base", | 67 "//base", |
| 48 "//base/test:test_support", | 68 "//base/test:test_support", |
| 49 "//components/bookmarks/test", | 69 "//components/bookmarks/test", |
| 50 "//components/favicon_base", | 70 "//components/favicon_base", |
| 51 "//components/metrics", | 71 "//components/metrics", |
| 52 "//components/metrics:test_support", | 72 "//components/metrics:test_support", |
| 53 "//components/password_manager/core/browser", | 73 "//components/password_manager/core/browser", |
| 54 "//components/password_manager/core/browser:test_support", | 74 "//components/password_manager/core/browser:test_support", |
| 55 "//components/password_manager/core/common", | 75 "//components/password_manager/core/common", |
| 56 "//components/prefs:test_support", | 76 "//components/prefs:test_support", |
| 57 "//components/signin/core/browser:test_support", | 77 "//components/signin/core/browser:test_support", |
| 58 "//components/signin/ios/browser:test_support", | 78 "//components/signin/ios/browser:test_support", |
| 59 "//components/sync_driver:test_support", | 79 "//components/sync_driver:test_support", |
| 60 "//components/syncable_prefs:test_support", | 80 "//components/syncable_prefs:test_support", |
| 61 "//components/update_client", | 81 "//components/update_client", |
| 62 "//components/version_info", | 82 "//components/version_info", |
| 63 "//ios/chrome/app", | 83 "//ios/chrome/app", |
| 64 "//ios/chrome/browser", | 84 "//ios/chrome/browser", |
| 65 "//ios/chrome/browser:test_support", | 85 "//ios/chrome/browser:test_support", |
| 66 "//ios/chrome/common", | 86 "//ios/chrome/common", |
| 67 "//ios/web", | 87 "//ios/web", |
| 68 "//ios/web:test_support", | 88 "//ios/web:test_support", |
| 69 "//net:test_support", | 89 "//net:test_support", |
| 70 "//skia", | 90 "//skia", |
| 71 "//testing/gmock", | 91 "//testing/gmock", |
| 72 "//testing/gtest", | 92 "//testing/gtest", |
| 73 "//third_party/ocmock", | 93 "//third_party/ocmock", |
| 74 "//ui/gfx:test_support", | 94 "//ui/gfx:test_support", |
| 75 ] | 95 ] |
| 76 | |
| 77 # TODO(crbug.com/546283): once bundle resources are supported add code | |
| 78 # corresponding to the following gyp fragment: | |
| 79 # | |
| 80 # 'mac_bundle_resources': [ | |
| 81 # 'browser/ui/native_content_controller_test.xib' | |
| 82 # ], | |
| 83 # 'actions': [ | |
| 84 # { | |
| 85 # 'action_name': 'copy_ios_chrome_test_data', | |
| 86 # 'variables': { | |
| 87 # 'test_data_files': [ | |
| 88 # 'test/data/webdata/bookmarkimages', | |
| 89 # ], | |
| 90 # 'test_data_prefix': 'ios/chrome', | |
| 91 # }, | |
| 92 # 'includes': [ '../../build/copy_test_data_ios.gypi' ] | |
| 93 # }, | |
| 94 # ], | |
| 95 # 'includes': ['ios_chrome_resources_bundle.gypi'], | |
| 96 } | 96 } |
| OLD | NEW |