1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
|
# Copyright 2020 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.
source_set("browser") {
sources = [
"issue_manager.cc",
"issue_manager.h",
"issues_observer.cc",
"issues_observer.h",
"media_router.h",
"media_router_base.cc",
"media_router_base.h",
"media_router_dialog_controller.cc",
"media_router_dialog_controller.h",
"media_router_factory.cc",
"media_router_factory.h",
"media_router_metrics.cc",
"media_router_metrics.h",
"media_routes_observer.cc",
"media_routes_observer.h",
"media_sinks_observer.cc",
"media_sinks_observer.h",
"presentation/browser_presentation_connection_proxy.cc",
"presentation/browser_presentation_connection_proxy.h",
"presentation/local_presentation_manager.cc",
"presentation/local_presentation_manager.h",
"presentation/local_presentation_manager_factory.cc",
"presentation/local_presentation_manager_factory.h",
"presentation/presentation_media_sinks_observer.cc",
"presentation/presentation_media_sinks_observer.h",
"presentation/presentation_service_delegate_impl.cc",
"presentation/presentation_service_delegate_impl.h",
"presentation/presentation_service_delegate_observers.cc",
"presentation/presentation_service_delegate_observers.h",
"presentation/receiver_presentation_service_delegate_impl.cc",
"presentation/receiver_presentation_service_delegate_impl.h",
"presentation/start_presentation_context.cc",
"presentation/start_presentation_context.h",
"presentation/web_contents_presentation_manager.cc",
"presentation/web_contents_presentation_manager.h",
"route_message_observer.cc",
"route_message_observer.h",
"route_message_util.cc",
"route_message_util.h",
]
deps = [
"//base",
"//components/cast_channel",
"//components/keyed_service/content",
"//components/keyed_service/core",
"//components/openscreen_platform:openscreen_platform_network_service",
"//components/prefs",
"//components/sessions",
"//components/user_prefs",
"//content/public/browser",
"//content/public/common",
"//crypto",
"//net",
"//net/traffic_annotation",
"//services/network:network_service",
"//services/network/public/mojom",
"//third_party/icu",
"//url",
]
public_deps = [
"//components/media_router/common",
"//components/media_router/common/mojom:media_router",
]
if (is_android) {
sources += [
"android/flinging_controller_bridge.cc",
"android/flinging_controller_bridge.h",
"android/media_router_android.cc",
"android/media_router_android.h",
"android/media_router_android_bridge.cc",
"android/media_router_android_bridge.h",
"android/media_router_dialog_controller_android.cc",
"android/media_router_dialog_controller_android.h",
]
deps += [ "android:jni_headers" ]
} else {
sources += [
"logger_impl.cc",
"logger_impl.h",
"presentation/presentation_navigation_policy.cc",
"presentation/presentation_navigation_policy.h",
]
}
}
source_set("test_support") {
testonly = true
sources = [
"test/mock_media_router.cc",
"test/mock_media_router.h",
"test/mock_screen_availability_listener.cc",
"test/mock_screen_availability_listener.h",
"test/test_helper.cc",
"test/test_helper.h",
]
deps = [
"//base/test:test_support",
"//content/public/browser",
"//testing/gmock",
]
public_deps = [ ":browser" ]
}
source_set("unit_tests") {
testonly = true
sources = [
"issue_manager_unittest.cc",
"media_router_base_unittest.cc",
"media_router_dialog_controller_unittest.cc",
"media_router_metrics_unittest.cc",
"media_sinks_observer_unittest.cc",
"presentation/browser_presentation_connection_proxy_unittest.cc",
"presentation/local_presentation_manager_unittest.cc",
"presentation/presentation_media_sinks_observer_unittest.cc",
]
deps = [
":browser",
":test_support",
"//base",
"//base/test:test_support",
"//components/media_router/common:test_support",
"//content/test:test_support",
"//testing/gmock",
"//testing/gtest",
]
if (is_android) {
sources += [ "android/media_router_android_unittest.cc" ]
deps += [ "android:test_jni_headers" ]
} else {
sources += [ "logger_impl_unittest.cc" ]
}
}
|