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

Unified Diff: webrtc/api/BUILD.gn

Issue 2692723002: Adding RTCErrorOr class to be used by ORTC APIs. (Closed)
Patch Set: Ading "MoveError". Found a use for it in CL in progress. Created 3 years, 10 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
Index: webrtc/api/BUILD.gn
diff --git a/webrtc/api/BUILD.gn b/webrtc/api/BUILD.gn
index 2e3d5fe25d3baef9cea4590d66cd8c7aa475591a..cd2960bee41186b7de5dba9f5dbd69ecaaf6a569 100644
--- a/webrtc/api/BUILD.gn
+++ b/webrtc/api/BUILD.gn
@@ -61,6 +61,8 @@ rtc_static_library("libjingle_peerconnection_api") {
"peerconnectioninterface.h",
"peerconnectionproxy.h",
"proxy.h",
+ "rtcerror.cc",
+ "rtcerror.h",
"rtpparameters.h",
"rtpreceiverinterface.h",
"rtpsender.h",
@@ -200,4 +202,28 @@ if (rtc_include_tests) {
suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
}
}
+
+ rtc_test("rtc_api_unittests") {
+ testonly = true
+
+ sources = [
+ "rtcerror_unittest.cc",
+ ]
+
+ 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" ]
+ }
+
+ deps = [
+ ":libjingle_peerconnection_api",
+ "../base:rtc_base_tests_main",
+ "../base:rtc_base_tests_utils",
+ "../system_wrappers:metrics_default",
+ ]
+
+ if (is_android) {
+ deps += [ "//testing/android/native_test:native_test_support" ]
+ }
+ }
}
« no previous file with comments | « webrtc/BUILD.gn ('k') | webrtc/api/peerconnectioninterface.h » ('j') | webrtc/api/rtcerror.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698