blob: 83cd882d109fbd178b84bb1922a7ef955e5f3d92 [file] [log] [blame]
ckehoea9408e142015-02-17 20:05:241# Copyright 2015 The Chromium Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
brettw0741cb1c2015-08-21 22:06:005source_set("audio_modem") {
ckehoea9408e142015-02-17 20:05:246 sources = [
scottmg7c7296f42015-02-28 02:23:097 "audio_modem_switches.cc",
8 "audio_modem_switches.h",
ckehoea9408e142015-02-17 20:05:249 "audio_player.h",
10 "audio_player_impl.cc",
11 "audio_player_impl.h",
12 "audio_recorder.h",
13 "audio_recorder_impl.cc",
14 "audio_recorder_impl.h",
15 "constants.cc",
16 "modem_impl.cc",
17 "modem_impl.h",
brettw41ac3412015-10-22 07:35:3018 "public/audio_modem_types.h",
19 "public/modem.h",
20 "public/whispernet_client.h",
ckehoea9408e142015-02-17 20:05:2421 ]
22
23 deps = [
24 "//base",
brettw41ac3412015-10-22 07:35:3025 "//content/public/browser",
ckehoea9408e142015-02-17 20:05:2426 "//media",
brettw03b41ba2015-08-19 19:53:1727 "//media:shared_memory_support",
ckehoea9408e142015-02-17 20:05:2428 "//third_party/webrtc/common_audio",
29 ]
30}
Charlie Kehoed5f5d112015-02-20 00:44:3431
tfarina4df99d32015-07-22 17:58:4132source_set("test_support") {
brettw0741cb1c2015-08-21 22:06:0033 testonly = true
Charlie Kehoed5f5d112015-02-20 00:44:3434 sources = [
35 "test/random_samples.cc",
36 "test/random_samples.h",
37 "test/stub_modem.cc",
38 "test/stub_modem.h",
39 "test/stub_whispernet_client.cc",
40 "test/stub_whispernet_client.h",
41 ]
42
brettw0741cb1c2015-08-21 22:06:0043 public_deps = [
44 ":audio_modem",
45 ]
Charlie Kehoed5f5d112015-02-20 00:44:3446 deps = [
47 "//base",
48 "//media",
brettw41ac3412015-10-22 07:35:3049 "//media:shared_memory_support",
Charlie Kehoed5f5d112015-02-20 00:44:3450 ]
51}
brettw0741cb1c2015-08-21 22:06:0052
53source_set("unit_tests") {
54 testonly = true
55 sources = [
56 "audio_player_unittest.cc",
57 "audio_recorder_unittest.cc",
58 "modem_unittest.cc",
59 ]
60
61 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
62
63 deps = [
64 ":test_support",
brettw41ac3412015-10-22 07:35:3065 "//base",
alokp1f499672016-04-19 15:26:2866 "//base/test:test_support",
brettw41ac3412015-10-22 07:35:3067 "//content/test:test_support",
68 "//media",
69 "//media:shared_memory_support",
brettw0741cb1c2015-08-21 22:06:0070 "//testing/gtest",
71 ]
72}