Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
SDK
/
exoplayer
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
9a516813
authored
Jul 23, 2020
by
christosts
Committed by
Oliver Woodman
Jul 24, 2020
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Update internal reference
#exofixit PiperOrigin-RevId: 322791471
parent
0f346c8c
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
15 additions
and
15 deletions
library/common/src/test/java/com/google/android/exoplayer2/FormatTest.java
library/common/src/test/java/com/google/android/exoplayer2/drm/DrmInitDataTest.java
library/common/src/test/java/com/google/android/exoplayer2/metadata/emsg/EventMessageDecoderTest.java
library/common/src/test/java/com/google/android/exoplayer2/metadata/emsg/EventMessageEncoderTest.java
library/common/src/test/java/com/google/android/exoplayer2/metadata/id3/Id3DecoderTest.java
library/common/src/test/java/com/google/android/exoplayer2/util/NalUnitUtilTest.java
library/common/src/test/java/com/google/android/exoplayer2/util/ParsableBitArrayTest.java
library/common/src/test/java/com/google/android/exoplayer2/util/ParsableNalUnitBitArrayTest.java
library/common/src/test/java/com/google/android/exoplayer2/util/UtilTest.java
library/common/src/test/java/com/google/android/exoplayer2/FormatTest.java
View file @
9a516813
...
...
@@ -124,7 +124,7 @@ public final class FormatTest {
}
/** Generates an array of random bytes with the specified length. */
// TODO(internal b/161
776534
): Use TestUtils when it's available in a dependency we can use here.
// TODO(internal b/161
804035
): 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
);
...
...
library/common/src/test/java/com/google/android/exoplayer2/drm/DrmInitDataTest.java
View file @
9a516813
...
...
@@ -163,7 +163,7 @@ public class DrmInitDataTest {
}
/** Generates an array of random bytes with the specified length. */
// TODO(internal b/161
776534
): Use TestUtils when it's available in a dependency we can use here.
// TODO(internal b/161
804035
): 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
);
...
...
library/common/src/test/java/com/google/android/exoplayer2/metadata/emsg/EventMessageDecoderTest.java
View file @
9a516813
...
...
@@ -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/161
776534
): Use TestUtils when it's available in a dependency we can use here.
// TODO(internal b/161
804035
): 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/161
776534
): Use TestUtils when it's available in a dependency we can use here.
// TODO(internal b/161
804035
): 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
);
...
...
library/common/src/test/java/com/google/android/exoplayer2/metadata/emsg/EventMessageEncoderTest.java
View file @
9a516813
...
...
@@ -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/161
776534
): Move to a single file.
// TODO(internal b/161
804035
): 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/161
776534
): Use TestUtils when it's available in a dependency we can use here.
// TODO(internal b/161
804035
): 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
);
...
...
library/common/src/test/java/com/google/android/exoplayer2/metadata/id3/Id3DecoderTest.java
View file @
9a516813
...
...
@@ -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/161
776534
): Move to a single file.
// TODO(internal b/161
804035
): 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/161
776534
): Use TestUtils when it's available in a dependency we can use here.
// TODO(internal b/161
804035
): 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
);
...
...
library/common/src/test/java/com/google/android/exoplayer2/util/NalUnitUtilTest.java
View file @
9a516813
...
...
@@ -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/161
776534
): Use TestUtils when it's available in a dependency we can use here.
// TODO(internal b/161
804035
): 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
++)
{
...
...
library/common/src/test/java/com/google/android/exoplayer2/util/ParsableBitArrayTest.java
View file @
9a516813
...
...
@@ -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/161
776534
): Use TestUtils when it's available in a dependency we can use here.
// TODO(internal b/161
804035
): 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
++)
{
...
...
library/common/src/test/java/com/google/android/exoplayer2/util/ParsableNalUnitBitArrayTest.java
View file @
9a516813
...
...
@@ -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/161
776534
): Use TestUtils when it's available in a dependency we can use here.
// TODO(internal b/161
804035
): 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
++)
{
...
...
library/common/src/test/java/com/google/android/exoplayer2/util/UtilTest.java
View file @
9a516813
...
...
@@ -742,7 +742,7 @@ public class UtilTest {
assertThat
(
result
).
isInstanceOf
(
SpannableString
.
class
);
assertThat
(
result
.
toString
()).
isEqualTo
(
"a short"
);
// TODO(internal b/161
776534
): Use SpannedSubject when it's available in a dependency we can use
// TODO(internal b/161
804035
): 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/161
776534
): Use TestUtils when it's available in a dependency we can use here.
// TODO(internal b/161
804035
): 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/161
776534
): Use TestUtils when it's available in a dependency we can use here.
// TODO(internal b/161
804035
): 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/161
776534
): Use TestUtils when it's available in a dependency we can use here.
// TODO(internal b/161
804035
): 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
++)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment