summaryrefslogtreecommitdiffstats
path: root/blimp/net/BUILD.gn
blob: b4d23751004ce22f68e5a629cc8d90da6b232fba (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
# 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_dispatcher.cc",
    "blimp_message_dispatcher.h",
    "blimp_message_receiver.h",
    "blimp_net_export.h",
    "common.cc",
    "common.h",
    "packet_reader.cc",
    "packet_reader.h",
    "packet_writer.cc",
    "packet_writer.h",
  ]

  defines = [ "BLIMP_NET_IMPLEMENTATION=1" ]

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

source_set("unit_tests") {
  testonly = true

  sources = [
    "blimp_message_dispatcher_unittest.cc",
    "packet_reader_unittest.cc",
    "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",
  ]
}