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

Unified Diff: webrtc/BUILD.gn

Issue 2100173002: Build webrtc_nonparallel_tests under GN. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 6 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/BUILD.gn
diff --git a/webrtc/BUILD.gn b/webrtc/BUILD.gn
index 2857cb29aed084c07c6813feefbde0e8ca4fe870..7b2d5cf286106d8343025ef72510c7805c7f2c50 100644
--- a/webrtc/BUILD.gn
+++ b/webrtc/BUILD.gn
@@ -612,4 +612,49 @@ if (rtc_include_tests) {
configs -= [ "//build/config/clang:find_bad_constructs" ]
}
}
+
+ test("webrtc_nonparallel_tests") {
+ testonly = true
+ configs += [
+ ":common_config",
+ ":rtc_unittests_config",
+ ]
+ public_configs = [ ":common_inherited_config" ]
+ sources = [
+ "base/nullsocketserver_unittest.cc",
+ "base/physicalsocketserver_unittest.cc",
+ "base/socket_unittest.cc",
+ "base/socket_unittest.h",
+ "base/socketaddress_unittest.cc",
+ "base/virtualsocket_unittest.cc",
+ ]
+ if (is_win) {
danilchap 2016/06/27 16:53:13 don't you need special dependency for android case
pbos-webrtc 2016/06/27 17:05:49 Haven't seen any BUILD.gn tests include native_tes
danilchap 2016/06/27 17:11:39 this file in rtc_unittests target does that.
pbos-webrtc 2016/06/27 17:17:58 Done.
+ # TODO(pbos): Reenable:
+ #
+ # base/physicalsocketserver_unittest.cc
+ # base/socket_unittest.cc
+ # base/win32socketserver_unittest.cc
+ sources -= [
+ "base/physicalsocketserver_unittest.cc",
+ "base/socket_unittest.cc",
+ "base/win32socketserver_unittest.cc",
+ ]
+ }
+ if (is_mac) {
+ sources += [ "base/macsocketserver_unittest.cc" ]
+ }
+ if (is_ios || (is_mac && target_cpu != "x86")) {
+ defines = [ "CARBON_DEPRECATED=YES" ]
+ }
+ deps = [
+ "base:rtc_base",
+ "base:rtc_base_tests_utils",
+ "//testing/gtest",
+ ]
+ if (is_clang) {
+ # Suppress warnings from the Chromium Clang plugin.
+ # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
+ configs -= [ "//build/config/clang:find_bad_constructs" ]
+ }
+ }
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698