| 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/buildflag_header.gni") | 5 import("//build/buildflag_header.gni") |
| 6 import("//build/config/features.gni") | 6 import("//build/config/features.gni") |
| 7 import("//build/config/locales.gni") | 7 import("//build/config/locales.gni") |
| 8 import("//build/config/sanitizers/sanitizers.gni") | 8 import("//build/config/sanitizers/sanitizers.gni") |
| 9 import("//build/config/ui.gni") | 9 import("//build/config/ui.gni") |
| 10 import("//chromecast/build/tests/cast_test.gni") | 10 import("//chromecast/build/tests/cast_test.gni") |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 if (is_linux) { | 54 if (is_linux) { |
| 55 tests += [ "//chromecast/crash:cast_crash_unittests" ] | 55 tests += [ "//chromecast/crash:cast_crash_unittests" ] |
| 56 } | 56 } |
| 57 | 57 |
| 58 if (!is_android && use_alsa) { | 58 if (!is_android && use_alsa) { |
| 59 tests += [ "//chromecast/media/cma/backend/alsa:cast_alsa_cma_backend_unitte
sts" ] | 59 tests += [ "//chromecast/media/cma/backend/alsa:cast_alsa_cma_backend_unitte
sts" ] |
| 60 } | 60 } |
| 61 | 61 |
| 62 if (!is_android) { | 62 if (!is_android) { |
| 63 tests += [ | 63 tests += [ |
| 64 ":cast_shell_browsertests", | 64 "//chromecast/app:cast_shell_unittests", |
| 65 ":cast_shell_unittests", | 65 "//chromecast/browser:cast_shell_browser_test", |
| 66 "//chromecast/media:cast_media_unittests", | 66 "//chromecast/media:cast_media_unittests", |
| 67 "//ipc:ipc_tests", | 67 "//ipc:ipc_tests", |
| 68 "//jingle:jingle_unittests", | 68 "//jingle:jingle_unittests", |
| 69 "//url:url_unittests", | 69 "//url:url_unittests", |
| 70 ] | 70 ] |
| 71 | 71 |
| 72 cast_media_unittests_filter = { | 72 cast_media_unittests_filter = { |
| 73 test_name = "cast_media_unittests" | 73 test_name = "cast_media_unittests" |
| 74 | 74 |
| 75 # --test-launcher-jobs=1 => so internal code can bind to port | 75 # --test-launcher-jobs=1 => so internal code can bind to port |
| 76 args = [ "--test-launcher-jobs=1" ] | 76 args = [ "--test-launcher-jobs=1" ] |
| 77 } | 77 } |
| 78 filters += [ cast_media_unittests_filter ] | 78 filters += [ cast_media_unittests_filter ] |
| 79 | 79 |
| 80 cast_shell_browsertests_filter = { | 80 cast_shell_browser_test_filter = { |
| 81 test_name = "cast_shell_browsertests" | 81 test_name = "cast_shell_browser_test" |
| 82 | 82 |
| 83 # --enable-local-file-accesses => to load sample media files | 83 # --enable-local-file-accesses => to load sample media files |
| 84 # --test-launcher-jobs=1 => so internal code can bind to port | 84 # --test-launcher-jobs=1 => so internal code can bind to port |
| 85 args = [ | 85 args = [ |
| 86 "--no-sandbox", | 86 "--no-sandbox", |
| 87 "--enable-local-file-accesses", | 87 "--enable-local-file-accesses", |
| 88 "--enable-cma-media-pipeline", | 88 "--enable-cma-media-pipeline", |
| 89 "--ozone-platform=cast", | 89 "--ozone-platform=cast", |
| 90 "--test-launcher-jobs=1", | 90 "--test-launcher-jobs=1", |
| 91 ] | 91 ] |
| 92 if (!is_cast_desktop_build) { | 92 if (!is_cast_desktop_build) { |
| 93 args += [ "--use-gpu-in-tests" ] | 93 args += [ "--use-gpu-in-tests" ] |
| 94 } | 94 } |
| 95 } | 95 } |
| 96 filters += [ cast_shell_browsertests_filter ] | 96 filters += [ cast_shell_browser_test_filter ] |
| 97 | 97 |
| 98 ipc_tests_filter = { | 98 ipc_tests_filter = { |
| 99 test_name = "ipc_tests" | 99 test_name = "ipc_tests" |
| 100 | 100 |
| 101 # --test-launcher-jobs=1 => so internal code can bind to port | 101 # --test-launcher-jobs=1 => so internal code can bind to port |
| 102 args = [ "--test-launcher-jobs=1" ] | 102 args = [ "--test-launcher-jobs=1" ] |
| 103 } | 103 } |
| 104 filters += [ ipc_tests_filter ] | 104 filters += [ ipc_tests_filter ] |
| 105 | 105 |
| 106 url_unittests_filter = { | 106 url_unittests_filter = { |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 269 | 269 |
| 270 cast_test_group_list("cast_junit_test_lists") { | 270 cast_test_group_list("cast_junit_test_lists") { |
| 271 test_type = "junit" | 271 test_type = "junit" |
| 272 build_list_path = "$root_out_dir/junit/build_junit_test_list.txt" | 272 build_list_path = "$root_out_dir/junit/build_junit_test_list.txt" |
| 273 run_list_path = "$root_out_dir/junit/run_junit_test_list.txt" | 273 run_list_path = "$root_out_dir/junit/run_junit_test_list.txt" |
| 274 build_tests = true | 274 build_tests = true |
| 275 test_groups = [ ":cast_junit_tests" ] | 275 test_groups = [ ":cast_junit_tests" ] |
| 276 } | 276 } |
| 277 } | 277 } |
| 278 | 278 |
| 279 test("cast_shell_unittests") { | |
| 280 deps = [ | |
| 281 "//chromecast/app:test_support", | |
| 282 "//chromecast/app:unittests", | |
| 283 "//chromecast/browser:unittests", | |
| 284 ] | |
| 285 } | |
| 286 | |
| 287 test("cast_shell_browsertests") { | |
| 288 deps = [ | |
| 289 "//chromecast/app:test_support", | |
| 290 "//chromecast/browser:browsertests", | |
| 291 ] | |
| 292 | |
| 293 if (chromecast_branding == "public") { | |
| 294 # Link default libcast_media_1.0 statically not to link dummy one | |
| 295 # dynamically for public unittests. | |
| 296 deps += [ "//chromecast/media/base:libcast_media_1.0_default_core" ] | |
| 297 } | |
| 298 } | |
| 299 | |
| 300 group("cast_shell_lib") { | 279 group("cast_shell_lib") { |
| 301 deps = [ | 280 deps = [ |
| 302 "//chromecast/app", | 281 "//chromecast/app", |
| 303 "//chromecast/browser", | 282 "//chromecast/browser", |
| 304 "//chromecast/common", | 283 "//chromecast/common", |
| 305 "//chromecast/renderer", | 284 "//chromecast/renderer", |
| 306 ] | 285 ] |
| 307 | 286 |
| 308 if (chromecast_branding != "public") { | 287 if (chromecast_branding != "public") { |
| 309 deps += [ "//chromecast/internal/shell" ] | 288 deps += [ "//chromecast/internal/shell" ] |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 440 apk_name = "CastShell" | 419 apk_name = "CastShell" |
| 441 android_manifest = "$root_gen_dir/cast_shell_manifest/AndroidManifest.xml" | 420 android_manifest = "$root_gen_dir/cast_shell_manifest/AndroidManifest.xml" |
| 442 android_manifest_dep = "//chromecast/browser/android:cast_shell_manifest" | 421 android_manifest_dep = "//chromecast/browser/android:cast_shell_manifest" |
| 443 deps = [ | 422 deps = [ |
| 444 ":cast_shell_apk_assets", | 423 ":cast_shell_apk_assets", |
| 445 "//chromecast/android:libcast_shell_android", | 424 "//chromecast/android:libcast_shell_android", |
| 446 "//chromecast/browser/android:cast_shell_java", | 425 "//chromecast/browser/android:cast_shell_java", |
| 447 ] | 426 ] |
| 448 } | 427 } |
| 449 } | 428 } |
| OLD | NEW |