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

Unified Diff: webrtc/test/BUILD.gn

Issue 2540693002: Replace test_support_main by test_main and get rid of test_support_main_threaded_mac (Closed)
Patch Set: Adressed comments. Created 4 years 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/system_wrappers/BUILD.gn ('k') | webrtc/test/run_all_unittests.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/test/BUILD.gn
diff --git a/webrtc/test/BUILD.gn b/webrtc/test/BUILD.gn
index c6f2f4d2e6e0e9651d32017ad72fdadaf68afa74..1b3c05973ac7c1a17ee9e69c389e4b43893afbcb 100644
--- a/webrtc/test/BUILD.gn
+++ b/webrtc/test/BUILD.gn
@@ -22,9 +22,9 @@ group("test") {
":field_trial",
":rtp_test_utils",
":test_common",
+ ":test_main",
":test_renderer",
":test_support",
- ":test_support_main",
":test_support_unittests",
":video_test_common",
]
@@ -98,6 +98,7 @@ rtc_source_set("test_main") {
":field_trial",
":test_support",
"../system_wrappers:metrics_default",
+ "//testing/gmock",
"//testing/gtest",
"//third_party/gflags",
]
@@ -163,46 +164,6 @@ rtc_source_set("test_support") {
}
}
-# Depend on this target when you want to have test_support but also the
-# main method needed for gtest to execute!
-rtc_source_set("test_support_main") {
- testonly = true
-
- sources = [
- "run_all_unittests.cc",
- "test_suite.cc",
- "test_suite.h",
- ]
-
- deps = [
- ":field_trial",
- ":test_support",
- "../system_wrappers:metrics_default",
- "//testing/gmock",
- "//testing/gtest",
- "//third_party/gflags",
- ]
-}
-
-# Depend on this target when you want to have test_support and a special
-# main for mac which will run your test on a worker thread and consume
-# events on the main thread. Useful if you want to access a webcam.
-# This main will provide all the scaffolding and objective-c black magic
-# for you. All you need to do is to implement a function in the
-# run_threaded_main_mac.h file (ImplementThisToRunYourTest).
-rtc_source_set("test_support_main_threaded_mac") {
- testonly = true
-
- sources = [
- "testsupport/mac/run_threaded_main_mac.h",
- "testsupport/mac/run_threaded_main_mac.mm",
- ]
-
- deps = [
- ":test_support",
- ]
-}
-
rtc_source_set("run_test") {
testonly = true
sources = [
@@ -276,7 +237,7 @@ rtc_test("test_support_unittests") {
deps += [
":test_common",
- ":test_support_main",
+ ":test_main",
"../modules/video_capture",
"//testing/gmock",
"//testing/gtest",
« no previous file with comments | « webrtc/system_wrappers/BUILD.gn ('k') | webrtc/test/run_all_unittests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698