Commit 9a516813 by christosts Committed by Oliver Woodman

Update internal reference

#exofixit

PiperOrigin-RevId: 322791471
parent 0f346c8c
...@@ -124,7 +124,7 @@ public final class FormatTest { ...@@ -124,7 +124,7 @@ public final class FormatTest {
} }
/** Generates an array of random bytes with the specified length. */ /** 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) { private static byte[] buildTestData(int length, int seed) {
byte[] source = new byte[length]; byte[] source = new byte[length];
new Random(seed).nextBytes(source); new Random(seed).nextBytes(source);
......
...@@ -163,7 +163,7 @@ public class DrmInitDataTest { ...@@ -163,7 +163,7 @@ public class DrmInitDataTest {
} }
/** Generates an array of random bytes with the specified length. */ /** 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) { private static byte[] buildTestData(int length, int seed) {
byte[] source = new byte[length]; byte[] source = new byte[length];
new Random(seed).nextBytes(source); new Random(seed).nextBytes(source);
......
...@@ -82,7 +82,7 @@ public final class EventMessageDecoderTest { ...@@ -82,7 +82,7 @@ public final class EventMessageDecoderTest {
} }
/** Converts an array of integers in the range [0, 255] into an equivalent byte array. */ /** 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) { private static byte[] createByteArray(int... bytes) {
byte[] byteArray = new byte[bytes.length]; byte[] byteArray = new byte[bytes.length];
for (int i = 0; i < byteArray.length; i++) { for (int i = 0; i < byteArray.length; i++) {
...@@ -96,7 +96,7 @@ public final class EventMessageDecoderTest { ...@@ -96,7 +96,7 @@ public final class EventMessageDecoderTest {
* Create a new {@link MetadataInputBuffer} and copy {@code data} into the backing {@link * Create a new {@link MetadataInputBuffer} and copy {@code data} into the backing {@link
* ByteBuffer}. * 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) { private static MetadataInputBuffer createMetadataInputBuffer(byte[] data) {
MetadataInputBuffer buffer = new MetadataInputBuffer(); MetadataInputBuffer buffer = new MetadataInputBuffer();
buffer.data = ByteBuffer.allocate(data.length).put(data); buffer.data = ByteBuffer.allocate(data.length).put(data);
......
...@@ -79,7 +79,7 @@ public final class EventMessageEncoderTest { ...@@ -79,7 +79,7 @@ public final class EventMessageEncoderTest {
} }
/** Converts an array of integers in the range [0, 255] into an equivalent byte array. */ /** 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) { private static byte[] createByteArray(int... bytes) {
byte[] byteArray = new byte[bytes.length]; byte[] byteArray = new byte[bytes.length];
for (int i = 0; i < byteArray.length; i++) { for (int i = 0; i < byteArray.length; i++) {
...@@ -93,7 +93,7 @@ public final class EventMessageEncoderTest { ...@@ -93,7 +93,7 @@ public final class EventMessageEncoderTest {
* Create a new {@link MetadataInputBuffer} and copy {@code data} into the backing {@link * Create a new {@link MetadataInputBuffer} and copy {@code data} into the backing {@link
* ByteBuffer}. * 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) { private static MetadataInputBuffer createMetadataInputBuffer(byte[] data) {
MetadataInputBuffer buffer = new MetadataInputBuffer(); MetadataInputBuffer buffer = new MetadataInputBuffer();
buffer.data = ByteBuffer.allocate(data.length).put(data); buffer.data = ByteBuffer.allocate(data.length).put(data);
......
...@@ -318,7 +318,7 @@ public final class Id3DecoderTest { ...@@ -318,7 +318,7 @@ public final class Id3DecoderTest {
} }
/** Converts an array of integers in the range [0, 255] into an equivalent byte array. */ /** 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) { private static byte[] createByteArray(int... bytes) {
byte[] byteArray = new byte[bytes.length]; byte[] byteArray = new byte[bytes.length];
for (int i = 0; i < byteArray.length; i++) { for (int i = 0; i < byteArray.length; i++) {
...@@ -332,7 +332,7 @@ public final class Id3DecoderTest { ...@@ -332,7 +332,7 @@ public final class Id3DecoderTest {
* Create a new {@link MetadataInputBuffer} and copy {@code data} into the backing {@link * Create a new {@link MetadataInputBuffer} and copy {@code data} into the backing {@link
* ByteBuffer}. * 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) { private static MetadataInputBuffer createMetadataInputBuffer(byte[] data) {
MetadataInputBuffer buffer = new MetadataInputBuffer(); MetadataInputBuffer buffer = new MetadataInputBuffer();
buffer.data = ByteBuffer.allocate(data.length).put(data); buffer.data = ByteBuffer.allocate(data.length).put(data);
......
...@@ -210,7 +210,7 @@ public final class NalUnitUtilTest { ...@@ -210,7 +210,7 @@ public final class NalUnitUtilTest {
} }
/** Converts an array of integers in the range [0, 255] into an equivalent byte array. */ /** 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) { private static byte[] createByteArray(int... bytes) {
byte[] byteArray = new byte[bytes.length]; byte[] byteArray = new byte[bytes.length];
for (int i = 0; i < byteArray.length; i++) { for (int i = 0; i < byteArray.length; i++) {
......
...@@ -372,7 +372,7 @@ public final class ParsableBitArrayTest { ...@@ -372,7 +372,7 @@ public final class ParsableBitArrayTest {
} }
/** Converts an array of integers in the range [0, 255] into an equivalent byte array. */ /** 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) { private static byte[] createByteArray(int... bytes) {
byte[] byteArray = new byte[bytes.length]; byte[] byteArray = new byte[bytes.length];
for (int i = 0; i < byteArray.length; i++) { for (int i = 0; i < byteArray.length; i++) {
......
...@@ -121,7 +121,7 @@ public final class ParsableNalUnitBitArrayTest { ...@@ -121,7 +121,7 @@ public final class ParsableNalUnitBitArrayTest {
} }
/** Converts an array of integers in the range [0, 255] into an equivalent byte array. */ /** 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) { private static byte[] createByteArray(int... bytes) {
byte[] byteArray = new byte[bytes.length]; byte[] byteArray = new byte[bytes.length];
for (int i = 0; i < byteArray.length; i++) { for (int i = 0; i < byteArray.length; i++) {
......
...@@ -742,7 +742,7 @@ public class UtilTest { ...@@ -742,7 +742,7 @@ public class UtilTest {
assertThat(result).isInstanceOf(SpannableString.class); assertThat(result).isInstanceOf(SpannableString.class);
assertThat(result.toString()).isEqualTo("a short"); 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. // from here.
Spanned spannedResult = (Spanned) result; Spanned spannedResult = (Spanned) result;
Object[] spans = spannedResult.getSpans(0, result.length(), Object.class); Object[] spans = spannedResult.getSpans(0, result.length(), Object.class);
...@@ -1057,13 +1057,13 @@ public class UtilTest { ...@@ -1057,13 +1057,13 @@ public class UtilTest {
} }
/** Equivalent to {@code buildTestData(length, length)}. */ /** 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) { private static byte[] buildTestData(int length) {
return buildTestData(length, length); return buildTestData(length, length);
} }
/** Generates a random string with the specified maximum 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) { private static String buildTestString(int maximumLength, Random random) {
int length = random.nextInt(maximumLength); int length = random.nextInt(maximumLength);
StringBuilder builder = new StringBuilder(length); StringBuilder builder = new StringBuilder(length);
...@@ -1074,7 +1074,7 @@ public class UtilTest { ...@@ -1074,7 +1074,7 @@ public class UtilTest {
} }
/** Converts an array of integers in the range [0, 255] into an equivalent byte array. */ /** 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) { private static byte[] createByteArray(int... bytes) {
byte[] byteArray = new byte[bytes.length]; byte[] byteArray = new byte[bytes.length];
for (int i = 0; i < byteArray.length; i++) { for (int i = 0; i < byteArray.length; i++) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment