summaryrefslogtreecommitdiffstats
path: root/components/copresence/BUILD.gn
blob: 4f697fc7bbe803f1d8adb687d517b69023ba2977 (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
76
77
78
79
80
81
82
83
84
85
86
87
# Copyright 2014 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.

source_set("copresence") {
  sources = [
    "copresence_manager_impl.cc",
    "copresence_state_impl.cc",
    "copresence_state_impl.h",
    "copresence_switches.cc",
    "copresence_switches.h",
    "handlers/audio/audio_directive_handler.h",
    "handlers/audio/audio_directive_handler_impl.cc",
    "handlers/audio/audio_directive_handler_impl.h",
    "handlers/audio/audio_directive_list.cc",
    "handlers/audio/audio_directive_list.h",
    "handlers/audio/tick_clock_ref_counted.cc",
    "handlers/audio/tick_clock_ref_counted.h",
    "handlers/directive_handler.h",
    "handlers/directive_handler_impl.cc",
    "handlers/directive_handler_impl.h",
    "handlers/gcm_handler.h",
    "handlers/gcm_handler_impl.cc",
    "handlers/gcm_handler_impl.h",
    "public/copresence_constants.h",
    "public/copresence_delegate.h",
    "public/copresence_manager.h",
    "public/copresence_observer.h",
    "public/copresence_state.h",
    "rpc/http_post.cc",
    "rpc/http_post.h",
    "rpc/rpc_handler.cc",
    "rpc/rpc_handler.h",
    "timed_map.h",
    "tokens.cc",
    "tokens.h",
  ]

  deps = [
    "//base",
    "//components/audio_modem",
    "//components/copresence/proto",
    "//components/gcm_driver",
    "//google_apis",
    "//media",
    "//media:shared_memory_support",
    "//net",
  ]
}

source_set("test_support") {
  testonly = true
  sources = [
    "test/fake_directive_handler.cc",
    "test/fake_directive_handler.h",
  ]
  public_deps = [
    ":copresence",
    "//base",
    "//components/copresence/proto",
  ]
}

source_set("unit_tests") {
  testonly = true
  sources = [
    "copresence_state_unittest.cc",
    "handlers/audio/audio_directive_handler_unittest.cc",
    "handlers/audio/audio_directive_list_unittest.cc",
    "handlers/directive_handler_unittest.cc",
    "handlers/gcm_handler_unittest.cc",
    "rpc/http_post_unittest.cc",
    "rpc/rpc_handler_unittest.cc",
    "timed_map_unittest.cc",
  ]
  deps = [
    ":test_support",
    "//base",
    "//base/test:test_support",
    "//components/audio_modem:test_support",
    "//components/copresence/proto",
    "//components/gcm_driver:test_support",
    "//net:test_support",
    "//testing/gmock",
    "//testing/gtest",
  ]
}