OLD | NEW |
(Empty) | |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. |
| 4 |
| 5 import("//build/config/features.gni") |
| 6 import("//build/config/ui.gni") |
| 7 |
| 8 # GYP version: chrome/chrome_tests_unit.gypi:test_support_common |
| 9 source_set("test_support") { |
| 10 testonly = true |
| 11 |
| 12 sources = [ |
| 13 "base/chrome_process_util.cc", |
| 14 "base/chrome_process_util.h", |
| 15 "base/chrome_process_util_mac.cc", |
| 16 "base/chrome_render_view_host_test_harness.cc", |
| 17 "base/chrome_render_view_host_test_harness.h", |
| 18 "base/chrome_test_launcher.cc", |
| 19 "base/chrome_test_launcher.h", |
| 20 "base/chrome_test_suite.cc", |
| 21 "base/chrome_test_suite.h", |
| 22 "base/chrome_unit_test_suite.cc", |
| 23 "base/chrome_unit_test_suite.h", |
| 24 "base/find_in_page_observer.cc", |
| 25 "base/find_in_page_observer.h", |
| 26 "base/history_index_restore_observer.cc", |
| 27 "base/history_index_restore_observer.h", |
| 28 "base/in_process_browser_test.cc", |
| 29 "base/in_process_browser_test.h", |
| 30 "base/profile_mock.cc", |
| 31 "base/profile_mock.h", |
| 32 "base/scoped_browser_locale.cc", |
| 33 "base/scoped_browser_locale.h", |
| 34 "base/scoped_testing_local_state.cc", |
| 35 "base/scoped_testing_local_state.h", |
| 36 "base/test_browser_window.cc", |
| 37 "base/test_browser_window.h", |
| 38 "base/test_launcher_utils.cc", |
| 39 "base/test_launcher_utils.h", |
| 40 "base/test_switches.cc", |
| 41 "base/test_switches.h", |
| 42 "base/testing_browser_process.cc", |
| 43 "base/testing_browser_process.h", |
| 44 "base/testing_browser_process_platform_part.h", |
| 45 "base/testing_browser_process_platform_part.cc", |
| 46 "base/testing_io_thread_state.cc", |
| 47 "base/testing_io_thread_state.h", |
| 48 "base/testing_pref_service_syncable.cc", |
| 49 "base/testing_pref_service_syncable.h", |
| 50 "base/testing_profile.cc", |
| 51 "base/testing_profile.h", |
| 52 "base/testing_profile_manager.cc", |
| 53 "base/testing_profile_manager.h", |
| 54 "base/tracing.cc", |
| 55 "base/tracing.h", |
| 56 "base/ui_test_utils.cc", |
| 57 "base/ui_test_utils.h", |
| 58 "logging/win/file_logger.cc", |
| 59 "logging/win/file_logger.h", |
| 60 "logging/win/log_file_printer.cc", |
| 61 "logging/win/log_file_printer.h", |
| 62 "logging/win/log_file_reader.cc", |
| 63 "logging/win/log_file_reader.h", |
| 64 "logging/win/mof_data_parser.cc", |
| 65 "logging/win/mof_data_parser.h", |
| 66 "logging/win/test_log_collector.cc", |
| 67 "logging/win/test_log_collector.h", |
| 68 ] |
| 69 |
| 70 # New deps should go in the non-iOS section below. |
| 71 deps = [ |
| 72 "//base:prefs_test_support", |
| 73 "//base/test:test_support", |
| 74 "//chrome:resources", |
| 75 "//chrome:strings", |
| 76 "//chrome/app:test_support", |
| 77 #"//chrome/app/theme:theme_resources", |
| 78 "//chrome/browser:test_support", |
| 79 "//chrome/common:test_support", |
| 80 "//chrome/renderer:test_support", |
| 81 "//components/bookmarks/test", |
| 82 "//components/component_updater:test_support", |
| 83 "//components/gcm_driver:test_support", |
| 84 "//components/history/core/test:test", |
| 85 "//components/metrics:test_support", |
| 86 "//components/omnibox:test_support", |
| 87 "//components/ownership", |
| 88 "//components/password_manager/core/browser:test_support", |
| 89 "//components/pref_registry:test_support", |
| 90 "//components/search_engines:test_support", |
| 91 "//components/signin/core/browser:test_support", |
| 92 "//components/sync_driver:test_support", |
| 93 "//content/public/app:both", |
| 94 "//content/test:test_support", |
| 95 "//ui/gfx:test_support", |
| 96 "//net", |
| 97 "//net:test_support", |
| 98 "//skia", |
| 99 "//sql", |
| 100 "//sql:test_support", |
| 101 "//sync", |
| 102 "//testing/gmock", |
| 103 "//testing/gtest", |
| 104 "//third_party/zlib", |
| 105 "//ui/message_center:test_support", |
| 106 ] |
| 107 |
| 108 forward_dependent_configs_from = [ |
| 109 "//content/test:test_support", |
| 110 ] |
| 111 |
| 112 if (!is_ios) { |
| 113 deps += [ |
| 114 "//chrome/common/extensions/api", |
| 115 "//chrome/plugin", |
| 116 "//chrome/renderer", |
| 117 "//chrome/utility", |
| 118 "//content/public/child", |
| 119 "//content/public/common", |
| 120 "//content/public/plugin", |
| 121 "//content/public/renderer", |
| 122 "//content/public/utility", |
| 123 "//components/autofill/core/browser:test_support", |
| 124 "//components/captive_portal:test_support", |
| 125 "//components/infobars/core", |
| 126 "//components/sessions:test_support", |
| 127 "//extensions:test_support", |
| 128 "//google_apis:test_support", |
| 129 "//ipc:test_support", |
| 130 "//media:test_support", |
| 131 "//ppapi:ppapi_shared", |
| 132 "//sql:test_support", |
| 133 "//third_party/leveldatabase", |
| 134 "//ui/base", |
| 135 "//ui/events:events_base", |
| 136 "//ui/gl", |
| 137 ] |
| 138 } |
| 139 |
| 140 if (is_linux) { |
| 141 deps += [ "//crypto:platform" ] |
| 142 } |
| 143 if (is_win) { |
| 144 deps += [ |
| 145 "//third_party/wtl", |
| 146 "//ui/snapshot:test_support", |
| 147 ] |
| 148 if (use_aura) { |
| 149 deps += [ |
| 150 #'../win8/win8.gyp:test_registrar_constants', TODO(GYP) |
| 151 #'../win8/win8.gyp:test_support_win8', TODO(GYP) |
| 152 ] |
| 153 } |
| 154 } |
| 155 |
| 156 if (enable_plugins) { |
| 157 sources += [ |
| 158 "ppapi/ppapi_test.cc", |
| 159 "ppapi/ppapi_test.h", |
| 160 ] |
| 161 } |
| 162 |
| 163 if (use_ash) { |
| 164 deps += [ "//ash:test_support" ] |
| 165 } |
| 166 if (toolkit_views) { |
| 167 deps += [ "//ui/views:test_support" ] |
| 168 } |
| 169 } |
| 170 |
| 171 source_set("test_support_unit") { |
| 172 testonly = true |
| 173 sources = [ |
| 174 "../browser/sync/glue/session_sync_test_helper.cc", |
| 175 "../browser/sync/glue/session_sync_test_helper.h", |
| 176 "base/run_all_unittests.cc", |
| 177 ] |
| 178 |
| 179 deps = [ |
| 180 ":test_support", |
| 181 "//base", |
| 182 "//chrome:resources", |
| 183 "//chrome:strings", |
| 184 "//chrome/browser", |
| 185 "//chrome/common", |
| 186 "//mojo/environment:chromium", |
| 187 "//mojo/system", |
| 188 ] |
| 189 } |
OLD | NEW |