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

Unified Diff: webrtc/examples/BUILD.gn

Issue 2697603002: Move iOS tests to XCTest from gtest. (Closed)
Patch Set: fix nits 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/examples/BUILD.gn
diff --git a/webrtc/examples/BUILD.gn b/webrtc/examples/BUILD.gn
index 59842fc524532742cb85c3bd98b9e89ae45f90e3..1eca3171def750c5a207bb393e873cfe98a00329 100644
--- a/webrtc/examples/BUILD.gn
+++ b/webrtc/examples/BUILD.gn
@@ -433,32 +433,38 @@ if (is_ios || (is_mac && target_cpu != "x86")) {
}
if (rtc_include_tests) {
- config("rtc_apprtcmobile_config") {
- defines = [ "GTEST_RELATIVE_PATH" ]
- }
-
- rtc_test("apprtcmobile_tests") {
- include_dirs = [ "objc/AppRTCMobile/ios" ]
- deps = [
- ":AppRTCMobile_lib",
- ":apprtc_signaling",
- "//testing/gtest",
- "//third_party/ocmock",
- ]
-
- sources = [
- "objc/AppRTCMobile/tests/ARDAppClientTest.mm",
- "objc/AppRTCMobile/tests/ARDSettingsModelTests.mm",
- ]
+ # TODO(kthelgason): compile xctests on mac when chromium supports it.
+ if (is_ios) {
+ rtc_source_set("apprtcmobile_test_sources") {
+ include_dirs = [
+ "objc/AppRTCMobile",
+ "objc/AppRTCMobile/ios",
+ ]
+ testonly = true
+ sources = [
+ "objc/AppRTCMobile/tests/ARDAppClient_xctest.mm",
+ "objc/AppRTCMobile/tests/ARDSDPUtils_xctest.mm",
+ "objc/AppRTCMobile/tests/ARDSettingsModel_xctest.mm",
+ ]
+ public_deps = [
+ ":AppRTCMobile_ios_frameworks",
+ ":AppRTCMobile_lib",
+ "//build/config/ios:xctest",
+ "//third_party/ocmock",
+ ]
+ configs += [ "//build/config/compiler:enable_arc" ]
+ }
- if (is_ios) {
+ rtc_ios_xctest_test("apprtcmobile_tests") {
info_plist = "objc/AppRTCMobile/ios/Info.plist"
+ sources = [
+ "objc/AppRTCMobile/ios/main.m",
+ ]
+ deps = [
+ ":apprtcmobile_test_sources",
+ ]
+ ldflags = [ "-all_load" ]
}
-
- configs += [
- ":rtc_apprtcmobile_config",
- "//build/config/compiler:enable_arc",
- ]
}
}
}
« no previous file with comments | « tools-webrtc/ios/tests/common_tests.json ('k') | webrtc/examples/objc/AppRTCMobile/tests/ARDAppClientTest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698