kjellander@webrtc.org | b8caf6a | 2014-09-30 18:05:02 +0000 | [diff] [blame] | 1 | # 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 | |
| 11 | source_set("test") { |
| 12 | testonly = true |
| 13 | |
| 14 | deps = [ |
| 15 | ":field_trial", |
| 16 | ":test_support", |
| 17 | ":test_support_main", |
| 18 | ] |
| 19 | } |
| 20 | |
| 21 | source_set("field_trial") { |
| 22 | sources = [ |
| 23 | "field_trial.cc", |
| 24 | "field_trial.h", |
| 25 | ] |
| 26 | |
| 27 | deps = [ |
kwiberg@webrtc.org | ac2d27d | 2015-02-26 13:59:22 +0000 | [diff] [blame] | 28 | "..:webrtc_common", |
kjellander@webrtc.org | b8caf6a | 2014-09-30 18:05:02 +0000 | [diff] [blame] | 29 | "../system_wrappers", |
| 30 | ] |
| 31 | |
kjellander@webrtc.org | 3037bc3 | 2014-09-30 19:07:58 +0000 | [diff] [blame] | 32 | configs += [ "..:common_config" ] |
| 33 | public_configs = [ "..:common_inherited_config"] |
kjellander@webrtc.org | b8caf6a | 2014-09-30 18:05:02 +0000 | [diff] [blame] | 34 | } |
| 35 | |
| 36 | source_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.org | b8caf6a | 2014-09-30 18:05:02 +0000 | [diff] [blame] | 65 | deps += [ "//base:base" ] |
kjellander@webrtc.org | b8caf6a | 2014-09-30 18:05:02 +0000 | [diff] [blame] | 66 | } |
| 67 | |
kjellander@webrtc.org | 3037bc3 | 2014-09-30 19:07:58 +0000 | [diff] [blame] | 68 | configs += [ "..:common_config" ] |
| 69 | public_configs = [ "..:common_inherited_config"] |
kjellander@webrtc.org | b8caf6a | 2014-09-30 18:05:02 +0000 | [diff] [blame] | 70 | } |
| 71 | |
| 72 | source_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.org | 580d367 | 2014-10-23 12:57:56 +0000 | [diff] [blame] | 84 | "../system_wrappers:metrics_default", |
kjellander@webrtc.org | b8caf6a | 2014-09-30 18:05:02 +0000 | [diff] [blame] | 85 | "//testing/gmock", |
| 86 | "//testing/gtest", |
| 87 | "//third_party/gflags", |
| 88 | ] |
| 89 | |
kjellander@webrtc.org | 3037bc3 | 2014-09-30 19:07:58 +0000 | [diff] [blame] | 90 | configs += [ "..:common_config" ] |
| 91 | public_configs = [ "..:common_inherited_config"] |
kjellander@webrtc.org | b8caf6a | 2014-09-30 18:05:02 +0000 | [diff] [blame] | 92 | } |