OLD | NEW |
1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 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("//third_party/protobuf/proto_library.gni") | 6 import("//third_party/protobuf/proto_library.gni") |
6 import("//testing/test.gni") | |
7 | 7 |
8 proto_library("media_remoting_proto") { | 8 proto_library("media_remoting_proto") { |
9 proto_out_dir = "media/remoting" | 9 proto_out_dir = "media/remoting" |
10 sources = [ | 10 sources = [ |
11 "proto/remoting_rpc_message.proto", | 11 "proto/remoting_rpc_message.proto", |
12 ] | 12 ] |
13 } | 13 } |
14 | 14 |
15 source_set("rpc") { | 15 source_set("rpc") { |
16 sources = [ | 16 sources = [ |
17 "rpc/proto_enum_utils.cc", | 17 "rpc/proto_enum_utils.cc", |
18 "rpc/proto_enum_utils.h", | 18 "rpc/proto_enum_utils.h", |
19 "rpc/proto_utils.cc", | 19 "rpc/proto_utils.cc", |
20 "rpc/proto_utils.h", | 20 "rpc/proto_utils.h", |
21 ] | 21 ] |
22 | 22 |
23 deps = [ | 23 deps = [ |
24 "//base", | 24 "//base", |
25 ] | 25 ] |
26 | 26 |
27 public_deps = [ | 27 public_deps = [ |
28 ":media_remoting_proto", | 28 ":media_remoting_proto", |
29 ] | 29 ] |
30 } | 30 } |
31 | 31 |
| 32 source_set("remoting") { |
| 33 sources = [ |
| 34 "remoting_controller.cc", |
| 35 "remoting_controller.h", |
| 36 "remoting_renderer_factory.cc", |
| 37 "remoting_renderer_factory.h", |
| 38 ] |
| 39 deps = [ |
| 40 "//base", |
| 41 "//media", |
| 42 "//media/mojo/interfaces:remoting", |
| 43 ] |
| 44 } |
| 45 |
32 test("media_remoting_unittests") { | 46 test("media_remoting_unittests") { |
33 sources = [ | 47 sources = [ |
| 48 "remoting_controller_unittest.cc", |
34 "rpc/proto_utils_unittest.cc", | 49 "rpc/proto_utils_unittest.cc", |
35 ] | 50 ] |
36 | 51 |
37 deps = [ | 52 deps = [ |
| 53 ":remoting", |
38 ":rpc", | 54 ":rpc", |
39 "//base", | 55 "//base", |
40 "//base/test:run_all_unittests", | |
41 "//base/test:test_support", | 56 "//base/test:test_support", |
42 "//media", | 57 "//media", |
| 58 "//media/mojo/interfaces:remoting", |
| 59 "//mojo/edk/test:run_all_unittests", |
43 "//testing/gmock", | 60 "//testing/gmock", |
44 "//testing/gtest", | 61 "//testing/gtest", |
45 "//ui/gfx:test_support", | 62 "//ui/gfx:test_support", |
46 "//ui/gfx/geometry", | 63 "//ui/gfx/geometry", |
47 ] | 64 ] |
48 } | 65 } |
OLD | NEW |