blob: af9516f43426c54a3eada81e3fcfc7c7e57dd8f5 [file] [log] [blame]
kjellander@webrtc.orgb8caf6a2014-09-30 18:05:02 +00001# Copyright (c) 2014 The WebRTC project authors. All Rights Reserved.
2#
3# Use of this source code is governed by a BSD-style license
4# that can be found in the LICENSE file in the root of the source
5# tree. An additional intellectual property rights grant can be found
6# in the file PATENTS. All contributing project authors may
7# be found in the AUTHORS file in the root of the source tree.
8
9# TODO(kjellander): Convert the rest of the test.gyp targets and put here.
10
11source_set("test") {
12 testonly = true
13
14 deps = [
15 ":field_trial",
16 ":test_support",
17 ":test_support_main",
18 ]
19}
20
21source_set("field_trial") {
22 sources = [
23 "field_trial.cc",
24 "field_trial.h",
25 ]
26
27 deps = [
kwiberg@webrtc.orgac2d27d2015-02-26 13:59:22 +000028 "..:webrtc_common",
kjellander@webrtc.orgb8caf6a2014-09-30 18:05:02 +000029 "../system_wrappers",
phoglund37ebcf02016-01-08 05:04:57 -080030 "../system_wrappers:field_trial_default",
kjellander@webrtc.orgb8caf6a2014-09-30 18:05:02 +000031 ]
32
kjellander@webrtc.org3037bc32014-09-30 19:07:58 +000033 configs += [ "..:common_config" ]
Henrik Kjellander57e5fd22015-05-25 12:55:39 +020034 public_configs = [ "..:common_inherited_config" ]
kjellander@webrtc.orgb8caf6a2014-09-30 18:05:02 +000035}
36
Åsa Persson352b2d72015-04-15 18:00:40 +020037source_set("histogram") {
38 sources = [
39 "histogram.cc",
40 "histogram.h",
41 ]
42
43 deps = [
44 "..:webrtc_common",
45 "../system_wrappers",
46 ]
47
48 configs += [ "..:common_config" ]
Henrik Kjellander57e5fd22015-05-25 12:55:39 +020049 public_configs = [ "..:common_inherited_config" ]
Åsa Persson352b2d72015-04-15 18:00:40 +020050}
51
kjellander@webrtc.orgb8caf6a2014-09-30 18:05:02 +000052source_set("test_support") {
53 testonly = true
54
55 sources = [
56 "testsupport/fileutils.cc",
57 "testsupport/fileutils.h",
58 "testsupport/frame_reader.cc",
59 "testsupport/frame_reader.h",
60 "testsupport/frame_writer.cc",
61 "testsupport/frame_writer.h",
kjellander95177d12016-04-07 00:13:58 -070062 "testsupport/iosfileutils.mm",
kjellander@webrtc.orgb8caf6a2014-09-30 18:05:02 +000063 "testsupport/mock/mock_frame_reader.h",
64 "testsupport/mock/mock_frame_writer.h",
65 "testsupport/packet_reader.cc",
66 "testsupport/packet_reader.h",
67 "testsupport/perf_test.cc",
68 "testsupport/perf_test.h",
69 "testsupport/trace_to_stderr.cc",
70 "testsupport/trace_to_stderr.h",
71 ]
72
73 deps = [
kjellander988d31e2016-02-05 00:23:50 -080074 "../base:gtest_prod",
kjellander@webrtc.orgb8caf6a2014-09-30 18:05:02 +000075 "../system_wrappers",
Peter Boström62e9bda2015-11-23 15:12:06 +010076 "//testing/gmock",
77 "//testing/gtest",
kjellander@webrtc.orgb8caf6a2014-09-30 18:05:02 +000078 ]
79
kjellander95177d12016-04-07 00:13:58 -070080 if (is_ios) {
81 cflags = [ "-fobjc-arc" ] # CLANG_ENABLE_OBJC_ARC = YES.
82 }
83
kjellander@webrtc.orgb8caf6a2014-09-30 18:05:02 +000084 if (is_android) {
kjellander@webrtc.orgb8caf6a2014-09-30 18:05:02 +000085 deps += [ "//base:base" ]
kjellander@webrtc.orgb8caf6a2014-09-30 18:05:02 +000086 }
87
kjellander@webrtc.org3037bc32014-09-30 19:07:58 +000088 configs += [ "..:common_config" ]
Henrik Kjellander57e5fd22015-05-25 12:55:39 +020089 public_configs = [ "..:common_inherited_config" ]
kjellander@webrtc.orgb8caf6a2014-09-30 18:05:02 +000090}
91
92source_set("test_support_main") {
93 testonly = true
94
95 sources = [
96 "run_all_unittests.cc",
97 "test_suite.cc",
98 "test_suite.h",
99 ]
100
101 deps = [
102 ":field_trial",
Åsa Persson352b2d72015-04-15 18:00:40 +0200103 ":histogram",
kjellander@webrtc.orgb8caf6a2014-09-30 18:05:02 +0000104 ":test_support",
105 "//testing/gmock",
106 "//testing/gtest",
107 "//third_party/gflags",
108 ]
109
kjellander@webrtc.org3037bc32014-09-30 19:07:58 +0000110 configs += [ "..:common_config" ]
Henrik Kjellander57e5fd22015-05-25 12:55:39 +0200111 public_configs = [ "..:common_inherited_config" ]
kjellander@webrtc.orgb8caf6a2014-09-30 18:05:02 +0000112}