OLD | NEW |
---|---|
1 # Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. | 1 # Copyright (c) 2015 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 import("//testing/test.gni") | 10 import("//testing/test.gni") |
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
392 "../media:rtc_unittest_main", | 392 "../media:rtc_unittest_main", |
393 "../pc:rtc_pc", | 393 "../pc:rtc_pc", |
394 "../system_wrappers:metrics_default", | 394 "../system_wrappers:metrics_default", |
395 "//testing/gmock", | 395 "//testing/gmock", |
396 ] | 396 ] |
397 | 397 |
398 if (is_android) { | 398 if (is_android) { |
399 deps += [ "//testing/android/native_test:native_test_support" ] | 399 deps += [ "//testing/android/native_test:native_test_support" ] |
400 } | 400 } |
401 } | 401 } |
402 | |
403 # The test below depends on libjingle_peerconnection_java which is excluded | |
404 # from the Chromium build, so it isn't built with Chromium either. | |
405 if (is_android && !build_with_chromium) { | |
kjellander_webrtc
2016/08/09 11:10:16
Since you're inside the rtc_include_tests conditio
| |
406 android_apk("libjingle_peerconnection_android_unittest_apk") { | |
407 apk_name = "libjingle_peerconnection_android" | |
408 android_manifest = "andreidtests/AndroidManifest.xml" | |
409 | |
410 deps = [ | |
411 ":libjingle_peerconnection_unittest_java", | |
kjellander_webrtc
2016/08/09 11:10:16
Change to :libjingle_peerconnection_android_unitte
| |
412 ":libjingle_peerconnection_unittest_resources", | |
kjellander_webrtc
2016/08/09 11:10:16
:libjingle_peerconnection_android_unittest_resourc
| |
413 "//base:base_java", | |
414 "//webrtc/base:base_java", | |
415 ] | |
416 | |
417 shared_libraries = [ ":libjingle_peerconnection_so" ] | |
418 } | |
419 | |
420 android_library("libjingle_peerconnection_android_unittest_java") { | |
421 java_files = [ | |
422 "androidtests/src/org/webrtc/Camera1CapturerUsingByteBufferTest.java", | |
423 "androidtests/src/org/webrtc/Camera1CapturerUsingTextureTest.java", | |
424 "androidtests/src/org/webrtc/Camera2CapturerTest.java", | |
425 "androidtests/src/org/webrtc/CameraVideoCapturerTestFixtures.java", | |
426 "androidtests/src/org/webrtc/GlRectDrawerTest.java", | |
427 "androidtests/src/org/webrtc/MediaCodecVideoEncoderTest.java", | |
428 "androidtests/src/org/webrtc/NetworkMonitorTest.java", | |
429 "androidtests/src/org/webrtc/RendererCommonTest.java", | |
430 "androidtests/src/org/webrtc/SurfaceTextureHelperTest.java", | |
431 "androidtests/src/org/webrtc/SurfaceViewRendererOnMeasureTest.java", | |
432 ] | |
433 | |
434 deps = [ | |
435 ":libjingle_peerconnection_java", | |
436 ":libjingle_peerconnection_unittest_resources", | |
kjellander_webrtc
2016/08/09 11:10:16
:libjingle_peerconnection_android_unittest_resourc
| |
437 "//webrtc/base:base_java", | |
438 ] | |
439 } | |
440 | |
441 android_resources("libjingle_peerconnection_android_unittest_resources") { | |
442 resource_dirs = [ "androidtests/res" ] | |
443 custom_package = "org.webrtc" | |
444 } | |
445 | |
446 instrumentation_test_apk("libjingle_peerconnection_android_unittest") { | |
447 apk_name = "libjingle_peerconnection_android_unittest" | |
448 android_manifest = "androidtests/AndroidManifest.xml" | |
449 | |
450 java_files = [ "androidtests/src/org/webrtc/PeerConnectionTest.java" ] | |
451 | |
452 apk_under_test = ":libjingle_peerconnection_android_unittest_apk" | |
453 | |
454 deps = [ | |
455 ":libjingle_peerconnection_java", | |
456 ":libjingle_peerconnection_unittest_java", | |
kjellander_webrtc
2016/08/09 11:10:16
:libjingle_peerconnection_android_unittest_java
| |
457 ] | |
458 } | |
459 } | |
402 } | 460 } |
OLD | NEW |