Merge "add congestion control test to CTS" am: be66108f84
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/2578355 Change-Id: I081803073ebfc190d32df7ec0ede21d7a7b3e268 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
9177e7bbec
1 changed files with 11 additions and 0 deletions
|
|
@ -166,4 +166,15 @@ public class ProcNetTest extends DeviceTestCase implements IBuildReceiver, IDevi
|
|||
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");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue