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", |
phoglund | 37ebcf0 | 2016-01-08 05:04:57 -0800 | [diff] [blame] | 30 | "../system_wrappers:field_trial_default", |
kjellander@webrtc.org | b8caf6a | 2014-09-30 18:05:02 +0000 | [diff] [blame] | 31 | ] |
| 32 | |
kjellander@webrtc.org | 3037bc3 | 2014-09-30 19:07:58 +0000 | [diff] [blame] | 33 | configs += [ "..:common_config" ] |
Henrik Kjellander | 57e5fd2 | 2015-05-25 12:55:39 +0200 | [diff] [blame] | 34 | public_configs = [ "..:common_inherited_config" ] |
kjellander@webrtc.org | b8caf6a | 2014-09-30 18:05:02 +0000 | [diff] [blame] | 35 | } |
| 36 | |
| 37 | source_set("test_support") { |
| 38 | testonly = true |
| 39 | |
| 40 | sources = [ |
| 41 | "testsupport/fileutils.cc", |
| 42 | "testsupport/fileutils.h", |
| 43 | "testsupport/frame_reader.cc", |
| 44 | "testsupport/frame_reader.h", |
| 45 | "testsupport/frame_writer.cc", |
| 46 | "testsupport/frame_writer.h", |
kjellander | 95177d1 | 2016-04-07 00:13:58 -0700 | [diff] [blame] | 47 | "testsupport/iosfileutils.mm", |
kjellander@webrtc.org | b8caf6a | 2014-09-30 18:05:02 +0000 | [diff] [blame] | 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 = [ |
kjellander | 988d31e | 2016-02-05 00:23:50 -0800 | [diff] [blame] | 59 | "../base:gtest_prod", |
kjellander@webrtc.org | b8caf6a | 2014-09-30 18:05:02 +0000 | [diff] [blame] | 60 | "../system_wrappers", |
Peter Boström | 62e9bda | 2015-11-23 15:12:06 +0100 | [diff] [blame] | 61 | "//testing/gmock", |
| 62 | "//testing/gtest", |
kjellander@webrtc.org | b8caf6a | 2014-09-30 18:05:02 +0000 | [diff] [blame] | 63 | ] |
| 64 | |
kjellander | 95177d1 | 2016-04-07 00:13:58 -0700 | [diff] [blame] | 65 | if (is_ios) { |
| 66 | cflags = [ "-fobjc-arc" ] # CLANG_ENABLE_OBJC_ARC = YES. |
| 67 | } |
| 68 | |
kjellander@webrtc.org | b8caf6a | 2014-09-30 18:05:02 +0000 | [diff] [blame] | 69 | if (is_android) { |
kjellander@webrtc.org | b8caf6a | 2014-09-30 18:05:02 +0000 | [diff] [blame] | 70 | deps += [ "//base:base" ] |
kjellander@webrtc.org | b8caf6a | 2014-09-30 18:05:02 +0000 | [diff] [blame] | 71 | } |
| 72 | |
kjellander@webrtc.org | 3037bc3 | 2014-09-30 19:07:58 +0000 | [diff] [blame] | 73 | configs += [ "..:common_config" ] |
Henrik Kjellander | 57e5fd2 | 2015-05-25 12:55:39 +0200 | [diff] [blame] | 74 | public_configs = [ "..:common_inherited_config" ] |
kjellander@webrtc.org | b8caf6a | 2014-09-30 18:05:02 +0000 | [diff] [blame] | 75 | } |
| 76 | |
| 77 | source_set("test_support_main") { |
| 78 | testonly = true |
| 79 | |
| 80 | sources = [ |
| 81 | "run_all_unittests.cc", |
| 82 | "test_suite.cc", |
| 83 | "test_suite.h", |
| 84 | ] |
| 85 | |
| 86 | deps = [ |
| 87 | ":field_trial", |
| 88 | ":test_support", |
asapersson | 01d70a3 | 2016-05-20 06:29:46 -0700 | [diff] [blame^] | 89 | "../system_wrappers:metrics_default", |
kjellander@webrtc.org | b8caf6a | 2014-09-30 18:05:02 +0000 | [diff] [blame] | 90 | "//testing/gmock", |
| 91 | "//testing/gtest", |
| 92 | "//third_party/gflags", |
| 93 | ] |
| 94 | |
kjellander@webrtc.org | 3037bc3 | 2014-09-30 19:07:58 +0000 | [diff] [blame] | 95 | configs += [ "..:common_config" ] |
Henrik Kjellander | 57e5fd2 | 2015-05-25 12:55:39 +0200 | [diff] [blame] | 96 | public_configs = [ "..:common_inherited_config" ] |
kjellander@webrtc.org | b8caf6a | 2014-09-30 18:05:02 +0000 | [diff] [blame] | 97 | } |