Xavier Lepaul a76ae851ad Run instrumentation tests with the default runner
This migrates all tests that work by just changing their runner.

This excludes tests using `@RunWith(ParameterizedRunner.class)`, and a
few other non-parameterized tests that fail with the default runner.

Bug: webrtc:13662
Change-Id: Ia0b7c80e04a6a6b7a51348b3a7f587d10061b58e
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/256367
Reviewed-by: Björn Terelius <terelius@webrtc.org>
Commit-Queue: Xavier Lepaul‎ <xalep@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#36298}
2022-03-23 10:01:04 +00:00

44 lines
1.1 KiB
Java

/*
* Copyright 2018 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributing project authors may
* be found in the AUTHORS file in the root of the source tree.
*/
package org.webrtc;
import androidx.test.filters.SmallTest;
import org.junit.BeforeClass;
import org.junit.Test;
public class TimestampAlignerTest {
@BeforeClass
public static void setUp() {
System.loadLibrary(TestConstants.NATIVE_LIBRARY);
}
@Test
@SmallTest
public void testGetRtcTimeNanos() {
TimestampAligner.getRtcTimeNanos();
}
@Test
@SmallTest
public void testDispose() {
final TimestampAligner timestampAligner = new TimestampAligner();
timestampAligner.dispose();
}
@Test
@SmallTest
public void testTranslateTimestamp() {
final TimestampAligner timestampAligner = new TimestampAligner();
timestampAligner.translateTimestamp(/* cameraTimeNs= */ 123);
timestampAligner.dispose();
}
}