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 | 5 |
6 import("//mojo/public/tools/bindings/mojom.gni") | 6 import("//mojo/public/tools/bindings/mojom.gni") |
7 import("//testing/test.gni") | 7 import("//testing/test.gni") |
8 | 8 |
9 static_library("router") { | 9 static_library("router") { |
10 deps = [ | 10 deps = [ |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 "mojo/media_router_type_converters.cc", | 76 "mojo/media_router_type_converters.cc", |
77 "mojo/media_router_type_converters.h", | 77 "mojo/media_router_type_converters.h", |
78 ] | 78 ] |
79 } | 79 } |
80 } | 80 } |
81 | 81 |
82 mojom("mojo_bindings") { | 82 mojom("mojo_bindings") { |
83 sources = [ | 83 sources = [ |
84 "mojo/media_router.mojom", | 84 "mojo/media_router.mojom", |
85 ] | 85 ] |
| 86 |
| 87 public_deps = [ |
| 88 "//mojo/common:common_custom_types", |
| 89 ] |
86 } | 90 } |
87 | 91 |
88 static_library("test_support") { | 92 static_library("test_support") { |
89 testonly = true | 93 testonly = true |
90 deps = [ | 94 deps = [ |
91 ":router", | 95 ":router", |
92 "//chrome/test:test_support", | 96 "//chrome/test:test_support", |
93 "//testing/gmock", | 97 "//testing/gmock", |
94 ] | 98 ] |
95 sources = [ | 99 sources = [ |
96 "mock_media_router.cc", | 100 "mock_media_router.cc", |
97 "mock_media_router.h", | 101 "mock_media_router.h", |
98 "mock_screen_availability_listener.cc", | 102 "mock_screen_availability_listener.cc", |
99 "mock_screen_availability_listener.h", | 103 "mock_screen_availability_listener.h", |
100 "test_helper.cc", | 104 "test_helper.cc", |
101 "test_helper.h", | 105 "test_helper.h", |
102 ] | 106 ] |
103 | 107 |
104 if (!is_android) { | 108 if (!is_android) { |
105 deps += [ | 109 deps += [ |
106 ":mojo_bindings", | 110 ":mojo_bindings", |
107 "//extensions/common", | 111 "//extensions/common", |
108 ] | 112 ] |
109 sources += [ | 113 sources += [ |
110 "mojo/media_router_mojo_test.cc", | 114 "mojo/media_router_mojo_test.cc", |
111 "mojo/media_router_mojo_test.h", | 115 "mojo/media_router_mojo_test.h", |
112 ] | 116 ] |
113 } | 117 } |
114 } | 118 } |
OLD | NEW |