commit | e6b858f94a834e711e762c42030d3fb35195672b | [log] [tgz] |
---|---|---|
author | Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> | Fri May 12 10:38:03 2023 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Fri May 12 10:38:03 2023 +0000 |
tree | a8dbc3420b59817568b0f9ec8059fb66847ef97d | |
parent | 5c6d09dd042abbff3e42b08588138c42d3627fa6 [diff] | |
parent | a6839c78999817c5cc6dac0690d04f720454162e [diff] |
Merge "add congestion control test to CTS" into udc-dev am: 190965164f am: a6839c7899 Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/23117205 Change-Id: I1d9b439495e71310c3864d3dedd8d16fab225064 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"); + } }