Commit 05b69a7a by tonihei Committed by Marc Baechinger

Update initial bitrate estimates

#minor-release

PiperOrigin-RevId: 455140203
parent 9267ba3f
...@@ -36,6 +36,7 @@ import com.google.android.exoplayer2.util.NetworkTypeObserver; ...@@ -36,6 +36,7 @@ import com.google.android.exoplayer2.util.NetworkTypeObserver;
import com.google.android.exoplayer2.util.Util; import com.google.android.exoplayer2.util.Util;
import java.util.Random; import java.util.Random;
import org.junit.Before; import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.robolectric.Shadows; import org.robolectric.Shadows;
...@@ -123,6 +124,7 @@ public final class DefaultBandwidthMeterTest { ...@@ -123,6 +124,7 @@ public final class DefaultBandwidthMeterTest {
/* subType= */ 0, /* subType= */ 0,
/* isAvailable= */ true, /* isAvailable= */ true,
CONNECTED); CONNECTED);
setNetworkCountryIso("non-existent-country-to-force-default-values");
} }
@Test @Test
...@@ -376,6 +378,7 @@ public final class DefaultBandwidthMeterTest { ...@@ -376,6 +378,7 @@ public final class DefaultBandwidthMeterTest {
assertThat(initialEstimateFast).isGreaterThan(initialEstimateSlow); assertThat(initialEstimateFast).isGreaterThan(initialEstimateSlow);
} }
@Ignore // 5G-SA isn't widespread enough yet to define a slow and fast country for testing.
@Test @Test
@Config(minSdk = 29) // 5G-SA detection support was added in API 29. @Config(minSdk = 29) // 5G-SA detection support was added in API 29.
public void public void
......
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