# Copyright 2016 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. import("//testing/test.gni") import("//third_party/protobuf/proto_library.gni") proto_library("media_remoting_proto") { proto_out_dir = "media/remoting" sources = [ "rpc.proto", ] } # This target is separate from "remoting" because this code is shared by the # receiver implementation (currently outside of the Chromium project). source_set("rpc") { sources = [ "proto_enum_utils.cc", "proto_enum_utils.h", "proto_utils.cc", "proto_utils.h", "rpc_broker.cc", "rpc_broker.h", ] deps = [ "//base", "//media", ] public_deps = [ ":media_remoting_proto", ] } source_set("remoting") { sources = [ "adaptive_renderer_factory.cc", "adaptive_renderer_factory.h", "courier_renderer.cc", "courier_renderer.h", "demuxer_stream_adapter.cc", "demuxer_stream_adapter.h", "interstitial.cc", "interstitial.h", "metrics.cc", "metrics.h", "remoting_cdm.cc", "remoting_cdm.h", "remoting_cdm_context.cc", "remoting_cdm_context.h", "remoting_cdm_controller.cc", "remoting_cdm_controller.h", "remoting_cdm_factory.cc", "remoting_cdm_factory.h", "renderer_controller.cc", "renderer_controller.h", "shared_session.cc", "shared_session.h", "sink_availability_observer.cc", "sink_availability_observer.h", "triggers.h", ] deps = [ ":rpc", "//base", "//media", "//media/mojo/interfaces:remoting", "//mojo/public/cpp/bindings", "//skia", "//ui/gfx", "//ui/vector_icons", ] } source_set("media_remoting_tests") { testonly = true sources = [ "courier_renderer_unittest.cc", "demuxer_stream_adapter_unittest.cc", "fake_media_resource.cc", "fake_media_resource.h", "fake_remoter.cc", "fake_remoter.h", "proto_utils_unittest.cc", "renderer_controller_unittest.cc", "rpc_broker_unittest.cc", ] deps = [ ":remoting", ":rpc", "//base", "//base/test:test_support", "//media", "//media/base:test_support", "//media/mojo/interfaces:remoting", "//testing/gmock", "//testing/gtest", "//ui/gfx:test_support", "//ui/gfx/geometry", "//url", ] } test("media_remoting_unittests") { deps = [ ":media_remoting_tests", "//media/test:run_all_unittests", ] }