2014-09-30 18:05:02 +00:00
|
|
|
# Copyright (c) 2014 The WebRTC project authors. All Rights Reserved.
|
|
|
|
|
#
|
|
|
|
|
# Use of this source code is governed by a BSD-style license
|
|
|
|
|
# that can be found in the LICENSE file in the root of the source
|
|
|
|
|
# tree. An additional intellectual property rights grant can be found
|
|
|
|
|
# in the file PATENTS. All contributing project authors may
|
|
|
|
|
# be found in the AUTHORS file in the root of the source tree.
|
|
|
|
|
|
|
|
|
|
# TODO(kjellander): Convert the rest of the test.gyp targets and put here.
|
|
|
|
|
|
|
|
|
|
source_set("test") {
|
|
|
|
|
testonly = true
|
|
|
|
|
|
|
|
|
|
deps = [
|
|
|
|
|
":field_trial",
|
|
|
|
|
":test_support",
|
|
|
|
|
":test_support_main",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
source_set("field_trial") {
|
|
|
|
|
sources = [
|
|
|
|
|
"field_trial.cc",
|
|
|
|
|
"field_trial.h",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
deps = [
|
2015-02-26 13:59:22 +00:00
|
|
|
"..:webrtc_common",
|
2014-09-30 18:05:02 +00:00
|
|
|
"../system_wrappers",
|
2016-01-08 05:04:57 -08:00
|
|
|
"../system_wrappers:field_trial_default",
|
2014-09-30 18:05:02 +00:00
|
|
|
]
|
|
|
|
|
|
2014-09-30 19:07:58 +00:00
|
|
|
configs += [ "..:common_config" ]
|
2015-05-25 12:55:39 +02:00
|
|
|
public_configs = [ "..:common_inherited_config" ]
|
2014-09-30 18:05:02 +00:00
|
|
|
}
|
|
|
|
|
|
2015-04-15 18:00:40 +02:00
|
|
|
source_set("histogram") {
|
|
|
|
|
sources = [
|
|
|
|
|
"histogram.cc",
|
|
|
|
|
"histogram.h",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
deps = [
|
|
|
|
|
"..:webrtc_common",
|
|
|
|
|
"../system_wrappers",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
configs += [ "..:common_config" ]
|
2015-05-25 12:55:39 +02:00
|
|
|
public_configs = [ "..:common_inherited_config" ]
|
2015-04-15 18:00:40 +02:00
|
|
|
}
|
|
|
|
|
|
2014-09-30 18:05:02 +00:00
|
|
|
source_set("test_support") {
|
|
|
|
|
testonly = true
|
|
|
|
|
|
|
|
|
|
sources = [
|
|
|
|
|
"testsupport/fileutils.cc",
|
|
|
|
|
"testsupport/fileutils.h",
|
|
|
|
|
"testsupport/frame_reader.cc",
|
|
|
|
|
"testsupport/frame_reader.h",
|
|
|
|
|
"testsupport/frame_writer.cc",
|
|
|
|
|
"testsupport/frame_writer.h",
|
2016-04-07 00:13:58 -07:00
|
|
|
"testsupport/iosfileutils.mm",
|
2014-09-30 18:05:02 +00:00
|
|
|
"testsupport/mock/mock_frame_reader.h",
|
|
|
|
|
"testsupport/mock/mock_frame_writer.h",
|
|
|
|
|
"testsupport/packet_reader.cc",
|
|
|
|
|
"testsupport/packet_reader.h",
|
|
|
|
|
"testsupport/perf_test.cc",
|
|
|
|
|
"testsupport/perf_test.h",
|
|
|
|
|
"testsupport/trace_to_stderr.cc",
|
|
|
|
|
"testsupport/trace_to_stderr.h",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
deps = [
|
2016-02-05 00:23:50 -08:00
|
|
|
"../base:gtest_prod",
|
2014-09-30 18:05:02 +00:00
|
|
|
"../system_wrappers",
|
2015-11-23 15:12:06 +01:00
|
|
|
"//testing/gmock",
|
|
|
|
|
"//testing/gtest",
|
2014-09-30 18:05:02 +00:00
|
|
|
]
|
|
|
|
|
|
2016-04-07 00:13:58 -07:00
|
|
|
if (is_ios) {
|
|
|
|
|
cflags = [ "-fobjc-arc" ] # CLANG_ENABLE_OBJC_ARC = YES.
|
|
|
|
|
}
|
|
|
|
|
|
2014-09-30 18:05:02 +00:00
|
|
|
if (is_android) {
|
|
|
|
|
deps += [ "//base:base" ]
|
|
|
|
|
}
|
|
|
|
|
|
2014-09-30 19:07:58 +00:00
|
|
|
configs += [ "..:common_config" ]
|
2015-05-25 12:55:39 +02:00
|
|
|
public_configs = [ "..:common_inherited_config" ]
|
2014-09-30 18:05:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
source_set("test_support_main") {
|
|
|
|
|
testonly = true
|
|
|
|
|
|
|
|
|
|
sources = [
|
|
|
|
|
"run_all_unittests.cc",
|
|
|
|
|
"test_suite.cc",
|
|
|
|
|
"test_suite.h",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
deps = [
|
|
|
|
|
":field_trial",
|
2015-04-15 18:00:40 +02:00
|
|
|
":histogram",
|
2014-09-30 18:05:02 +00:00
|
|
|
":test_support",
|
|
|
|
|
"//testing/gmock",
|
|
|
|
|
"//testing/gtest",
|
|
|
|
|
"//third_party/gflags",
|
|
|
|
|
]
|
|
|
|
|
|
2014-09-30 19:07:58 +00:00
|
|
|
configs += [ "..:common_config" ]
|
2015-05-25 12:55:39 +02:00
|
|
|
public_configs = [ "..:common_inherited_config" ]
|
2014-09-30 18:05:02 +00:00
|
|
|
}
|