| # Copyright 2021 The Chromium Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| import("//chromecast/chromecast.gni") |
| |
| # When built for use with Cast Core, enble_cast_media_runtime must be true. |
| cast_executable("core_runtime_simple") { |
| sources = [ "cast_runtime_main.cc" ] |
| |
| deps = [ |
| "//chromecast:cast_shell_pak", |
| "//chromecast:chromecast_locales_pak", |
| "//chromecast/app", |
| "//chromecast/base:default_create_sys_info", |
| "//chromecast/browser:browser", |
| "//chromecast/browser:prefs_simple", |
| "//chromecast/browser:simple_main_parts", |
| "//chromecast/cast_core/grpc:grpc_factory_linux", |
| "//chromecast/cast_core/runtime/browser:browser_simple", |
| "//chromecast/cast_core/runtime/renderer", |
| "//chromecast/utility:simple_client", |
| "//content/public/app", |
| ] |
| } |
| |
| # A group of all unit test targets to be linked internally. |
| group("all_unit_tests") { |
| testonly = true |
| |
| deps = [ |
| "//chromecast/cast_core/grpc:unit_tests", |
| "//chromecast/cast_core/runtime/browser:unit_tests", |
| "//chromecast/cast_core/runtime/browser/url_rewrite:unit_tests", |
| "//chromecast/cast_core/runtime/common:unit_tests", |
| ] |
| } |
| |
| test("cast_cast_core_unittests") { |
| deps = [ |
| ":all_unit_tests", |
| "//chromecast/browser:prefs_simple", |
| "//chromecast/browser:simple_main_parts", |
| "//chromecast/cast_core/grpc:grpc_factory_linux", |
| "//chromecast/cast_core/runtime/browser:browser_simple", |
| "//chromecast/cast_core/runtime/renderer", |
| "//mojo/core/test:run_all_unittests", |
| ] |
| } |
| |
| group("cast_core_integration_test") { |
| testonly = true |
| data = [ |
| "//chromecast/cast_core/test/", |
| "//testing/scripts/run_cast_core_tests.py", |
| "//third_party/cast_core/prebuilts/", |
| "//third_party/cast_web_runtime/", |
| ] |
| data_deps = [ |
| "//tools/perf/chrome_telemetry_build:telemetry_chrome_test_without_chrome", |
| ] |
| } |