mirror of
https://github.com/samsonjs/media.git
synced 2026-04-10 12:05:47 +00:00
Update internal reference
#exofixit PiperOrigin-RevId: 322791471
This commit is contained in:
parent
0f346c8c2f
commit
9a51681332
9 changed files with 15 additions and 15 deletions
|
|
@ -124,7 +124,7 @@ public final class FormatTest {
|
|||
}
|
||||
|
||||
/** Generates an array of random bytes with the specified length. */
|
||||
// TODO(internal b/161776534): Use TestUtils when it's available in a dependency we can use here.
|
||||
// TODO(internal b/161804035): Use TestUtils when it's available in a dependency we can use here.
|
||||
private static byte[] buildTestData(int length, int seed) {
|
||||
byte[] source = new byte[length];
|
||||
new Random(seed).nextBytes(source);
|
||||
|
|
|
|||
|
|
@ -163,7 +163,7 @@ public class DrmInitDataTest {
|
|||
}
|
||||
|
||||
/** Generates an array of random bytes with the specified length. */
|
||||
// TODO(internal b/161776534): Use TestUtils when it's available in a dependency we can use here.
|
||||
// TODO(internal b/161804035): Use TestUtils when it's available in a dependency we can use here.
|
||||
private static byte[] buildTestData(int length, int seed) {
|
||||
byte[] source = new byte[length];
|
||||
new Random(seed).nextBytes(source);
|
||||
|
|
|
|||
|
|
@ -82,7 +82,7 @@ public final class EventMessageDecoderTest {
|
|||
}
|
||||
|
||||
/** Converts an array of integers in the range [0, 255] into an equivalent byte array. */
|
||||
// TODO(internal b/161776534): Use TestUtils when it's available in a dependency we can use here.
|
||||
// TODO(internal b/161804035): Use TestUtils when it's available in a dependency we can use here.
|
||||
private static byte[] createByteArray(int... bytes) {
|
||||
byte[] byteArray = new byte[bytes.length];
|
||||
for (int i = 0; i < byteArray.length; i++) {
|
||||
|
|
@ -96,7 +96,7 @@ public final class EventMessageDecoderTest {
|
|||
* Create a new {@link MetadataInputBuffer} and copy {@code data} into the backing {@link
|
||||
* ByteBuffer}.
|
||||
*/
|
||||
// TODO(internal b/161776534): Use TestUtils when it's available in a dependency we can use here.
|
||||
// TODO(internal b/161804035): Use TestUtils when it's available in a dependency we can use here.
|
||||
private static MetadataInputBuffer createMetadataInputBuffer(byte[] data) {
|
||||
MetadataInputBuffer buffer = new MetadataInputBuffer();
|
||||
buffer.data = ByteBuffer.allocate(data.length).put(data);
|
||||
|
|
|
|||
|
|
@ -79,7 +79,7 @@ public final class EventMessageEncoderTest {
|
|||
}
|
||||
|
||||
/** Converts an array of integers in the range [0, 255] into an equivalent byte array. */
|
||||
// TODO(internal b/161776534): Move to a single file.
|
||||
// TODO(internal b/161804035): Move to a single file.
|
||||
private static byte[] createByteArray(int... bytes) {
|
||||
byte[] byteArray = new byte[bytes.length];
|
||||
for (int i = 0; i < byteArray.length; i++) {
|
||||
|
|
@ -93,7 +93,7 @@ public final class EventMessageEncoderTest {
|
|||
* Create a new {@link MetadataInputBuffer} and copy {@code data} into the backing {@link
|
||||
* ByteBuffer}.
|
||||
*/
|
||||
// TODO(internal b/161776534): Use TestUtils when it's available in a dependency we can use here.
|
||||
// TODO(internal b/161804035): Use TestUtils when it's available in a dependency we can use here.
|
||||
private static MetadataInputBuffer createMetadataInputBuffer(byte[] data) {
|
||||
MetadataInputBuffer buffer = new MetadataInputBuffer();
|
||||
buffer.data = ByteBuffer.allocate(data.length).put(data);
|
||||
|
|
|
|||
|
|
@ -318,7 +318,7 @@ public final class Id3DecoderTest {
|
|||
}
|
||||
|
||||
/** Converts an array of integers in the range [0, 255] into an equivalent byte array. */
|
||||
// TODO(internal b/161776534): Move to a single file.
|
||||
// TODO(internal b/161804035): Move to a single file.
|
||||
private static byte[] createByteArray(int... bytes) {
|
||||
byte[] byteArray = new byte[bytes.length];
|
||||
for (int i = 0; i < byteArray.length; i++) {
|
||||
|
|
@ -332,7 +332,7 @@ public final class Id3DecoderTest {
|
|||
* Create a new {@link MetadataInputBuffer} and copy {@code data} into the backing {@link
|
||||
* ByteBuffer}.
|
||||
*/
|
||||
// TODO(internal b/161776534): Use TestUtils when it's available in a dependency we can use here.
|
||||
// TODO(internal b/161804035): Use TestUtils when it's available in a dependency we can use here.
|
||||
private static MetadataInputBuffer createMetadataInputBuffer(byte[] data) {
|
||||
MetadataInputBuffer buffer = new MetadataInputBuffer();
|
||||
buffer.data = ByteBuffer.allocate(data.length).put(data);
|
||||
|
|
|
|||
|
|
@ -210,7 +210,7 @@ public final class NalUnitUtilTest {
|
|||
}
|
||||
|
||||
/** Converts an array of integers in the range [0, 255] into an equivalent byte array. */
|
||||
// TODO(internal b/161776534): Use TestUtils when it's available in a dependency we can use here.
|
||||
// TODO(internal b/161804035): Use TestUtils when it's available in a dependency we can use here.
|
||||
private static byte[] createByteArray(int... bytes) {
|
||||
byte[] byteArray = new byte[bytes.length];
|
||||
for (int i = 0; i < byteArray.length; i++) {
|
||||
|
|
|
|||
|
|
@ -372,7 +372,7 @@ public final class ParsableBitArrayTest {
|
|||
}
|
||||
|
||||
/** Converts an array of integers in the range [0, 255] into an equivalent byte array. */
|
||||
// TODO(internal b/161776534): Use TestUtils when it's available in a dependency we can use here.
|
||||
// TODO(internal b/161804035): Use TestUtils when it's available in a dependency we can use here.
|
||||
private static byte[] createByteArray(int... bytes) {
|
||||
byte[] byteArray = new byte[bytes.length];
|
||||
for (int i = 0; i < byteArray.length; i++) {
|
||||
|
|
|
|||
|
|
@ -121,7 +121,7 @@ public final class ParsableNalUnitBitArrayTest {
|
|||
}
|
||||
|
||||
/** Converts an array of integers in the range [0, 255] into an equivalent byte array. */
|
||||
// TODO(internal b/161776534): Use TestUtils when it's available in a dependency we can use here.
|
||||
// TODO(internal b/161804035): Use TestUtils when it's available in a dependency we can use here.
|
||||
private static byte[] createByteArray(int... bytes) {
|
||||
byte[] byteArray = new byte[bytes.length];
|
||||
for (int i = 0; i < byteArray.length; i++) {
|
||||
|
|
|
|||
|
|
@ -742,7 +742,7 @@ public class UtilTest {
|
|||
|
||||
assertThat(result).isInstanceOf(SpannableString.class);
|
||||
assertThat(result.toString()).isEqualTo("a short");
|
||||
// TODO(internal b/161776534): Use SpannedSubject when it's available in a dependency we can use
|
||||
// TODO(internal b/161804035): Use SpannedSubject when it's available in a dependency we can use
|
||||
// from here.
|
||||
Spanned spannedResult = (Spanned) result;
|
||||
Object[] spans = spannedResult.getSpans(0, result.length(), Object.class);
|
||||
|
|
@ -1057,13 +1057,13 @@ public class UtilTest {
|
|||
}
|
||||
|
||||
/** Equivalent to {@code buildTestData(length, length)}. */
|
||||
// TODO(internal b/161776534): Use TestUtils when it's available in a dependency we can use here.
|
||||
// TODO(internal b/161804035): Use TestUtils when it's available in a dependency we can use here.
|
||||
private static byte[] buildTestData(int length) {
|
||||
return buildTestData(length, length);
|
||||
}
|
||||
|
||||
/** Generates a random string with the specified maximum length. */
|
||||
// TODO(internal b/161776534): Use TestUtils when it's available in a dependency we can use here.
|
||||
// TODO(internal b/161804035): Use TestUtils when it's available in a dependency we can use here.
|
||||
private static String buildTestString(int maximumLength, Random random) {
|
||||
int length = random.nextInt(maximumLength);
|
||||
StringBuilder builder = new StringBuilder(length);
|
||||
|
|
@ -1074,7 +1074,7 @@ public class UtilTest {
|
|||
}
|
||||
|
||||
/** Converts an array of integers in the range [0, 255] into an equivalent byte array. */
|
||||
// TODO(internal b/161776534): Use TestUtils when it's available in a dependency we can use here.
|
||||
// TODO(internal b/161804035): Use TestUtils when it's available in a dependency we can use here.
|
||||
private static byte[] createByteArray(int... bytes) {
|
||||
byte[] byteArray = new byte[bytes.length];
|
||||
for (int i = 0; i < byteArray.length; i++) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue