summaryrefslogtreecommitdiffstats
path: root/blimp/net/BUILD.gn
blob: 86e379aff05da52f182c8722b2543ff9c5ab2a53 (plain)
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
# 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_demultiplexer.cc",
    "blimp_message_demultiplexer.h",
    "blimp_message_output_buffer.cc",
    "blimp_message_output_buffer.h",
    "blimp_message_processor.h",
    "blimp_message_receiver.h",
    "blimp_net_export.h",
    "blimp_transport.h",
    "client_connection_manager.cc",
    "client_connection_manager.h",
    "common.cc",
    "common.h",
    "connection_handler.h",
    "engine_connection_manager.cc",
    "engine_connection_manager.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",
  ]

  defines = [ "BLIMP_NET_IMPLEMENTATION=1" ]

  deps = [
    "//base",
    "//blimp/common/proto",
    "//net",
  ]
}

source_set("unit_tests") {
  testonly = true

  sources = [
    "blimp_message_demultiplexer_unittest.cc",
    "stream_packet_reader_unittest.cc",
    "stream_packet_writer_unittest.cc",
    "test_common.cc",
    "test_common.h",
  ]

  deps = [
    ":blimp_net",
    "//base",
    "//base/test:run_all_unittests",
    "//base/test:test_support",
    "//blimp/common/proto",
    "//net:test_support",
    "//testing/gmock",
    "//testing/gtest",
  ]
}