mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00
Remove unnecessary throws Exception
from HlsChunkSourceTest
PiperOrigin-RevId: 640552488
This commit is contained in:
parent
8a02b44c96
commit
438279a3a0
@ -93,7 +93,7 @@ public class HlsChunkSourceTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void getAdjustedSeekPositionUs_previousSync() throws IOException {
|
public void getAdjustedSeekPositionUs_previousSync() {
|
||||||
HlsChunkSource testChunkSource = createHlsChunkSource(/* cmcdConfiguration= */ null);
|
HlsChunkSource testChunkSource = createHlsChunkSource(/* cmcdConfiguration= */ null);
|
||||||
|
|
||||||
long adjustedPositionUs =
|
long adjustedPositionUs =
|
||||||
@ -104,7 +104,7 @@ public class HlsChunkSourceTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void getAdjustedSeekPositionUs_nextSync() throws IOException {
|
public void getAdjustedSeekPositionUs_nextSync() {
|
||||||
HlsChunkSource testChunkSource = createHlsChunkSource(/* cmcdConfiguration= */ null);
|
HlsChunkSource testChunkSource = createHlsChunkSource(/* cmcdConfiguration= */ null);
|
||||||
|
|
||||||
long adjustedPositionUs =
|
long adjustedPositionUs =
|
||||||
@ -115,7 +115,7 @@ public class HlsChunkSourceTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void getAdjustedSeekPositionUs_nextSyncAtEnd() throws IOException {
|
public void getAdjustedSeekPositionUs_nextSyncAtEnd() {
|
||||||
HlsChunkSource testChunkSource = createHlsChunkSource(/* cmcdConfiguration= */ null);
|
HlsChunkSource testChunkSource = createHlsChunkSource(/* cmcdConfiguration= */ null);
|
||||||
|
|
||||||
long adjustedPositionUs =
|
long adjustedPositionUs =
|
||||||
@ -126,7 +126,7 @@ public class HlsChunkSourceTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void getAdjustedSeekPositionUs_closestSyncBefore() throws IOException {
|
public void getAdjustedSeekPositionUs_closestSyncBefore() {
|
||||||
HlsChunkSource testChunkSource = createHlsChunkSource(/* cmcdConfiguration= */ null);
|
HlsChunkSource testChunkSource = createHlsChunkSource(/* cmcdConfiguration= */ null);
|
||||||
|
|
||||||
long adjustedPositionUs =
|
long adjustedPositionUs =
|
||||||
@ -137,7 +137,7 @@ public class HlsChunkSourceTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void getAdjustedSeekPositionUs_closestSyncAfter() throws IOException {
|
public void getAdjustedSeekPositionUs_closestSyncAfter() {
|
||||||
HlsChunkSource testChunkSource = createHlsChunkSource(/* cmcdConfiguration= */ null);
|
HlsChunkSource testChunkSource = createHlsChunkSource(/* cmcdConfiguration= */ null);
|
||||||
|
|
||||||
long adjustedPositionUs =
|
long adjustedPositionUs =
|
||||||
@ -148,7 +148,7 @@ public class HlsChunkSourceTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void getAdjustedSeekPositionUs_exact() throws IOException {
|
public void getAdjustedSeekPositionUs_exact() {
|
||||||
HlsChunkSource testChunkSource = createHlsChunkSource(/* cmcdConfiguration= */ null);
|
HlsChunkSource testChunkSource = createHlsChunkSource(/* cmcdConfiguration= */ null);
|
||||||
|
|
||||||
long adjustedPositionUs =
|
long adjustedPositionUs =
|
||||||
@ -354,8 +354,7 @@ public class HlsChunkSourceTest {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void
|
public void
|
||||||
getNextChunk_chunkSourceWithCustomCmcdConfigurationAndCustomData_setsCmcdHttpRequestHeaders()
|
getNextChunk_chunkSourceWithCustomCmcdConfigurationAndCustomData_setsCmcdHttpRequestHeaders() {
|
||||||
throws Exception {
|
|
||||||
CmcdConfiguration.Factory cmcdConfigurationFactory =
|
CmcdConfiguration.Factory cmcdConfigurationFactory =
|
||||||
mediaItem -> {
|
mediaItem -> {
|
||||||
CmcdConfiguration.RequestConfig cmcdRequestConfig =
|
CmcdConfiguration.RequestConfig cmcdRequestConfig =
|
||||||
@ -405,8 +404,7 @@ public class HlsChunkSourceTest {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void
|
public void
|
||||||
getNextChunk_chunkSourceWithCustomCmcdConfigurationAndCustomData_setsCmcdHttpQueryParameters()
|
getNextChunk_chunkSourceWithCustomCmcdConfigurationAndCustomData_setsCmcdHttpQueryParameters() {
|
||||||
throws Exception {
|
|
||||||
CmcdConfiguration.Factory cmcdConfigurationFactory =
|
CmcdConfiguration.Factory cmcdConfigurationFactory =
|
||||||
mediaItem -> {
|
mediaItem -> {
|
||||||
CmcdConfiguration.RequestConfig cmcdRequestConfig =
|
CmcdConfiguration.RequestConfig cmcdRequestConfig =
|
||||||
|
Loading…
x
Reference in New Issue
Block a user