Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(54)

Unified Diff: webrtc/sdk/BUILD.gn

Issue 2611663002: Refactor rtc_unittests into several targets. (Closed)
Patch Set: Nit. Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/p2p/base/stun_unittest.cc ('k') | webrtc/sdk/objc/Framework/UnitTests/avformatmappertests.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/sdk/BUILD.gn
diff --git a/webrtc/sdk/BUILD.gn b/webrtc/sdk/BUILD.gn
index 279434b5692768af1c2e4aed926983d561b922ff..4ccd53003a368a4654a2142e5fc3ae430aaa68b1 100644
--- a/webrtc/sdk/BUILD.gn
+++ b/webrtc/sdk/BUILD.gn
@@ -230,6 +230,40 @@ if (is_ios || is_mac) {
}
}
+ if (rtc_include_tests) {
+ rtc_source_set("rtc_sdk_peerconnection_objc_unittests") {
+ testonly = true
+ sources = [
+ "objc/Framework/UnitTests/RTCConfigurationTest.mm",
+ "objc/Framework/UnitTests/RTCDataChannelConfigurationTest.mm",
+ "objc/Framework/UnitTests/RTCIceCandidateTest.mm",
+ "objc/Framework/UnitTests/RTCIceServerTest.mm",
+ "objc/Framework/UnitTests/RTCMediaConstraintsTest.mm",
+ "objc/Framework/UnitTests/RTCSessionDescriptionTest.mm",
+ "objc/Framework/UnitTests/avformatmappertests.mm",
+ ]
+ deps = [
+ ":rtc_sdk_peerconnection_objc",
+ "//third_party/ocmock",
+ "//webrtc/system_wrappers:system_wrappers_default",
+ ]
+
+ # TODO(tkchin): Cleanup this warning.
+ cflags = [ "-Wno-objc-property-no-attribute" ]
+
+ # |-ObjC| flag needed to make sure category method implementations
+ # are included:
+ # https://developer.apple.com/library/mac/qa/qa1490/_index.html
+ ldflags = [ "-ObjC" ]
+
+ defines = [ "GTEST_RELATIVE_PATH" ]
+ if (!build_with_chromium && is_clang) {
+ # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
+ suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
+ }
+ }
+ }
+
if (is_ios) {
ios_framework_bundle("rtc_sdk_framework_objc") {
info_plist = "objc/Framework/Info.plist"
« no previous file with comments | « webrtc/p2p/base/stun_unittest.cc ('k') | webrtc/sdk/objc/Framework/UnitTests/avformatmappertests.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698