Split android_junit_tests and move targets in the right package.

This is the first step to move //:android_junit_tests to the righ
package (the target is triggering presubmit errors every time //BUILD.gn
gets updated).

Next steps:
* Update recipes
* Remove //:android_junit_tests

Issues with GN formatting, introduced by [1] will be addressed
separately in a "format all" CL.

[1] - https://gn-review.googlesource.com/c/gn/+/6860

Bug: webrtc:11289
No-Presubmit: True
Change-Id: I70c0927d722911f82dd971c30c7ffb581aed69c0
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/166603
Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org>
Reviewed-by: Patrik Höglund <phoglund@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#30328}
This commit is contained in:
Mirko Bonadei
2020-01-20 15:28:57 +01:00
committed by Commit Bot
parent e07790ce87
commit 73aa2de3d7
4 changed files with 48 additions and 2 deletions

View File

@ -1564,4 +1564,29 @@ if (is_android) {
namespace = "webrtc::jni"
jni_generator_include = "//sdk/android/src/jni/jni_generator_helper.h"
}
junit_binary("android_sdk_junit_tests") {
sources = [
"tests/src/org/webrtc/AndroidVideoDecoderTest.java",
"tests/src/org/webrtc/CameraEnumerationTest.java",
"tests/src/org/webrtc/CodecTestHelper.java",
"tests/src/org/webrtc/CryptoOptionsTest.java",
"tests/src/org/webrtc/FakeMediaCodecWrapper.java",
"tests/src/org/webrtc/GlGenericDrawerTest.java",
"tests/src/org/webrtc/HardwareVideoEncoderTest.java",
"tests/src/org/webrtc/IceCandidateTest.java",
"tests/src/org/webrtc/ScalingSettingsTest.java",
]
deps = [
":libjingle_peerconnection_java",
"//base:base_java_test_support",
"//third_party/google-truth:google_truth_java",
]
additional_jar_files = [ [
"tests/resources/robolectric.properties",
"robolectric.properties",
] ]
}
}