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 "pref_service_helper.cc",
47 "pref_service_helper.h",
48 "service/cast_service_simple.cc",
49 "service/cast_service_simple.h",
50 "url_request_context_factory.cc",
51 "url_request_context_factory.h",
54 if (chromecast_branding == "public") {
56 "cast_content_browser_client_simple.cc",
57 "cast_network_delegate_simple.cc",
58 "devtools/remote_debugging_server_simple.cc",
59 "pref_service_helper_simple.cc",
68 "//chromecast/app:chromecast_settings",
69 "//chromecast/app:resources",
71 "//chromecast/base:cast_sys_info",
72 "//chromecast/base:cast_version",
73 "//chromecast/common",
74 "//chromecast/graphics",
77 "//chromecast/service",
78 "//components/crash/app",
79 "//components/crash/browser",
80 "//components/devtools_http_handler:devtools_http_handler",
81 "//components/metrics",
82 "//components/metrics:gpu",
83 "//components/metrics:net",
84 "//components/metrics:profiler",
85 "//components/network_hints/browser",
87 "//content/public/browser",
88 "//content/public/common",
89 "//content/public/utility",
101 "metrics/external_metrics.cc",
102 "metrics/external_metrics.h",
106 "//chromecast/browser/media",
109 deps += [ "//components/metrics:serialization" ]
113 source_set("test_support") {
117 "test/chromecast_browser_test.cc",
118 "test/chromecast_browser_test.h",
119 "test/chromecast_browser_test_runner.cc",
124 "//chromecast:cast_shell_common",
131 "//content/public/browser",
132 "//content/public/common",
133 "//content/test:test_support",
138 config("browser_test_config") {
139 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ]
142 test("cast_shell_browser_test") {
144 "test/chromecast_shell_browser_test.cc",
147 configs += [ ":browser_test_config" ]