| 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 import("//testing/test.gni") | 5 import("//testing/test.gni") |
| 6 import("//third_party/mojo/src/mojo/public/tools/bindings/mojom.gni") | 6 import("//third_party/mojo/src/mojo/public/tools/bindings/mojom.gni") |
| 7 | 7 |
| 8 source_set("router") { | 8 source_set("router") { |
| 9 deps = [ | 9 deps = [ |
| 10 ":router_core", | 10 ":router_core", |
| 11 ":keyed_service_factories", | |
| 12 ] | 11 ] |
| 13 } | 12 } |
| 14 | 13 |
| 15 source_set("router_core") { | 14 source_set("router_core") { |
| 16 deps = [ | 15 deps = [ |
| 17 ":mojo_bindings", | 16 ":mojo_bindings", |
| 18 "//base", | 17 "//base", |
| 19 "//components/keyed_service/core", | 18 "//components/keyed_service/core", |
| 20 "//third_party/mojo/src/mojo/public/cpp/bindings", | 19 "//third_party/mojo/src/mojo/public/cpp/bindings", |
| 21 "//url", | 20 "//url", |
| 22 ] | 21 ] |
| 23 sources = [ | 22 sources = [ |
| 24 "create_session_request.cc", | 23 "create_session_request.cc", |
| 25 "create_session_request.h", | 24 "create_session_request.h", |
| 26 "issue.cc", | 25 "issue.cc", |
| 27 "issue.h", | 26 "issue.h", |
| 28 "issue_manager.cc", | 27 "issue_manager.cc", |
| 29 "issue_manager.h", | 28 "issue_manager.h", |
| 30 "issues_observer.h", | 29 "issues_observer.h", |
| 31 "media_route.cc", | 30 "media_route.cc", |
| 32 "media_route.h", | 31 "media_route.h", |
| 33 "media_route_id.h", | 32 "media_route_id.h", |
| 34 "media_router.h", | 33 "media_router.h", |
| 35 "media_router_impl.cc", | |
| 36 "media_router_impl.h", | |
| 37 "media_router_type_converters.cc", | 34 "media_router_type_converters.cc", |
| 38 "media_router_type_converters.h", | 35 "media_router_type_converters.h", |
| 39 "media_routes_observer.cc", | 36 "media_routes_observer.cc", |
| 40 "media_routes_observer.h", | 37 "media_routes_observer.h", |
| 41 "media_sink.cc", | 38 "media_sink.cc", |
| 42 "media_sink.h", | 39 "media_sink.h", |
| 43 "media_sinks_observer.cc", | 40 "media_sinks_observer.cc", |
| 44 "media_sinks_observer.h", | 41 "media_sinks_observer.h", |
| 45 "media_source.cc", | 42 "media_source.cc", |
| 46 "media_source.h", | 43 "media_source.h", |
| 47 "media_source_helper.cc", | 44 "media_source_helper.cc", |
| 48 "media_source_helper.h", | 45 "media_source_helper.h", |
| 49 "presentation_media_sinks_observer.cc", | 46 "presentation_media_sinks_observer.cc", |
| 50 "presentation_media_sinks_observer.h", | 47 "presentation_media_sinks_observer.h", |
| 51 "route_id_manager.cc", | 48 "route_id_manager.cc", |
| 52 "route_id_manager.h", | 49 "route_id_manager.h", |
| 53 ] | 50 ] |
| 54 } | 51 } |
| 55 | 52 |
| 56 source_set("keyed_service_factories") { | |
| 57 deps = [ | |
| 58 ":router_core", | |
| 59 "//components/keyed_service/content", | |
| 60 ] | |
| 61 sources = [ | |
| 62 "media_router_impl_factory.cc", | |
| 63 "media_router_impl_factory.h", | |
| 64 ] | |
| 65 } | |
| 66 | |
| 67 source_set("unit_tests") { | 53 source_set("unit_tests") { |
| 68 testonly = true | 54 testonly = true |
| 69 deps = [ | 55 deps = [ |
| 70 ":router_core", | 56 ":router_core", |
| 71 ":unit_tests_support", | 57 ":unit_tests_support", |
| 72 "//base/test:test_support", | 58 "//base/test:test_support", |
| 73 "//chrome/test:test_support", | 59 "//chrome/test:test_support", |
| 74 "//testing/gmock", | 60 "//testing/gmock", |
| 75 "//testing/gtest", | 61 "//testing/gtest", |
| 76 "//third_party/mojo/src/mojo/public/cpp/bindings", | 62 "//third_party/mojo/src/mojo/public/cpp/bindings", |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 # Optional standalone test binary, for faster isolated builds. | 94 # Optional standalone test binary, for faster isolated builds. |
| 109 test("unit_tests_main") { | 95 test("unit_tests_main") { |
| 110 deps = [ | 96 deps = [ |
| 111 ":unit_tests", | 97 ":unit_tests", |
| 112 "//testing/gmock:gmock_main", | 98 "//testing/gmock:gmock_main", |
| 113 ] | 99 ] |
| 114 sources = [ | 100 sources = [ |
| 115 ":unittest_files", | 101 ":unittest_files", |
| 116 ] | 102 ] |
| 117 } | 103 } |
| OLD | NEW |