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
3 # found in the LICENSE file.
5 import("//chromecast/chromecast.gni")
6 import("//testing/test.gni")
8 source_set("browser") {
10 "cast_browser_context.cc",
11 "cast_browser_context.h",
12 "cast_browser_main_parts.cc",
13 "cast_browser_main_parts.h",
14 "cast_browser_process.cc",
15 "cast_browser_process.h",
16 "cast_content_browser_client.cc",
17 "cast_content_browser_client.h",
18 "cast_content_window.cc",
19 "cast_content_window.h",
20 "cast_download_manager_delegate.cc",
21 "cast_download_manager_delegate.h",
22 "cast_http_user_agent_settings.cc",
23 "cast_http_user_agent_settings.h",
26 "cast_network_delegate.cc",
27 "cast_network_delegate.h",
28 "cast_permission_manager.cc",
29 "cast_permission_manager.h",
30 "cast_quota_permission_context.cc",
31 "cast_quota_permission_context.h",
32 "cast_resource_dispatcher_host_delegate.cc",
33 "cast_resource_dispatcher_host_delegate.h",
34 "devtools/cast_dev_tools_delegate.cc",
35 "devtools/cast_dev_tools_delegate.h",
36 "devtools/remote_debugging_server.cc",
37 "devtools/remote_debugging_server.h",
38 "geolocation/cast_access_token_store.cc",
39 "geolocation/cast_access_token_store.h",
40 "metrics/cast_metrics_prefs.cc",
41 "metrics/cast_metrics_prefs.h",
42 "metrics/cast_metrics_service_client.cc",
43 "metrics/cast_metrics_service_client.h",
44 "metrics/cast_stability_metrics_provider.cc",
45 "metrics/cast_stability_metrics_provider.h",
46 "metrics/platform_metrics_providers.h",
47 "pref_service_helper.cc",
48 "pref_service_helper.h",
49 "service/cast_service.cc",
50 "service/cast_service.h",
51 "service/cast_service_android.cc",
52 "service/cast_service_android.h",
53 "url_request_context_factory.cc",
54 "url_request_context_factory.h",
57 if (chromecast_branding == "public") {
59 "cast_content_browser_client_simple.cc",
60 "cast_network_delegate_simple.cc",
61 "devtools/remote_debugging_server_simple.cc",
62 "pref_service_helper_simple.cc",
67 "metrics/platform_metrics_providers_simple.cc",
68 "service/cast_service_simple.cc",
69 "service/cast_service_simple.h",
79 "//chromecast/app:chromecast_settings",
80 "//chromecast/app:resources",
82 "//chromecast/base:cast_sys_info",
83 "//chromecast/common",
84 "//chromecast/graphics",
87 "//chromecast/public",
88 "//components/crash/app",
89 "//components/crash/browser",
90 "//components/devtools_http_handler:devtools_http_handler",
91 "//components/metrics",
92 "//components/metrics:gpu",
93 "//components/metrics:net",
94 "//components/metrics:profiler",
95 "//components/network_hints/browser",
97 "//content/public/browser",
98 "//content/public/common",
99 "//content/public/utility",
110 "metrics/external_metrics.cc",
111 "metrics/external_metrics.h",
115 "//chromecast/browser/media",
118 deps += [ "//components/metrics:serialization" ]
122 source_set("test_support") {
126 "test/chromecast_browser_test.cc",
127 "test/chromecast_browser_test.h",
128 "test/chromecast_browser_test_runner.cc",
133 "//chromecast:cast_shell_common",
140 "//content/public/browser",
141 "//content/public/common",
142 "//content/test:test_support",
147 config("browser_test_config") {
148 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ]
151 test("cast_shell_browser_test") {
153 "test/chromecast_shell_browser_test.cc",
156 configs += [ ":browser_test_config" ]