summaryrefslogtreecommitdiffstats
path: root/remoting/signaling/BUILD.gn
blob: db2cf9820bed6189fd51f6ca67032f115e66325f (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
66
67
68
69
70
71
72
73
74
75
# 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.

import("//remoting/remoting_srcs.gni")

source_set("signaling") {
  sources = rebase_path(remoting_srcs_gypi_values.remoting_signaling_sources,
                        ".",
                        "//remoting")

  configs += [
    "//build/config/compiler:no_size_t_to_int_warning",
    "//build/config/compiler:wexit_time_destructors",
  ]

  public_deps = [
    "//remoting/proto",
    "//third_party/libjingle",
  ]

  deps = [
    "//base",
    "//crypto",
    "//jingle:jingle_glue",
    "//net",
    "//remoting/base",
  ]

  if (is_nacl) {
    sources -= [
      "log_to_server.cc",
      "server_log_entry.cc",
      "xmpp_signal_strategy.cc",
    ]
  }
}

source_set("test_support") {
  testonly = true

  sources = [
    "fake_signal_strategy.cc",
    "fake_signal_strategy.h",
    "mock_signal_strategy.cc",
    "mock_signal_strategy.h",
  ]

  public_deps = [
    ":signaling",
    "//testing/gmock",
  ]
}

source_set("unit_tests") {
  testonly = true

  sources = [
    "iq_sender_unittest.cc",
    "jid_util_unittest.cc",
    "log_to_server_unittest.cc",
    "push_notification_subscriber_unittest.cc",
    "server_log_entry_unittest.cc",
    "server_log_entry_unittest.h",
    "xmpp_login_handler_unittest.cc",
    "xmpp_signal_strategy_unittest.cc",
    "xmpp_stream_parser_unittest.cc",
  ]

  deps = [
    ":test_support",
    "//testing/gmock",
    "//testing/gtest",
  ]
}