1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
|
# Copyright 2015 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.
component("blimp_net") {
sources = [
"blimp_connection.cc",
"blimp_connection.h",
"blimp_message_checkpoint_observer.h",
"blimp_message_checkpointer.cc",
"blimp_message_checkpointer.h",
"blimp_message_demultiplexer.cc",
"blimp_message_demultiplexer.h",
"blimp_message_multiplexer.cc",
"blimp_message_multiplexer.h",
"blimp_message_output_buffer.cc",
"blimp_message_output_buffer.h",
"blimp_message_processor.h",
"blimp_message_pump.cc",
"blimp_message_pump.h",
"blimp_message_thread_pipe.cc",
"blimp_message_thread_pipe.h",
"blimp_net_export.h",
"blimp_transport.h",
"browser_connection_handler.cc",
"browser_connection_handler.h",
"client_connection_manager.cc",
"client_connection_manager.h",
"common.cc",
"common.h",
"connection_error_observer.h",
"connection_handler.h",
"engine_authentication_handler.cc",
"engine_authentication_handler.h",
"engine_connection_manager.cc",
"engine_connection_manager.h",
"input_message_converter.cc",
"input_message_converter.h",
"input_message_generator.cc",
"input_message_generator.h",
"null_blimp_message_processor.cc",
"null_blimp_message_processor.h",
"stream_packet_reader.cc",
"stream_packet_reader.h",
"stream_packet_writer.cc",
"stream_packet_writer.h",
"stream_socket_connection.cc",
"stream_socket_connection.h",
"tcp_client_transport.cc",
"tcp_client_transport.h",
"tcp_engine_transport.cc",
"tcp_engine_transport.h",
]
defines = [ "BLIMP_NET_IMPLEMENTATION=1" ]
deps = [
"//base",
"//blimp/common:blimp_common",
"//blimp/common/proto",
"//net",
]
}
source_set("test_support") {
testonly = true
sources = [
"test_common.cc",
"test_common.h",
]
deps = [
":blimp_net",
"//blimp/common/proto",
"//net:test_support",
"//testing/gmock",
]
}
source_set("unit_tests") {
testonly = true
sources = [
"blimp_connection_unittest.cc",
"blimp_message_checkpointer_unittest.cc",
"blimp_message_demultiplexer_unittest.cc",
"blimp_message_multiplexer_unittest.cc",
"blimp_message_output_buffer_unittest.cc",
"blimp_message_pump_unittest.cc",
"blimp_message_thread_pipe_unittest.cc",
"browser_connection_handler_unittest.cc",
"client_connection_manager_unittest.cc",
"engine_authentication_handler_unittest.cc",
"engine_connection_manager_unittest.cc",
"input_message_unittest.cc",
"stream_packet_reader_unittest.cc",
"stream_packet_writer_unittest.cc",
"tcp_transport_unittest.cc",
]
deps = [
":blimp_net",
":test_support",
"//base",
"//base/test:run_all_unittests",
"//base/test:test_support",
"//blimp/common:blimp_common",
"//blimp/common/proto",
"//net:test_support",
"//testing/gmock",
"//testing/gtest",
]
}
|