OLD | NEW |
1 # Copyright 2017 The Chromium Authors. All rights reserved. | 1 # Copyright 2017 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 static_library("cast_channel") { | 5 static_library("cast_channel") { |
6 sources = [ | 6 sources = [ |
7 "cast_auth_util.cc", | |
8 "cast_auth_util.h", | |
9 "cast_channel_enum.cc", | 7 "cast_channel_enum.cc", |
10 "cast_channel_enum.h", | 8 "cast_channel_enum.h", |
11 "cast_framer.cc", | |
12 "cast_framer.h", | |
13 "cast_message_util.cc", | |
14 "cast_message_util.h", | |
15 "cast_socket.cc", | |
16 "cast_socket.h", | |
17 "cast_socket_service.cc", | |
18 "cast_socket_service.h", | |
19 "cast_socket_service_factory.cc", | |
20 "cast_socket_service_factory.h", | |
21 "cast_transport.cc", | |
22 "cast_transport.h", | |
23 "keep_alive_delegate.cc", | |
24 "keep_alive_delegate.h", | |
25 "logger.cc", | |
26 "logger.h", | |
27 ] | 9 ] |
28 deps = [ | 10 deps = [ |
29 "//base", | 11 "//base", |
30 "//components/cast_certificate", | |
31 "//components/cast_channel/proto:cast_channel_proto", | |
32 "//components/keyed_service/content", | |
33 "//components/keyed_service/core", | |
34 "//content/public/browser", | |
35 "//crypto", | |
36 "//net", | |
37 ] | 12 ] |
38 } | 13 } |
39 | |
40 static_library("test_support") { | |
41 testonly = true | |
42 sources = [ | |
43 "cast_test_util.cc", | |
44 "cast_test_util.h", | |
45 ] | |
46 deps = [ | |
47 ":cast_channel", | |
48 "//base", | |
49 "//components/cast_channel/proto:cast_channel_proto", | |
50 "//net", | |
51 "//testing/gmock", | |
52 "//testing/gtest", | |
53 ] | |
54 } | |
55 | |
56 source_set("unit_tests") { | |
57 testonly = true | |
58 sources = [ | |
59 "cast_auth_util_unittest.cc", | |
60 "cast_framer_unittest.cc", | |
61 "cast_socket_service_unittest.cc", | |
62 "cast_socket_unittest.cc", | |
63 "cast_transport_unittest.cc", | |
64 "keep_alive_delegate_unittest.cc", | |
65 "logger_unittest.cc", | |
66 ] | |
67 deps = [ | |
68 ":cast_channel", | |
69 ":test_support", | |
70 "//base/test:test_support", | |
71 "//components/cast_certificate", | |
72 "//components/cast_certificate:test_support", | |
73 "//components/cast_certificate/proto:unittest_proto", | |
74 "//components/cast_channel/proto:cast_channel_proto", | |
75 "//content/test:test_support", | |
76 "//net:test_support", | |
77 "//testing/gmock", | |
78 "//testing/gtest", | |
79 ] | |
80 } | |
OLD | NEW |