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" ] |
Henrik Kjellander | 57e5fd2 | 2015-05-25 12:55:39 +0200 | [diff] [blame^] | 33 | public_configs = [ "..:common_inherited_config" ] |
kjellander@webrtc.org | b8caf6a | 2014-09-30 18:05:02 +0000 | [diff] [blame] | 34 | } |
| 35 | |
Åsa Persson | 352b2d7 | 2015-04-15 18:00:40 +0200 | [diff] [blame] | 36 | source_set("histogram") { |
| 37 | sources = [ |
| 38 | "histogram.cc", |
| 39 | "histogram.h", |
| 40 | ] |
| 41 | |
| 42 | deps = [ |
| 43 | "..:webrtc_common", |
| 44 | "../system_wrappers", |
| 45 | ] |
| 46 | |
| 47 | configs += [ "..:common_config" ] |
Henrik Kjellander | 57e5fd2 | 2015-05-25 12:55:39 +0200 | [diff] [blame^] | 48 | public_configs = [ "..:common_inherited_config" ] |
Åsa Persson | 352b2d7 | 2015-04-15 18:00:40 +0200 | [diff] [blame] | 49 | } |
| 50 | |
kjellander@webrtc.org | b8caf6a | 2014-09-30 18:05:02 +0000 | [diff] [blame] | 51 | source_set("test_support") { |
| 52 | testonly = true |
| 53 | |
| 54 | sources = [ |
| 55 | "testsupport/fileutils.cc", |
| 56 | "testsupport/fileutils.h", |
| 57 | "testsupport/frame_reader.cc", |
| 58 | "testsupport/frame_reader.h", |
| 59 | "testsupport/frame_writer.cc", |
| 60 | "testsupport/frame_writer.h", |
kjellander@webrtc.org | b8caf6a | 2014-09-30 18:05:02 +0000 | [diff] [blame] | 61 | "testsupport/gtest_disable.h", |
| 62 | "testsupport/mock/mock_frame_reader.h", |
| 63 | "testsupport/mock/mock_frame_writer.h", |
| 64 | "testsupport/packet_reader.cc", |
| 65 | "testsupport/packet_reader.h", |
| 66 | "testsupport/perf_test.cc", |
| 67 | "testsupport/perf_test.h", |
| 68 | "testsupport/trace_to_stderr.cc", |
| 69 | "testsupport/trace_to_stderr.h", |
| 70 | ] |
| 71 | |
| 72 | deps = [ |
| 73 | "//testing/gmock", |
| 74 | "//testing/gtest", |
Henrik Kjellander | f536a50 | 2015-04-01 11:45:49 +0200 | [diff] [blame] | 75 | "..:gtest_prod", |
kjellander@webrtc.org | b8caf6a | 2014-09-30 18:05:02 +0000 | [diff] [blame] | 76 | "../system_wrappers", |
| 77 | ] |
| 78 | |
| 79 | if (is_android) { |
kjellander@webrtc.org | b8caf6a | 2014-09-30 18:05:02 +0000 | [diff] [blame] | 80 | deps += [ "//base:base" ] |
kjellander@webrtc.org | b8caf6a | 2014-09-30 18:05:02 +0000 | [diff] [blame] | 81 | } |
| 82 | |
kjellander@webrtc.org | 3037bc3 | 2014-09-30 19:07:58 +0000 | [diff] [blame] | 83 | configs += [ "..:common_config" ] |
Henrik Kjellander | 57e5fd2 | 2015-05-25 12:55:39 +0200 | [diff] [blame^] | 84 | public_configs = [ "..:common_inherited_config" ] |
kjellander@webrtc.org | b8caf6a | 2014-09-30 18:05:02 +0000 | [diff] [blame] | 85 | } |
| 86 | |
| 87 | source_set("test_support_main") { |
| 88 | testonly = true |
| 89 | |
| 90 | sources = [ |
| 91 | "run_all_unittests.cc", |
| 92 | "test_suite.cc", |
| 93 | "test_suite.h", |
| 94 | ] |
| 95 | |
| 96 | deps = [ |
| 97 | ":field_trial", |
Åsa Persson | 352b2d7 | 2015-04-15 18:00:40 +0200 | [diff] [blame] | 98 | ":histogram", |
kjellander@webrtc.org | b8caf6a | 2014-09-30 18:05:02 +0000 | [diff] [blame] | 99 | ":test_support", |
| 100 | "//testing/gmock", |
| 101 | "//testing/gtest", |
| 102 | "//third_party/gflags", |
| 103 | ] |
| 104 | |
kjellander@webrtc.org | 3037bc3 | 2014-09-30 19:07:58 +0000 | [diff] [blame] | 105 | configs += [ "..:common_config" ] |
Henrik Kjellander | 57e5fd2 | 2015-05-25 12:55:39 +0200 | [diff] [blame^] | 106 | public_configs = [ "..:common_inherited_config" ] |
kjellander@webrtc.org | b8caf6a | 2014-09-30 18:05:02 +0000 | [diff] [blame] | 107 | } |