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

Side by Side Diff: webrtc/examples/BUILD.gn

Issue 2585813002: Espresso test case to control loopback call (Closed)
Patch Set: Merge from master and use of Environment.getExternalStorageDirectory() instead of hardcoded /sdcard… 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 unified diff | Download patch
OLDNEW
1 # Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. 1 # Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.
2 # 2 #
3 # Use of this source code is governed by a BSD-style license 3 # Use of this source code is governed by a BSD-style license
4 # that can be found in the LICENSE file in the root of the source 4 # that can be found in the LICENSE file in the root of the source
5 # tree. An additional intellectual property rights grant can be found 5 # tree. An additional intellectual property rights grant can be found
6 # in the file PATENTS. All contributing project authors may 6 # in the file PATENTS. All contributing project authors may
7 # be found in the AUTHORS file in the root of the source tree. 7 # be found in the AUTHORS file in the root of the source tree.
8 8
9 import("../build/webrtc.gni") 9 import("../build/webrtc.gni")
10 if (is_android) { 10 if (is_android) {
11 import("//build/config/android/config.gni") 11 import("//build/config/android/config.gni")
12 import("//build/config/android/rules.gni") 12 import("//build/config/android/rules.gni")
13 } else if (is_mac) { 13 } else if (is_mac) {
14 import("//build/config/mac/rules.gni") 14 import("//build/config/mac/rules.gni")
15 } else if (is_ios) { 15 } else if (is_ios) {
16 import("//build/config/ios/rules.gni") 16 import("//build/config/ios/rules.gni")
17 } 17 }
18 18
19 group("examples") { 19 group("examples") {
20 # This target shall build all targets in examples. 20 # This target shall build all targets in examples.
21 testonly = true 21 testonly = true
22 public_deps = [] 22 public_deps = []
23 23
24 if (is_android) { 24 if (is_android) {
25 public_deps += [ 25 public_deps += [
26 ":AppRTCMobile", 26 ":AppRTCMobile",
27 ":AppRTCMobileTest", 27 ":AppRTCMobileTest",
28 ":AppRTCMobileTestStubbedVideoIO",
28 ] 29 ]
29 } 30 }
30 31
31 if (!build_with_chromium) { 32 if (!build_with_chromium) {
32 public_deps += [ ":stun_prober" ] 33 public_deps += [ ":stun_prober" ]
33 } 34 }
34 35
35 if (is_ios || (is_mac && target_cpu != "x86")) { 36 if (is_ios || (is_mac && target_cpu != "x86")) {
36 public_deps += [ ":AppRTCMobile" ] 37 public_deps += [ ":AppRTCMobile" ]
37 } 38 }
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 "//base:base_java_test_support", 120 "//base:base_java_test_support",
120 "//third_party/android_support_test_runner:runner_java", 121 "//third_party/android_support_test_runner:runner_java",
121 "//third_party/junit", 122 "//third_party/junit",
122 "//webrtc/sdk/android:libjingle_peerconnection_java", 123 "//webrtc/sdk/android:libjingle_peerconnection_java",
123 ] 124 ]
124 125
125 data = [ 126 data = [
126 "//webrtc/examples/androidtests/src/org/appspot/apprtc/test/capturetestvid eo.y4m", 127 "//webrtc/examples/androidtests/src/org/appspot/apprtc/test/capturetestvid eo.y4m",
127 ] 128 ]
128 } 129 }
130
131 instrumentation_test_apk("AppRTCMobileTestStubbedVideoIO") {
132 apk_name = "AppRTCMobileTestStubbedVideoIO"
133 android_manifest = "androidtests/AndroidManifest.xml"
134
135 java_files = [ "androidtests/src/org/appspot/apprtc/test/ConnectActivityStub bedInputOutputTest.java" ]
136
137 apk_under_test = ":AppRTCMobile"
138
139 deps = [
140 ":AppRTCMobile_javalib",
141 "//third_party/android_support_test_runner:rules_java",
142 "//third_party/android_support_test_runner:runner_java",
143 "//third_party/espresso:espresso_all_java",
144 "//third_party/hamcrest:hamcrest_java",
145 "//third_party/junit",
146 "//webrtc/sdk/android:libjingle_peerconnection_java",
147 ]
148
149 data = [
150 "//resources/reference_video_640x360_30fps.y4m",
151 ]
152 }
129 } 153 }
130 154
131 if (is_ios || (is_mac && target_cpu != "x86")) { 155 if (is_ios || (is_mac && target_cpu != "x86")) {
132 config("warnings_config") { 156 config("warnings_config") {
133 # GN orders flags on a target before flags from configs. The default config 157 # GN orders flags on a target before flags from configs. The default config
134 # adds these flags so to cancel them out they need to come from a config and 158 # adds these flags so to cancel them out they need to come from a config and
135 # cannot be on the target directly. 159 # cannot be on the target directly.
136 if (is_ios) { 160 if (is_ios) {
137 # Suppress compiler warnings about deprecated that triggered 161 # Suppress compiler warnings about deprecated that triggered
138 # when moving from ios_deployment_target 7.0 to 9.0. 162 # when moving from ios_deployment_target 7.0 to 9.0.
(...skipping 453 matching lines...) Expand 10 before | Expand all | Expand 10 after
592 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 616 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
593 } 617 }
594 618
595 deps = [ 619 deps = [
596 "../p2p:libstunprober", 620 "../p2p:libstunprober",
597 "../p2p:rtc_p2p", 621 "../p2p:rtc_p2p",
598 "../system_wrappers:field_trial_default", 622 "../system_wrappers:field_trial_default",
599 ] 623 ]
600 } 624 }
601 } 625 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698