blob: fa251d66f05279dc8ac1d9866348fcdce6656c10 [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",
30 ]
31
kjellander@webrtc.org3037bc32014-09-30 19:07:58 +000032 configs += [ "..:common_config" ]
33 public_configs = [ "..:common_inherited_config"]
kjellander@webrtc.orgb8caf6a2014-09-30 18:05:02 +000034}
35
36source_set("test_support") {
37 testonly = true
38
39 sources = [
40 "testsupport/fileutils.cc",
41 "testsupport/fileutils.h",
42 "testsupport/frame_reader.cc",
43 "testsupport/frame_reader.h",
44 "testsupport/frame_writer.cc",
45 "testsupport/frame_writer.h",
46 "testsupport/gtest_prod_util.h",
47 "testsupport/gtest_disable.h",
48 "testsupport/mock/mock_frame_reader.h",
49 "testsupport/mock/mock_frame_writer.h",
50 "testsupport/packet_reader.cc",
51 "testsupport/packet_reader.h",
52 "testsupport/perf_test.cc",
53 "testsupport/perf_test.h",
54 "testsupport/trace_to_stderr.cc",
55 "testsupport/trace_to_stderr.h",
56 ]
57
58 deps = [
59 "//testing/gmock",
60 "//testing/gtest",
61 "../system_wrappers",
62 ]
63
64 if (is_android) {
kjellander@webrtc.orgb8caf6a2014-09-30 18:05:02 +000065 deps += [ "//base:base" ]
kjellander@webrtc.orgb8caf6a2014-09-30 18:05:02 +000066 }
67
kjellander@webrtc.org3037bc32014-09-30 19:07:58 +000068 configs += [ "..:common_config" ]
69 public_configs = [ "..:common_inherited_config"]
kjellander@webrtc.orgb8caf6a2014-09-30 18:05:02 +000070}
71
72source_set("test_support_main") {
73 testonly = true
74
75 sources = [
76 "run_all_unittests.cc",
77 "test_suite.cc",
78 "test_suite.h",
79 ]
80
81 deps = [
82 ":field_trial",
83 ":test_support",
asapersson@webrtc.org580d3672014-10-23 12:57:56 +000084 "../system_wrappers:metrics_default",
kjellander@webrtc.orgb8caf6a2014-09-30 18:05:02 +000085 "//testing/gmock",
86 "//testing/gtest",
87 "//third_party/gflags",
88 ]
89
kjellander@webrtc.org3037bc32014-09-30 19:07:58 +000090 configs += [ "..:common_config" ]
91 public_configs = [ "..:common_inherited_config"]
kjellander@webrtc.orgb8caf6a2014-09-30 18:05:02 +000092}