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 ] | 76 ] |
77 } | 77 } |
78 } | 78 } |
79 | 79 |
80 mojom("mojo_bindings") { | 80 mojom("mojo_bindings") { |
81 sources = [ | 81 sources = [ |
82 "mojo/media_router.mojom", | 82 "mojo/media_router.mojom", |
83 ] | 83 ] |
84 } | 84 } |
85 | 85 |
86 source_set("test_support") { | 86 static_library("test_support") { |
87 testonly = true | 87 testonly = true |
88 deps = [ | 88 deps = [ |
89 ":router", | 89 ":router", |
90 "//chrome/test:test_support", | 90 "//chrome/test:test_support", |
91 "//testing/gmock", | 91 "//testing/gmock", |
92 ] | 92 ] |
93 sources = [ | 93 sources = [ |
94 "mock_media_router.cc", | 94 "mock_media_router.cc", |
95 "mock_media_router.h", | 95 "mock_media_router.h", |
96 "mock_screen_availability_listener.cc", | 96 "mock_screen_availability_listener.cc", |
97 "mock_screen_availability_listener.h", | 97 "mock_screen_availability_listener.h", |
98 "test_helper.cc", | 98 "test_helper.cc", |
99 "test_helper.h", | 99 "test_helper.h", |
100 ] | 100 ] |
101 | 101 |
102 if (!is_android) { | 102 if (!is_android) { |
103 deps += [ | 103 deps += [ |
104 ":mojo_bindings", | 104 ":mojo_bindings", |
105 "//extensions/common", | 105 "//extensions/common", |
106 ] | 106 ] |
107 sources += [ | 107 sources += [ |
108 "mojo/media_router_mojo_test.cc", | 108 "mojo/media_router_mojo_test.cc", |
109 "mojo/media_router_mojo_test.h", | 109 "mojo/media_router_mojo_test.h", |
110 ] | 110 ] |
111 } | 111 } |
112 } | 112 } |
OLD | NEW |