OSDN Git Service

Minor improvements to verifyTcpBufferSizeChange.
authorLorenzo Colitti <lorenzo@google.com>
Mon, 25 Feb 2019 01:56:06 +0000 (10:56 +0900)
committerLorenzo Colitti <lorenzo@google.com>
Mon, 25 Feb 2019 02:41:50 +0000 (11:41 +0900)
commitf56ff048c23014325cb75a116169d2d4d193f540
tree84580c0619e9e1b0ce4e1bba62a8749713ecc9c6
parentf2cf09c94510857f99fd94381d609784dd46b334
Minor improvements to verifyTcpBufferSizeChange.

1. Remove "throws Exception" from the signature so it can be used
   in tests that do not already throw Exception.
2. Update comment to reflect the fact that TCP buffer sizes are
   set on default network switch, not on connect.
3. Move into the method a class-level static constant that is
   only used in that method.

Test: atest ConnectivityServiceTest
Change-Id: Ic2e4fbedc23065efc20e45ea84996b577a8e94b6
tests/net/java/com/android/server/ConnectivityServiceTest.java