Drop prefix test- from test methods under v2/playbacktests

This is one step toward following the google3's test naming convention.
See go/java-testing/getting_started#basic-test-template for details
why prefix test isn't necessary.

This CL is generated by following command
$ find -name '*Test.java' | xargs -I{} sed -i 's/^\ \ public\ void\ test\([A-Z]\)\(.*\)$/  public void \L\1\E\2/' {}

PiperOrigin-RevId: 300537212
This commit is contained in:
olly 2020-03-12 13:37:17 +00:00 committed by Oliver Woodman
parent 2f91c12f56
commit beab272a8c
5 changed files with 40 additions and 40 deletions

View File

@ -63,7 +63,7 @@ public final class CommonEncryptionDrmTest {
} }
@Test @Test
public void testCencSchemeTypeV18() { public void cencSchemeTypeV18() {
if (Util.SDK_INT < 18) { if (Util.SDK_INT < 18) {
// Pass. // Pass.
return; return;
@ -75,7 +75,7 @@ public final class CommonEncryptionDrmTest {
} }
@Test @Test
public void testCbc1SchemeTypeV25() { public void cbc1SchemeTypeV25() {
if (Util.SDK_INT < 25) { if (Util.SDK_INT < 25) {
// cbc1 support was added in API 24, but it is stable from API 25 onwards. // cbc1 support was added in API 24, but it is stable from API 25 onwards.
// See [internal: b/65634809]. // See [internal: b/65634809].
@ -89,7 +89,7 @@ public final class CommonEncryptionDrmTest {
} }
@Test @Test
public void testCbcsSchemeTypeV25() { public void cbcsSchemeTypeV25() {
if (Util.SDK_INT < 25) { if (Util.SDK_INT < 25) {
// cbcs support was added in API 24, but it is stable from API 25 onwards. // cbcs support was added in API 24, but it is stable from API 25 onwards.
// See [internal: b/65634809]. // See [internal: b/65634809].
@ -103,7 +103,7 @@ public final class CommonEncryptionDrmTest {
} }
@Test @Test
public void testCensSchemeTypeV25() { public void censSchemeTypeV25() {
// TODO: Implement once content is available. Track [internal: b/31219813]. // TODO: Implement once content is available. Track [internal: b/31219813].
} }
} }

View File

@ -87,7 +87,7 @@ public final class DashDownloadTest {
// Download tests // Download tests
@Test @Test
public void testDownload() throws Exception { public void download() throws Exception {
DashDownloader dashDownloader = downloadContent(); DashDownloader dashDownloader = downloadContent();
dashDownloader.download(/* progressListener= */ null); dashDownloader.download(/* progressListener= */ null);

View File

@ -101,7 +101,7 @@ public final class DashStreamingTest {
// H264 CDD. // H264 CDD.
@Test @Test
public void testH264Fixed() throws Exception { public void h264Fixed() throws Exception {
testRunner testRunner
.setStreamName("test_h264_fixed") .setStreamName("test_h264_fixed")
.setManifestUrl(DashTestData.H264_MANIFEST) .setManifestUrl(DashTestData.H264_MANIFEST)
@ -112,7 +112,7 @@ public final class DashStreamingTest {
} }
@Test @Test
public void testH264Adaptive() throws Exception { public void h264Adaptive() throws Exception {
if (shouldSkipAdaptiveTest(MimeTypes.VIDEO_H264)) { if (shouldSkipAdaptiveTest(MimeTypes.VIDEO_H264)) {
// Pass. // Pass.
return; return;
@ -128,7 +128,7 @@ public final class DashStreamingTest {
} }
@Test @Test
public void testH264AdaptiveWithSeeking() throws Exception { public void h264AdaptiveWithSeeking() throws Exception {
if (shouldSkipAdaptiveTest(MimeTypes.VIDEO_H264)) { if (shouldSkipAdaptiveTest(MimeTypes.VIDEO_H264)) {
// Pass. // Pass.
return; return;
@ -146,7 +146,7 @@ public final class DashStreamingTest {
} }
@Test @Test
public void testH264AdaptiveWithRendererDisabling() throws Exception { public void h264AdaptiveWithRendererDisabling() throws Exception {
if (shouldSkipAdaptiveTest(MimeTypes.VIDEO_H264)) { if (shouldSkipAdaptiveTest(MimeTypes.VIDEO_H264)) {
// Pass. // Pass.
return; return;
@ -166,7 +166,7 @@ public final class DashStreamingTest {
// H265 CDD. // H265 CDD.
@Test @Test
public void testH265FixedV23() throws Exception { public void h265FixedV23() throws Exception {
if (Util.SDK_INT < 23) { if (Util.SDK_INT < 23) {
// Pass. // Pass.
return; return;
@ -181,7 +181,7 @@ public final class DashStreamingTest {
} }
@Test @Test
public void testH265AdaptiveV24() throws Exception { public void h265AdaptiveV24() throws Exception {
if (Util.SDK_INT < 24) { if (Util.SDK_INT < 24) {
// Pass. // Pass.
return; return;
@ -197,7 +197,7 @@ public final class DashStreamingTest {
} }
@Test @Test
public void testH265AdaptiveWithSeekingV24() throws Exception { public void h265AdaptiveWithSeekingV24() throws Exception {
if (Util.SDK_INT < 24) { if (Util.SDK_INT < 24) {
// Pass. // Pass.
return; return;
@ -214,7 +214,7 @@ public final class DashStreamingTest {
} }
@Test @Test
public void testH265AdaptiveWithRendererDisablingV24() throws Exception { public void h265AdaptiveWithRendererDisablingV24() throws Exception {
if (Util.SDK_INT < 24) { if (Util.SDK_INT < 24) {
// Pass. // Pass.
return; return;
@ -233,7 +233,7 @@ public final class DashStreamingTest {
// VP9 (CDD). // VP9 (CDD).
@Test @Test
public void testVp9Fixed360pV23() throws Exception { public void vp9Fixed360pV23() throws Exception {
if (Util.SDK_INT < 23) { if (Util.SDK_INT < 23) {
// Pass. // Pass.
return; return;
@ -249,7 +249,7 @@ public final class DashStreamingTest {
} }
@Test @Test
public void testVp9AdaptiveV24() throws Exception { public void vp9AdaptiveV24() throws Exception {
if (Util.SDK_INT < 24) { if (Util.SDK_INT < 24) {
// Pass. // Pass.
return; return;
@ -265,7 +265,7 @@ public final class DashStreamingTest {
} }
@Test @Test
public void testVp9AdaptiveWithSeekingV24() throws Exception { public void vp9AdaptiveWithSeekingV24() throws Exception {
if (Util.SDK_INT < 24) { if (Util.SDK_INT < 24) {
// Pass. // Pass.
return; return;
@ -282,7 +282,7 @@ public final class DashStreamingTest {
} }
@Test @Test
public void testVp9AdaptiveWithRendererDisablingV24() throws Exception { public void vp9AdaptiveWithRendererDisablingV24() throws Exception {
if (Util.SDK_INT < 24) { if (Util.SDK_INT < 24) {
// Pass. // Pass.
return; return;
@ -355,7 +355,7 @@ public final class DashStreamingTest {
// H264 CDD. // H264 CDD.
@Test @Test
public void testWidevineH264FixedV18() throws Exception { public void widevineH264FixedV18() throws Exception {
if (Util.SDK_INT < 18) { if (Util.SDK_INT < 18) {
// Pass. // Pass.
return; return;
@ -372,7 +372,7 @@ public final class DashStreamingTest {
} }
@Test @Test
public void testWidevineH264AdaptiveV18() throws Exception { public void widevineH264AdaptiveV18() throws Exception {
if (Util.SDK_INT < 18 || shouldSkipAdaptiveTest(MimeTypes.VIDEO_H264)) { if (Util.SDK_INT < 18 || shouldSkipAdaptiveTest(MimeTypes.VIDEO_H264)) {
// Pass. // Pass.
return; return;
@ -389,7 +389,7 @@ public final class DashStreamingTest {
} }
@Test @Test
public void testWidevineH264AdaptiveWithSeekingV18() throws Exception { public void widevineH264AdaptiveWithSeekingV18() throws Exception {
if (Util.SDK_INT < 18 || shouldSkipAdaptiveTest(MimeTypes.VIDEO_H264)) { if (Util.SDK_INT < 18 || shouldSkipAdaptiveTest(MimeTypes.VIDEO_H264)) {
// Pass. // Pass.
return; return;
@ -407,7 +407,7 @@ public final class DashStreamingTest {
} }
@Test @Test
public void testWidevineH264AdaptiveWithRendererDisablingV18() throws Exception { public void widevineH264AdaptiveWithRendererDisablingV18() throws Exception {
if (Util.SDK_INT < 18 || shouldSkipAdaptiveTest(MimeTypes.VIDEO_H264)) { if (Util.SDK_INT < 18 || shouldSkipAdaptiveTest(MimeTypes.VIDEO_H264)) {
// Pass. // Pass.
return; return;
@ -427,7 +427,7 @@ public final class DashStreamingTest {
// H265 CDD. // H265 CDD.
@Test @Test
public void testWidevineH265FixedV23() throws Exception { public void widevineH265FixedV23() throws Exception {
if (Util.SDK_INT < 23) { if (Util.SDK_INT < 23) {
// Pass. // Pass.
return; return;
@ -444,7 +444,7 @@ public final class DashStreamingTest {
} }
@Test @Test
public void testWidevineH265AdaptiveV24() throws Exception { public void widevineH265AdaptiveV24() throws Exception {
if (Util.SDK_INT < 24) { if (Util.SDK_INT < 24) {
// Pass. // Pass.
return; return;
@ -461,7 +461,7 @@ public final class DashStreamingTest {
} }
@Test @Test
public void testWidevineH265AdaptiveWithSeekingV24() throws Exception { public void widevineH265AdaptiveWithSeekingV24() throws Exception {
if (Util.SDK_INT < 24) { if (Util.SDK_INT < 24) {
// Pass. // Pass.
return; return;
@ -479,7 +479,7 @@ public final class DashStreamingTest {
} }
@Test @Test
public void testWidevineH265AdaptiveWithRendererDisablingV24() throws Exception { public void widevineH265AdaptiveWithRendererDisablingV24() throws Exception {
if (Util.SDK_INT < 24) { if (Util.SDK_INT < 24) {
// Pass. // Pass.
return; return;
@ -499,7 +499,7 @@ public final class DashStreamingTest {
// VP9 (CDD). // VP9 (CDD).
@Test @Test
public void testWidevineVp9Fixed360pV23() throws Exception { public void widevineVp9Fixed360pV23() throws Exception {
if (Util.SDK_INT < 23) { if (Util.SDK_INT < 23) {
// Pass. // Pass.
return; return;
@ -516,7 +516,7 @@ public final class DashStreamingTest {
} }
@Test @Test
public void testWidevineVp9AdaptiveV24() throws Exception { public void widevineVp9AdaptiveV24() throws Exception {
if (Util.SDK_INT < 24) { if (Util.SDK_INT < 24) {
// Pass. // Pass.
return; return;
@ -533,7 +533,7 @@ public final class DashStreamingTest {
} }
@Test @Test
public void testWidevineVp9AdaptiveWithSeekingV24() throws Exception { public void widevineVp9AdaptiveWithSeekingV24() throws Exception {
if (Util.SDK_INT < 24) { if (Util.SDK_INT < 24) {
// Pass. // Pass.
return; return;
@ -551,7 +551,7 @@ public final class DashStreamingTest {
} }
@Test @Test
public void testWidevineVp9AdaptiveWithRendererDisablingV24() throws Exception { public void widevineVp9AdaptiveWithRendererDisablingV24() throws Exception {
if (Util.SDK_INT < 24) { if (Util.SDK_INT < 24) {
// Pass. // Pass.
return; return;
@ -572,7 +572,7 @@ public final class DashStreamingTest {
// 23.976 fps. // 23.976 fps.
@Test @Test
public void testWidevine23FpsH264FixedV23() throws Exception { public void widevine23FpsH264FixedV23() throws Exception {
if (Util.SDK_INT < 23) { if (Util.SDK_INT < 23) {
// Pass. // Pass.
return; return;
@ -590,7 +590,7 @@ public final class DashStreamingTest {
// 24 fps. // 24 fps.
@Test @Test
public void testWidevine24FpsH264FixedV23() throws Exception { public void widevine24FpsH264FixedV23() throws Exception {
if (Util.SDK_INT < 23) { if (Util.SDK_INT < 23) {
// Pass. // Pass.
return; return;
@ -608,7 +608,7 @@ public final class DashStreamingTest {
// 29.97 fps. // 29.97 fps.
@Test @Test
public void testWidevine29FpsH264FixedV23() throws Exception { public void widevine29FpsH264FixedV23() throws Exception {
if (Util.SDK_INT < 23) { if (Util.SDK_INT < 23) {
// Pass. // Pass.
return; return;
@ -627,7 +627,7 @@ public final class DashStreamingTest {
// Decoder info. // Decoder info.
@Test @Test
public void testDecoderInfoH264() throws Exception { public void decoderInfoH264() throws Exception {
MediaCodecInfo decoderInfo = MediaCodecInfo decoderInfo =
MediaCodecUtil.getDecoderInfo( MediaCodecUtil.getDecoderInfo(
MimeTypes.VIDEO_H264, /* secure= */ false, /* tunneling= */ false); MimeTypes.VIDEO_H264, /* secure= */ false, /* tunneling= */ false);
@ -636,7 +636,7 @@ public final class DashStreamingTest {
} }
@Test @Test
public void testDecoderInfoH265V24() throws Exception { public void decoderInfoH265V24() throws Exception {
if (Util.SDK_INT < 24) { if (Util.SDK_INT < 24) {
// Pass. // Pass.
return; return;
@ -649,7 +649,7 @@ public final class DashStreamingTest {
} }
@Test @Test
public void testDecoderInfoVP9V24() throws Exception { public void decoderInfoVP9V24() throws Exception {
if (Util.SDK_INT < 24) { if (Util.SDK_INT < 24) {
// Pass. // Pass.
return; return;

View File

@ -98,7 +98,7 @@ public final class DashWidevineOfflineTest {
// Offline license tests // Offline license tests
@Test @Test
public void testWidevineOfflineLicenseV22() throws Exception { public void widevineOfflineLicenseV22() throws Exception {
if (Util.SDK_INT < 22) { if (Util.SDK_INT < 22) {
return; // Pass. return; // Pass.
} }
@ -111,7 +111,7 @@ public final class DashWidevineOfflineTest {
} }
@Test @Test
public void testWidevineOfflineReleasedLicenseV22() throws Throwable { public void widevineOfflineReleasedLicenseV22() throws Throwable {
if (Util.SDK_INT < 22) { if (Util.SDK_INT < 22) {
return; // Pass. return; // Pass.
} }
@ -138,7 +138,7 @@ public final class DashWidevineOfflineTest {
} }
@Test @Test
public void testWidevineOfflineExpiredLicenseV22() throws Exception { public void widevineOfflineExpiredLicenseV22() throws Exception {
if (Util.SDK_INT < 22) { if (Util.SDK_INT < 22) {
return; // Pass. return; // Pass.
} }
@ -168,7 +168,7 @@ public final class DashWidevineOfflineTest {
} }
@Test @Test
public void testWidevineOfflineLicenseExpiresOnPauseV22() throws Exception { public void widevineOfflineLicenseExpiresOnPauseV22() throws Exception {
if (Util.SDK_INT < 22) { if (Util.SDK_INT < 22) {
return; // Pass. return; // Pass.
} }

View File

@ -47,7 +47,7 @@ public class EnumerateDecodersTest {
} }
@Test @Test
public void testEnumerateDecoders() throws Exception { public void enumerateDecoders() throws Exception {
enumerateDecoders(MimeTypes.VIDEO_H263); enumerateDecoders(MimeTypes.VIDEO_H263);
enumerateDecoders(MimeTypes.VIDEO_H264); enumerateDecoders(MimeTypes.VIDEO_H264);
enumerateDecoders(MimeTypes.VIDEO_H265); enumerateDecoders(MimeTypes.VIDEO_H265);