2014-05-13 18:00:26 +00:00
|
|
|
# Copyright (c) 2013 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.
|
|
|
|
|
{
|
|
|
|
|
'includes': [ '../build/common.gypi', ],
|
|
|
|
|
'targets': [
|
|
|
|
|
{
|
2014-09-10 17:28:19 +00:00
|
|
|
'target_name': 'rtc_base_tests_utils',
|
2014-05-13 18:00:26 +00:00
|
|
|
'type': 'static_library',
|
|
|
|
|
'sources': [
|
|
|
|
|
'unittest_main.cc',
|
|
|
|
|
# Also use this as a convenient dumping ground for misc files that are
|
|
|
|
|
# included by multiple targets below.
|
|
|
|
|
'fakenetwork.h',
|
|
|
|
|
'fakesslidentity.h',
|
|
|
|
|
'faketaskrunner.h',
|
|
|
|
|
'gunit.h',
|
|
|
|
|
'testbase64.h',
|
|
|
|
|
'testechoserver.h',
|
2014-06-16 07:11:19 +00:00
|
|
|
'testutils.h',
|
2014-05-13 18:00:26 +00:00
|
|
|
],
|
2016-05-04 01:54:35 -07:00
|
|
|
'defines': [
|
|
|
|
|
'GTEST_RELATIVE_PATH',
|
|
|
|
|
],
|
2014-05-13 18:00:26 +00:00
|
|
|
'dependencies': [
|
2014-09-10 17:28:19 +00:00
|
|
|
'base.gyp:rtc_base',
|
2014-05-13 18:00:26 +00:00
|
|
|
'<(DEPTH)/testing/gtest.gyp:gtest',
|
2015-10-15 07:26:07 -07:00
|
|
|
'<(webrtc_root)/test/test.gyp:field_trial',
|
2014-05-13 18:00:26 +00:00
|
|
|
],
|
2016-05-04 01:54:35 -07:00
|
|
|
'direct_dependent_settings': {
|
|
|
|
|
'defines': [
|
|
|
|
|
'GTEST_RELATIVE_PATH',
|
|
|
|
|
],
|
|
|
|
|
},
|
2014-07-01 16:39:17 +00:00
|
|
|
'export_dependent_settings': [
|
|
|
|
|
'<(DEPTH)/testing/gtest.gyp:gtest',
|
|
|
|
|
],
|
2014-05-13 18:00:26 +00:00
|
|
|
},
|
|
|
|
|
{
|
2014-09-10 17:28:19 +00:00
|
|
|
'target_name': 'rtc_base_tests',
|
|
|
|
|
'type': 'none',
|
|
|
|
|
'direct_dependent_settings': {
|
|
|
|
|
'sources': [
|
2015-10-26 19:51:29 +01:00
|
|
|
'array_view_unittest.cc',
|
2014-10-08 22:17:02 +00:00
|
|
|
'atomicops_unittest.cc',
|
|
|
|
|
'autodetectproxy_unittest.cc',
|
|
|
|
|
'bandwidthsmoother_unittest.cc',
|
|
|
|
|
'base64_unittest.cc',
|
|
|
|
|
'basictypes_unittest.cc',
|
|
|
|
|
'bind_unittest.cc',
|
2015-04-21 16:30:13 -07:00
|
|
|
'bitbuffer_unittest.cc',
|
2014-10-08 22:17:02 +00:00
|
|
|
'buffer_unittest.cc',
|
2015-05-21 17:52:01 +02:00
|
|
|
'bufferqueue_unittest.cc',
|
2014-10-08 22:17:02 +00:00
|
|
|
'bytebuffer_unittest.cc',
|
|
|
|
|
'byteorder_unittest.cc',
|
|
|
|
|
'callback_unittest.cc',
|
2016-02-25 06:16:52 -08:00
|
|
|
'copyonwritebuffer_unittest.cc',
|
2014-10-08 22:17:02 +00:00
|
|
|
'crc32_unittest.cc',
|
|
|
|
|
'criticalsection_unittest.cc',
|
2015-03-17 14:25:37 +00:00
|
|
|
'event_tracer_unittest.cc',
|
2014-10-08 22:17:02 +00:00
|
|
|
'event_unittest.cc',
|
|
|
|
|
'exp_filter_unittest.cc',
|
2015-07-22 12:12:17 -07:00
|
|
|
'filerotatingstream_unittest.cc',
|
2014-10-08 22:17:02 +00:00
|
|
|
'fileutils_unittest.cc',
|
|
|
|
|
'helpers_unittest.cc',
|
|
|
|
|
'httpbase_unittest.cc',
|
|
|
|
|
'httpcommon_unittest.cc',
|
|
|
|
|
'httpserver_unittest.cc',
|
|
|
|
|
'ipaddress_unittest.cc',
|
|
|
|
|
'logging_unittest.cc',
|
|
|
|
|
'md5digest_unittest.cc',
|
|
|
|
|
'messagedigest_unittest.cc',
|
2015-01-16 17:52:53 +00:00
|
|
|
'messagequeue_unittest.cc',
|
2016-03-08 03:36:15 -08:00
|
|
|
'mod_ops_unittest.cc',
|
2014-10-08 22:17:02 +00:00
|
|
|
'multipart_unittest.cc',
|
|
|
|
|
'nat_unittest.cc',
|
|
|
|
|
'network_unittest.cc',
|
2016-04-07 15:36:45 -07:00
|
|
|
'onetimeevent_unittest.cc',
|
2015-11-10 22:34:18 +01:00
|
|
|
'optional_unittest.cc',
|
2014-10-08 22:17:02 +00:00
|
|
|
'optionsfile_unittest.cc',
|
|
|
|
|
'pathutils_unittest.cc',
|
2015-11-23 14:47:56 -08:00
|
|
|
'platform_thread_unittest.cc',
|
2014-10-08 22:17:02 +00:00
|
|
|
'profiler_unittest.cc',
|
|
|
|
|
'proxy_unittest.cc',
|
|
|
|
|
'proxydetect_unittest.cc',
|
2015-12-10 01:50:55 -08:00
|
|
|
'random_unittest.cc',
|
2016-02-23 22:49:42 -08:00
|
|
|
'rate_statistics_unittest.cc',
|
2014-10-08 22:17:02 +00:00
|
|
|
'ratelimiter_unittest.cc',
|
|
|
|
|
'ratetracker_unittest.cc',
|
|
|
|
|
'referencecountedsingletonfactory_unittest.cc',
|
|
|
|
|
'rollingaccumulator_unittest.cc',
|
2016-04-28 05:14:21 -07:00
|
|
|
'rtccertificate_unittest.cc',
|
RTCCertificateGenerator added.
This is a new way of generating RTCCertificate objects that is meant
to replace DtlsIdentityStoreInterface and all of its implementations
(clean up work).
It is similar to the identity store in that it generates on the worker
thread and does callback on the signaling thread, but:
- It does not generate identities in the background that you did not
ask for (preemptive generation made more sense before certificates
were parameterized, not so much anymore, and ECDSA which will be most
common takes like <=2 ms to generate).
- As such this code is less complicated than the store's code.
- The API is different, it takes Optional<uint64_t> expires and it
returns RTCCertificates, not SSLIdentities.
- It supports a blocking version of GenerateCertificate that can be
called from any thread, necessary for Chrome which can generate
certificates before the signaling/worker threads have been
initialized as WebRTC-threads (Chrome can invoke this version on
the worker thread outside of WebRTC).
This CL does not remove the identity store, only adds the alternative.
Follow-up CLs will start using it, the store will be removed once it
is no longer used anywhere.
BUG=webrtc:5707, webrtc:5708
R=hta@webrtc.org, torbjorng@webrtc.org
Review URL: https://codereview.webrtc.org/1883813002 .
Cr-Commit-Position: refs/heads/master@{#12381}
2016-04-15 17:55:21 +02:00
|
|
|
'rtccertificategenerator_unittest.cc',
|
2014-10-08 22:17:02 +00:00
|
|
|
'scopedptrcollection_unittest.cc',
|
|
|
|
|
'sha1digest_unittest.cc',
|
|
|
|
|
'sharedexclusivelock_unittest.cc',
|
|
|
|
|
'signalthread_unittest.cc',
|
|
|
|
|
'sigslot_unittest.cc',
|
|
|
|
|
'sigslottester.h',
|
|
|
|
|
'sigslottester.h.pump',
|
|
|
|
|
'stream_unittest.cc',
|
|
|
|
|
'stringencode_unittest.cc',
|
|
|
|
|
'stringutils_unittest.cc',
|
2016-03-24 01:51:52 -07:00
|
|
|
'swap_queue_unittest.cc',
|
2014-09-10 17:28:19 +00:00
|
|
|
# TODO(ronghuawu): Reenable this test.
|
|
|
|
|
# 'systeminfo_unittest.cc',
|
2014-10-08 22:17:02 +00:00
|
|
|
'task_unittest.cc',
|
|
|
|
|
'testclient_unittest.cc',
|
2014-09-10 17:28:19 +00:00
|
|
|
'thread_checker_unittest.cc',
|
2014-10-09 15:41:40 +00:00
|
|
|
'thread_unittest.cc',
|
2014-10-09 20:27:13 +00:00
|
|
|
'timeutils_unittest.cc',
|
2014-10-08 22:17:02 +00:00
|
|
|
'urlencode_unittest.cc',
|
2014-10-09 20:27:13 +00:00
|
|
|
'versionparsing_unittest.cc',
|
2014-09-10 17:28:19 +00:00
|
|
|
# TODO(ronghuawu): Reenable this test.
|
|
|
|
|
# 'windowpicker_unittest.cc',
|
|
|
|
|
],
|
|
|
|
|
'conditions': [
|
|
|
|
|
['OS=="linux"', {
|
|
|
|
|
'sources': [
|
2014-10-09 20:27:13 +00:00
|
|
|
'latebindingsymboltable_unittest.cc',
|
2014-09-10 17:28:19 +00:00
|
|
|
# TODO(ronghuawu): Reenable this test.
|
|
|
|
|
# 'linux_unittest.cc',
|
2014-10-09 20:27:13 +00:00
|
|
|
'linuxfdwalk_unittest.cc',
|
2014-09-10 17:28:19 +00:00
|
|
|
],
|
|
|
|
|
}],
|
|
|
|
|
['OS=="win"', {
|
|
|
|
|
'sources': [
|
2014-10-09 20:27:13 +00:00
|
|
|
'win32_unittest.cc',
|
|
|
|
|
'win32regkey_unittest.cc',
|
|
|
|
|
'win32window_unittest.cc',
|
|
|
|
|
'win32windowpicker_unittest.cc',
|
|
|
|
|
'winfirewall_unittest.cc',
|
2014-09-10 17:28:19 +00:00
|
|
|
],
|
|
|
|
|
'sources!': [
|
2015-10-29 12:41:56 +01:00
|
|
|
# TODO(pbos): Reenable this test.
|
2014-10-09 20:27:13 +00:00
|
|
|
'win32windowpicker_unittest.cc',
|
2014-09-10 17:28:19 +00:00
|
|
|
],
|
|
|
|
|
}],
|
2015-12-16 14:05:29 -08:00
|
|
|
['OS=="win" and clang==1', {
|
|
|
|
|
'msvs_settings': {
|
|
|
|
|
'VCCLCompilerTool': {
|
|
|
|
|
'AdditionalOptions': [
|
|
|
|
|
# Disable warnings failing when compiling with Clang on Windows.
|
|
|
|
|
# https://bugs.chromium.org/p/webrtc/issues/detail?id=5366
|
|
|
|
|
'-Wno-missing-braces',
|
2016-01-19 04:47:17 -08:00
|
|
|
'-Wno-sign-compare',
|
2015-12-16 14:05:29 -08:00
|
|
|
'-Wno-unused-const-variable',
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
}],
|
2014-09-10 17:28:19 +00:00
|
|
|
['OS=="mac"', {
|
|
|
|
|
'sources': [
|
2014-10-09 20:27:13 +00:00
|
|
|
'macutils_unittest.cc',
|
2014-09-10 17:28:19 +00:00
|
|
|
],
|
|
|
|
|
}],
|
|
|
|
|
['os_posix==1', {
|
|
|
|
|
'sources': [
|
2014-10-09 20:27:13 +00:00
|
|
|
'ssladapter_unittest.cc',
|
|
|
|
|
'sslidentity_unittest.cc',
|
2014-10-08 22:17:02 +00:00
|
|
|
'sslstreamadapter_unittest.cc',
|
2014-09-10 17:28:19 +00:00
|
|
|
],
|
|
|
|
|
}],
|
|
|
|
|
['OS=="ios" or (OS=="mac" and target_arch!="ia32")', {
|
|
|
|
|
'defines': [
|
|
|
|
|
'CARBON_DEPRECATED=YES',
|
|
|
|
|
],
|
|
|
|
|
}],
|
|
|
|
|
], # conditions
|
|
|
|
|
},
|
2014-05-13 18:00:26 +00:00
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
}
|