commit | 70a149320935d6b894be75ba691f799c5b0ec129 | [log] [tgz] |
---|---|---|
author | Maciej Żenczykowski <maze@google.com> | Tue May 09 19:50:39 2023 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Tue May 09 19:50:39 2023 +0000 |
tree | 52b4d1d5a9d2515a2d58167436c5076e5f10796b | |
parent | a468c48923e66594f2545291b356534c9696b300 [diff] | |
parent | adc70718fec15d9ccbd6a69c0f93a9ab62a3dc1c [diff] |
Merge "add congestion control test to CTS" am: be66108f84 am: adc70718fe Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/2578355 Change-Id: Icb4d2e0c092be6c06cdfd6875d85abb216c331d4 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
diff --git a/tests/cts/hostside/src/com/android/cts/net/ProcNetTest.java b/tests/cts/hostside/src/com/android/cts/net/ProcNetTest.java index 19e61c6..1a528b1 100644 --- a/tests/cts/hostside/src/com/android/cts/net/ProcNetTest.java +++ b/tests/cts/hostside/src/com/android/cts/net/ProcNetTest.java
@@ -166,4 +166,15 @@ assertTrue(interval <= upperBoundSec); } } + + /** + * Verify that cubic is used as the congestion control algorithm. + * (This repeats the VTS test, and is here for good performance of the internet as a whole.) + * TODO: revisit this once a better CC algorithm like BBR2 is available. + */ + public void testCongestionControl() throws Exception { + String path = "/proc/sys/net/ipv4/tcp_congestion_control"; + String value = mDevice.executeAdbCommand("shell", "cat", path).trim(); + assertEquals(value, "cubic"); + } }