OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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/chrome_build.gni") | 5 import("//build/config/chrome_build.gni") |
6 import("//build/config/compiler/compiler.gni") | 6 import("//build/config/compiler/compiler.gni") |
7 import("//build/config/crypto.gni") | 7 import("//build/config/crypto.gni") |
8 import("//build/config/features.gni") | 8 import("//build/config/features.gni") |
9 import("//build/config/ui.gni") | 9 import("//build/config/ui.gni") |
10 import("//chrome/common/features.gni") | 10 import("//chrome/common/features.gni") |
(...skipping 13 matching lines...) Expand all Loading... |
24 group("test") { | 24 group("test") { |
25 testonly = true | 25 testonly = true |
26 } | 26 } |
27 | 27 |
28 # Use a static library here because many test binaries depend on this but don't | 28 # Use a static library here because many test binaries depend on this but don't |
29 # require many files from it. This makes linking more efficient. | 29 # require many files from it. This makes linking more efficient. |
30 static_library("test_support") { | 30 static_library("test_support") { |
31 defines = [] | 31 defines = [] |
32 testonly = true | 32 testonly = true |
33 | 33 |
| 34 |
| 35 |
| 36 deps = [ |
| 37 |
| 38 "//base", |
| 39 "//base/test:test_support", |
| 40 "//services/shell/background:lib", |
| 41 "//services/shell/background/tests:test_support", |
| 42 "//services/shell/public/cpp:sources", |
| 43 "//services/ui/common:mus_common", |
| 44 "//testing/gtest", |
| 45 "//ui/aura", |
| 46 "//ui/gl:test_support", |
| 47 ] |
| 48 |
| 49 |
34 sources = [ | 50 sources = [ |
| 51 |
| 52 "views_chrome_test_suite.cc", |
| 53 "views_chrome_test_suite.h", |
| 54 "//ui/views/test/native_widget_factory_mus.cc", |
| 55 |
35 "base/chrome_process_util.cc", | 56 "base/chrome_process_util.cc", |
36 "base/chrome_process_util.h", | 57 "base/chrome_process_util.h", |
37 "base/chrome_process_util_mac.cc", | 58 "base/chrome_process_util_mac.cc", |
38 "base/chrome_render_view_host_test_harness.cc", | 59 "base/chrome_render_view_host_test_harness.cc", |
39 "base/chrome_render_view_host_test_harness.h", | 60 "base/chrome_render_view_host_test_harness.h", |
40 "base/chrome_test_launcher.cc", | 61 "base/chrome_test_launcher.cc", |
41 "base/chrome_test_launcher.h", | 62 "base/chrome_test_launcher.h", |
42 "base/chrome_test_suite.cc", | 63 "base/chrome_test_suite.cc", |
43 "base/chrome_test_suite.h", | 64 "base/chrome_test_suite.h", |
44 "base/chrome_unit_test_suite.cc", | 65 "base/chrome_unit_test_suite.cc", |
(...skipping 2914 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2959 "../renderer/resources/extensions/notifications_test_util.js", | 2980 "../renderer/resources/extensions/notifications_test_util.js", |
2960 "//ui/webui/resources/js/cr.js", | 2981 "//ui/webui/resources/js/cr.js", |
2961 ] | 2982 ] |
2962 if (is_chromeos) { | 2983 if (is_chromeos) { |
2963 sources += [ "../browser/resources/chromeos/braille_ime/braille_ime_unittest
.gtestjs" ] | 2984 sources += [ "../browser/resources/chromeos/braille_ime/braille_ime_unittest
.gtestjs" ] |
2964 extra_js_files += | 2985 extra_js_files += |
2965 [ "../browser/resources/chromeos/braille_ime/braille_ime.js" ] | 2986 [ "../browser/resources/chromeos/braille_ime/braille_ime.js" ] |
2966 } | 2987 } |
2967 } | 2988 } |
2968 | 2989 |
| 2990 |
| 2991 |
| 2992 |
2969 test("unit_tests") { | 2993 test("unit_tests") { |
2970 sources = [ | 2994 sources = [ |
2971 # histograms.xml is analyzed by AboutFlagsHistogramTest, so this | 2995 # histograms.xml is analyzed by AboutFlagsHistogramTest, so this |
2972 # dependency is needed to make commit bots run unit_tests on | 2996 # dependency is needed to make commit bots run unit_tests on |
2973 # histograms.xml changes. | 2997 # histograms.xml changes. |
2974 "../../tools/metrics/histograms/histograms.xml", | 2998 "../../tools/metrics/histograms/histograms.xml", |
2975 | 2999 |
2976 # All unittests in browser, common, renderer and service. | 3000 # All unittests in browser, common, renderer and service. |
2977 "../browser/about_flags_unittest.cc", | 3001 "../browser/about_flags_unittest.cc", |
2978 "../browser/after_startup_task_utils_unittest.cc", | 3002 "../browser/after_startup_task_utils_unittest.cc", |
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3235 "../browser/sync/profile_sync_service_factory_unittest.cc", | 3259 "../browser/sync/profile_sync_service_factory_unittest.cc", |
3236 "../browser/sync/sync_startup_tracker_unittest.cc", | 3260 "../browser/sync/sync_startup_tracker_unittest.cc", |
3237 "../browser/task_profiler/task_profiler_data_serializer_unittest.cc", | 3261 "../browser/task_profiler/task_profiler_data_serializer_unittest.cc", |
3238 "../browser/thumbnails/content_analysis_unittest.cc", | 3262 "../browser/thumbnails/content_analysis_unittest.cc", |
3239 "../browser/thumbnails/content_based_thumbnailing_algorithm_unittest.cc", | 3263 "../browser/thumbnails/content_based_thumbnailing_algorithm_unittest.cc", |
3240 "../browser/thumbnails/simple_thumbnail_crop_unittest.cc", | 3264 "../browser/thumbnails/simple_thumbnail_crop_unittest.cc", |
3241 "../browser/thumbnails/thumbnail_service_unittest.cc", | 3265 "../browser/thumbnails/thumbnail_service_unittest.cc", |
3242 "../browser/translate/translate_service_unittest.cc", | 3266 "../browser/translate/translate_service_unittest.cc", |
3243 "../browser/ui/android/tab_model/tab_model_list_unittest.cc", | 3267 "../browser/ui/android/tab_model/tab_model_list_unittest.cc", |
3244 "../browser/ui/android/tab_model/tab_model_unittest.cc", | 3268 "../browser/ui/android/tab_model/tab_model_unittest.cc", |
| 3269 "../browser/ui/ash/app_list/app_list_presenter_delegate_mus_unittest.cc", |
3245 "../browser/ui/autofill/autofill_dialog_models_unittest.cc", | 3270 "../browser/ui/autofill/autofill_dialog_models_unittest.cc", |
3246 "../browser/ui/autofill/autofill_popup_layout_model_unittest.cc", | 3271 "../browser/ui/autofill/autofill_popup_layout_model_unittest.cc", |
3247 "../browser/ui/autofill/popup_view_common_unittest.cc", | 3272 "../browser/ui/autofill/popup_view_common_unittest.cc", |
3248 "../browser/ui/bookmarks/bookmark_editor_unittest.cc", | 3273 "../browser/ui/bookmarks/bookmark_editor_unittest.cc", |
3249 "../browser/ui/bookmarks/bookmark_ui_utils_desktop_unittest.cc", | 3274 "../browser/ui/bookmarks/bookmark_ui_utils_desktop_unittest.cc", |
3250 "../browser/ui/bookmarks/recently_used_folders_combo_model_unittest.cc", | 3275 "../browser/ui/bookmarks/recently_used_folders_combo_model_unittest.cc", |
3251 "../browser/ui/chrome_select_file_policy_unittest.cc", | 3276 "../browser/ui/chrome_select_file_policy_unittest.cc", |
3252 "../browser/ui/find_bar/find_backend_unittest.cc", | 3277 "../browser/ui/find_bar/find_backend_unittest.cc", |
3253 "../browser/ui/login/login_handler_unittest.cc", | 3278 "../browser/ui/login/login_handler_unittest.cc", |
3254 "../browser/ui/passwords/manage_passwords_state_unittest.cc", | 3279 "../browser/ui/passwords/manage_passwords_state_unittest.cc", |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3324 "../../tools/json_schema_compiler/test/callbacks_unittest.cc", | 3349 "../../tools/json_schema_compiler/test/callbacks_unittest.cc", |
3325 "../../tools/json_schema_compiler/test/choices_unittest.cc", | 3350 "../../tools/json_schema_compiler/test/choices_unittest.cc", |
3326 "../../tools/json_schema_compiler/test/crossref_unittest.cc", | 3351 "../../tools/json_schema_compiler/test/crossref_unittest.cc", |
3327 "../../tools/json_schema_compiler/test/enums_unittest.cc", | 3352 "../../tools/json_schema_compiler/test/enums_unittest.cc", |
3328 "../../tools/json_schema_compiler/test/error_generation_unittest.cc", | 3353 "../../tools/json_schema_compiler/test/error_generation_unittest.cc", |
3329 "../../tools/json_schema_compiler/test/functions_as_parameters_unittest.cc", | 3354 "../../tools/json_schema_compiler/test/functions_as_parameters_unittest.cc", |
3330 "../../tools/json_schema_compiler/test/functions_on_types_unittest.cc", | 3355 "../../tools/json_schema_compiler/test/functions_on_types_unittest.cc", |
3331 "../../tools/json_schema_compiler/test/idl_schemas_unittest.cc", | 3356 "../../tools/json_schema_compiler/test/idl_schemas_unittest.cc", |
3332 "../../tools/json_schema_compiler/test/objects_unittest.cc", | 3357 "../../tools/json_schema_compiler/test/objects_unittest.cc", |
3333 "../../tools/json_schema_compiler/test/simple_api_unittest.cc", | 3358 "../../tools/json_schema_compiler/test/simple_api_unittest.cc", |
| 3359 |
| 3360 "run_all_unittests_chrome.cc", |
3334 ] | 3361 ] |
3335 | 3362 |
3336 configs += [ "//build/config:precompiled_headers" ] | 3363 configs += [ "//build/config:precompiled_headers" ] |
3337 | 3364 |
3338 data = [ | 3365 data = [ |
3339 "data/", | 3366 "data/", |
3340 "//base/test/data/", | 3367 "//base/test/data/", |
3341 "//chrome/third_party/mock4js/", | 3368 "//chrome/third_party/mock4js/", |
3342 "//components/test/data/", | 3369 "//components/test/data/", |
3343 "//extensions/test/data/", | 3370 "//extensions/test/data/", |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3384 "//components/sync:test_support_sync_api", | 3411 "//components/sync:test_support_sync_api", |
3385 "//components/sync:test_support_sync_core", | 3412 "//components/sync:test_support_sync_core", |
3386 "//components/sync:test_support_sync_core_impl", | 3413 "//components/sync:test_support_sync_core_impl", |
3387 "//components/sync_sessions:test_support", | 3414 "//components/sync_sessions:test_support", |
3388 "//content/public/app:both", | 3415 "//content/public/app:both", |
3389 "//content/test:test_support", | 3416 "//content/test:test_support", |
3390 "//crypto:platform", | 3417 "//crypto:platform", |
3391 "//crypto:test_support", | 3418 "//crypto:test_support", |
3392 "//net", | 3419 "//net", |
3393 "//net:test_support", | 3420 "//net:test_support", |
| 3421 "//services/ui/public/cpp/tests:unittest_support", |
3394 "//testing/gmock", | 3422 "//testing/gmock", |
3395 "//testing/gtest", | 3423 "//testing/gtest", |
3396 | 3424 |
3397 # 3) anything tests directly depend on | 3425 # 3) anything tests directly depend on |
3398 "//chrome:resources", | 3426 "//chrome:resources", |
3399 "//chrome:strings", | 3427 "//chrome:strings", |
3400 "//components/component_updater:test_support", | 3428 "//components/component_updater:test_support", |
3401 "//components/safe_browsing_db:test_database_manager", | 3429 "//components/safe_browsing_db:test_database_manager", |
3402 "//components/subresource_filter/core/browser:test_support", | 3430 "//components/subresource_filter/core/browser:test_support", |
3403 "//components/version_info:generate_version_info", | 3431 "//components/version_info:generate_version_info", |
3404 "//courgette:courgette_lib", | 3432 "//courgette:courgette_lib", |
3405 "//google_apis", | 3433 "//google_apis", |
3406 "//skia", | 3434 "//skia", |
3407 "//third_party/cacheinvalidation", | 3435 "//third_party/cacheinvalidation", |
3408 "//third_party/icu", | 3436 "//third_party/icu", |
3409 "//third_party/libxml", | 3437 "//third_party/libxml", |
3410 "//ui/base:test_support", | 3438 "//ui/base:test_support", |
3411 "//ui/display:test_support", | 3439 "//ui/display:test_support", |
3412 "//ui/gfx:test_support", | 3440 "//ui/gfx:test_support", |
3413 "//ui/resources", | 3441 "//ui/resources", |
| 3442 "//services/shell/background:main", # Provides main(). |
3414 ] | 3443 ] |
3415 data_deps = [] | 3444 |
| 3445 data_deps = [ |
| 3446 ":unittests_manifest", |
| 3447 "//services/ui/test_wm", |
| 3448 "//services/ui/ime/test_ime_driver", |
| 3449 ] |
| 3450 |
| 3451 if (use_x11) { |
| 3452 configs += [ |
| 3453 "//build/config/linux:x11", |
| 3454 "//build/config/linux:xext", |
| 3455 ] |
| 3456 deps += [ |
| 3457 "//ui/events/devices", |
| 3458 "//ui/events/platform/x11", |
| 3459 "//ui/gfx/x", |
| 3460 ] |
| 3461 } |
3416 | 3462 |
3417 if (!is_ios) { | 3463 if (!is_ios) { |
3418 deps += [ | 3464 deps += [ |
3419 "//components/autofill/content/renderer:test_support", | 3465 "//components/autofill/content/renderer:test_support", |
3420 "//components/data_reduction_proxy/core/browser:test_support", | 3466 "//components/data_reduction_proxy/core/browser:test_support", |
3421 "//components/data_use_measurement/core", | 3467 "//components/data_use_measurement/core", |
3422 "//components/metrics/proto", | 3468 "//components/metrics/proto", |
3423 "//components/os_crypt:test_support", | 3469 "//components/os_crypt:test_support", |
3424 "//components/safe_browsing_db", | 3470 "//components/safe_browsing_db", |
3425 "//components/safe_json:test_support", | 3471 "//components/safe_json:test_support", |
(...skipping 1571 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4997 "touch_hud", | 5043 "touch_hud", |
4998 "ui", | 5044 "ui", |
4999 ] | 5045 ] |
5000 | 5046 |
5001 if (is_linux && !is_android) { | 5047 if (is_linux && !is_android) { |
5002 deps += [ "//components/font_service:manifest" ] | 5048 deps += [ "//components/font_service:manifest" ] |
5003 packaged_services += [ "font_service" ] | 5049 packaged_services += [ "font_service" ] |
5004 } | 5050 } |
5005 } | 5051 } |
5006 } | 5052 } |
| 5053 |
| 5054 service_manifest("unittests_manifest") { |
| 5055 type = "exe" |
| 5056 name = "unit_tests" |
| 5057 source = "unittests_manifest.json" |
| 5058 } |
OLD | NEW |