summaryrefslogtreecommitdiff
path: root/chromium/components/audio_modem/BUILD.gn
blob: d14a7b3eb87d744d40ec10757ca8fba1eb02b97b (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
# 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.

source_set("audio_modem") {
  sources = [
    "audio_modem_switches.cc",
    "audio_modem_switches.h",
    "audio_player.h",
    "audio_player_impl.cc",
    "audio_player_impl.h",
    "audio_recorder.h",
    "audio_recorder_impl.cc",
    "audio_recorder_impl.h",
    "constants.cc",
    "modem_impl.cc",
    "modem_impl.h",
    "public/audio_modem_types.h",
    "public/modem.h",
    "public/whispernet_client.h",
  ]

  deps = [
    "//base",
    "//content/public/browser",
    "//media",
    "//media:shared_memory_support",
    "//third_party/webrtc/common_audio",
  ]
}

source_set("test_support") {
  testonly = true
  sources = [
    "test/random_samples.cc",
    "test/random_samples.h",
    "test/stub_modem.cc",
    "test/stub_modem.h",
    "test/stub_whispernet_client.cc",
    "test/stub_whispernet_client.h",
  ]

  public_deps = [
    ":audio_modem",
  ]
  deps = [
    "//base",
    "//media",
    "//media:shared_memory_support",
  ]
}

source_set("unit_tests") {
  testonly = true
  sources = [
    "audio_player_unittest.cc",
    "audio_recorder_unittest.cc",
    "modem_unittest.cc",
  ]

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

  deps = [
    ":test_support",
    "//base",
    "//content/test:test_support",
    "//media",
    "//media:shared_memory_support",
    "//testing/gtest",
  ]
}