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 = [ |
| 28 | "../system_wrappers", |
| 29 | ] |
| 30 | |
| 31 | if (is_clang) { |
| 32 | # Suppress warnings from Chrome's Clang plugins. |
| 33 | # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
| 34 | configs -= [ "//build/config/clang:find_bad_constructs" ] |
| 35 | } |
| 36 | } |
| 37 | |
| 38 | source_set("test_support") { |
| 39 | testonly = true |
| 40 | |
| 41 | sources = [ |
| 42 | "testsupport/fileutils.cc", |
| 43 | "testsupport/fileutils.h", |
| 44 | "testsupport/frame_reader.cc", |
| 45 | "testsupport/frame_reader.h", |
| 46 | "testsupport/frame_writer.cc", |
| 47 | "testsupport/frame_writer.h", |
| 48 | "testsupport/gtest_prod_util.h", |
| 49 | "testsupport/gtest_disable.h", |
| 50 | "testsupport/mock/mock_frame_reader.h", |
| 51 | "testsupport/mock/mock_frame_writer.h", |
| 52 | "testsupport/packet_reader.cc", |
| 53 | "testsupport/packet_reader.h", |
| 54 | "testsupport/perf_test.cc", |
| 55 | "testsupport/perf_test.h", |
| 56 | "testsupport/trace_to_stderr.cc", |
| 57 | "testsupport/trace_to_stderr.h", |
| 58 | ] |
| 59 | |
| 60 | deps = [ |
| 61 | "//testing/gmock", |
| 62 | "//testing/gtest", |
| 63 | "../system_wrappers", |
| 64 | ] |
| 65 | |
| 66 | if (is_android) { |
| 67 | sources += [ "testsupport/android/root_path_android_chromium.cc" ] |
| 68 | deps += [ "//base:base" ] |
| 69 | } else { |
| 70 | sources += [ "testsupport/android/root_path_android.cc" ] |
| 71 | } |
| 72 | |
| 73 | if (is_clang) { |
| 74 | # Suppress warnings from Chrome's Clang plugins. |
| 75 | # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
| 76 | configs -= [ "//build/config/clang:find_bad_constructs" ] |
| 77 | } |
| 78 | } |
| 79 | |
| 80 | source_set("test_support_main") { |
| 81 | testonly = true |
| 82 | |
| 83 | sources = [ |
| 84 | "run_all_unittests.cc", |
| 85 | "test_suite.cc", |
| 86 | "test_suite.h", |
| 87 | ] |
| 88 | |
| 89 | deps = [ |
| 90 | ":field_trial", |
| 91 | ":test_support", |
| 92 | "//testing/gmock", |
| 93 | "//testing/gtest", |
| 94 | "//third_party/gflags", |
| 95 | ] |
| 96 | |
| 97 | if (is_clang) { |
| 98 | # Suppress warnings from Chrome's Clang plugins. |
| 99 | # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
| 100 | configs -= [ "//build/config/clang:find_bad_constructs" ] |
| 101 | } |
| 102 | } |