Build libwebrtc unit tests executables
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 29 Sep 2017 17:05:37 +0000 (17:05 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 29 Sep 2017 17:05:37 +0000 (17:05 +0000)
commit97b168adf3c227a9f2b8aa871dccf4e15db63ac1
tree700de44d0d2181d9e8da18701fd64bd6066fafdc
parent77280039bfe26a00af0c7a367e50c0e823d0cfc8
Build libwebrtc unit tests executables
https://bugs.webkit.org/show_bug.cgi?id=177211

Patch by Youenn Fablet <youenn@apple.com> on 2017-09-29
Reviewed by Alex Christensen.

.:

* WebKit.xcworkspace/xcshareddata/xcschemes/All Source.xcscheme:

Source/ThirdParty/libwebrtc:

Adding support for a new target called unittests that will be several executables.
Each executable run unit tests dedicated to a part of libwebrtc.

Adding one target/executable per unit test suite.
Adding one composite target to build all unit test targets.
Adding a target to build a static libwebrtctest library.
The static libwebrtctest library is then linked to each unit test executable which is also linked to libwebrtc dylib.

Some unit tests require a default codec (VP8) that is disabled in libwebrtc.
This ends up making some tests crashing.
An additional work should follow to execute only the meaningful subset of tests.

* Configurations/libwebrtc-base.xcconfig: Added.
* Configurations/libwebrtc-test-static.xcconfig: Added.
* Configurations/rtc_pc_unittests.xcconfig: Added.
* Source/third_party/gflags/gen/posix/include/private/config.h:
* Source/webrtc/modules/audio_coding/neteq/tools/neteq_test.cc: Replacing FATAL by RTC_FATAL.
* Source/webrtc/sdk/objc/Framework/Classes/Common/helpers.mm: Removing UIKit dependency.
* Source/webrtc/test/gmock.h: Using googletest version instead of checking in testing folder.
* Source/webrtc/test/gtest.h: Ditto.
* Source/webrtc/test/rtp_file_reader.cc: Replacing FATAL by RTC_FATAL.
* libwebrtc.xcodeproj/project.pbxproj:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@222652 268f45cc-cd09-0410-ab3c-d52691b4dbfc
16 files changed:
ChangeLog
Source/ThirdParty/libwebrtc/ChangeLog
Source/ThirdParty/libwebrtc/Configurations/libwebrtc-base.xcconfig [new file with mode: 0644]
Source/ThirdParty/libwebrtc/Configurations/libwebrtc-test-static.xcconfig [new file with mode: 0644]
Source/ThirdParty/libwebrtc/Configurations/libwebrtc.xcconfig
Source/ThirdParty/libwebrtc/Configurations/unittests.xcconfig [new file with mode: 0644]
Source/ThirdParty/libwebrtc/Source/third_party/gflags/gen/posix/include/private/config.h
Source/ThirdParty/libwebrtc/Source/webrtc/common_audio/resampler/include/push_resampler.h
Source/ThirdParty/libwebrtc/Source/webrtc/common_audio/resampler/push_resampler.cc
Source/ThirdParty/libwebrtc/Source/webrtc/modules/audio_coding/neteq/tools/neteq_test.cc
Source/ThirdParty/libwebrtc/Source/webrtc/sdk/objc/Framework/Classes/Common/helpers.mm
Source/ThirdParty/libwebrtc/Source/webrtc/test/gmock.h
Source/ThirdParty/libwebrtc/Source/webrtc/test/gtest.h
Source/ThirdParty/libwebrtc/Source/webrtc/test/rtp_file_reader.cc
Source/ThirdParty/libwebrtc/libwebrtc.xcodeproj/project.pbxproj
WebKit.xcworkspace/xcshareddata/xcschemes/All Source.xcscheme