History log of /frameworks/base/tests/net/java/com/android/server/connectivity/tethering/TetherInterfaceStateMachineTest.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
292b65a6f11a37b5cbb354fab5587484c2ef4d2e 12-May-2017 Erik Kline <ek@google.com> Expand logging capabilities of Tethering subsystem

Introduce a SharedLog that can be shared among all Tethering
components. All log entries go to the same log, and each includes
its subsystem name. Additionally, all entries emitted to the
system log shared the same tag, so can easily be watched.

More subsystems can inherit a SharedLog, but to minimize cherry-pick
conflicts we limit ourselves to these changes only.

Test: as follows
- built
- flashed
- booted
- log output observed via dumpsys
- runtest frameworks-net passes
Bug: 32163131
Bug: 36988090
Bug: 38218697
Merged-In: Ia9d15f0dcc49ce070f8684eb8c8481310859faa5
Merged-In: I2644f518304a03da469fb9c2aa01a6d8f1a97901
Change-Id: I1229d4c55987402d84b0d4a2c8a595e0c829aa3e
(cherry picked from commit 7747fd4ce055e8e1f6381062a58b867728f57d85)
/frameworks/base/tests/net/java/com/android/server/connectivity/tethering/TetherInterfaceStateMachineTest.java
5fe3718c6d2722e399c0d572621649c242c067da 20-Apr-2017 Erik Kline <ek@google.com> Clarify IControlsTethering LOCAL_ONLY state name

Test: as follows
- build
- flashed
- booted
- "runtest frameworks-net" passes
- manually starting tethering shows Settings and icon updates
Bug: 31466854
Bug: 32163131

Change-Id: I1f45511f00aca37480f894be4a9a004f1a3b35d7
(cherry picked from commit ca41be796a56fab152cd07bbeaf9283de7e8be90)
/frameworks/base/tests/net/java/com/android/server/connectivity/tethering/TetherInterfaceStateMachineTest.java
5f2b7992cfe1149de115c6f7056d0da128b8afba 10-Mar-2017 Erik Kline <ek@google.com> Tethering: support Local-only Hotspot mode for downstreams

Test: as follows
- built (bullhead)
- flashed
- booted
- "runtest frameworks-net" passes
Bug: 31466854

Change-Id: Ia50e28c8ce0af8cdd7ac63217d921aff213668e7
/frameworks/base/tests/net/java/com/android/server/connectivity/tethering/TetherInterfaceStateMachineTest.java
624bf3d7f66e496952c5ae8917dc785676921c99 14-Feb-2017 Erik Kline <ek@google.com> Verify duplicate upstream notifications are ignored

Test: as follows
- built (bullhead)
- flashed
- booted
- runtest .../tethering/TetherInterfaceStateMachineTest.java passes
Bug: 32163131

Change-Id: I3c097d766fe4c416a8e3f02640809fe1199c6ef2
/frameworks/base/tests/net/java/com/android/server/connectivity/tethering/TetherInterfaceStateMachineTest.java
8ea45483fc59ef63851a64640ed1bb18c09f7ea9 13-Feb-2017 Erik Kline <ek@google.com> Cleanup in the face of upstream error

If either enableNat() or startInterfaceForwarding() fail, be sure
to cleanup any commands that might have succeeded.

Most of this change is a refactoring of cleanupUpstreamIface() into
two methods, one of which (cleanupUpstreamInterface()) is reused
in error handling scenarios.

Test: as follows
- built (bullhead)
- flashed
- booted
- runtest -x .../tethering/TetherInterfaceStateMachineTest.java passes
Bug: 32031803
Bug: 32163131

Change-Id: Ia4d56e03beeab1908d8b8c2202e94992f1aa58a4
/frameworks/base/tests/net/java/com/android/server/connectivity/tethering/TetherInterfaceStateMachineTest.java
a954be956315e6d25a63e961fc9befe9916e1cbd 13-Feb-2017 Erik Kline <ek@google.com> Add test coverage for cleanup bug to be fixed.

The test calls that need to pass but do not currently are commented out.

Test: as follows
- built (bullhead)
- flashed
- booted
- runtest -x .../tethering/TetherInterfaceStateMachineTest.java passes
Bug: 32031803
Bug: 32163131

Change-Id: I68ed476920bef882f353d8e8a54c72120bc27002
/frameworks/base/tests/net/java/com/android/server/connectivity/tethering/TetherInterfaceStateMachineTest.java
5bce5a16b17498981253d7a2d1a490667cd71798 28-Oct-2016 Lorenzo Colitti <lorenzo@google.com> DO NOT MERGE: Unbreak TetherInterfaceStateMachineTest.

This was broken by the implementation of IPv6 tethering, which
relies on various private classes which end up calling unmockable
final classes like NetworkInterface.

Making everything public like this is almost certainly not the
best way of fixing this test, but on the other hand there is
value to the test continuing to pass.

Test: runtest frameworks-net # Everything passes.
Test: IPv6 tethering continues to work.

(cherry picked from commit 7e0eeca8ba4063d0d35dda9a8dfcc612e45efb87)

Change-Id: I8a3cf466871c026f4ae0f5cfa73071338cdf5b7e
/frameworks/base/tests/net/java/com/android/server/connectivity/tethering/TetherInterfaceStateMachineTest.java
7ceef950a02b22bdf90609bdab8119b4bcd88edf 27-Oct-2016 Lorenzo Colitti <lorenzo@google.com> DO NOT MERGE: Move the connectivity tests to frameworks/base/tests/net.

This will give us a good place to put all the networking tests.

Fix: 31479480
Test: adb shell am instrument -w -e notClass com.android.server.connectivity.tethering.TetherInterfaceStateMachineTest 'com.android.frameworks.tests.net/android.support.test.runner.AndroidJUnitRunner' # PASS

(cherry picked from commit ecc986d430f4b8158f177ed97d2edb741f11ff71)

Change-Id: I993eeaa5dec001c39389023f355f506129b356e7
/frameworks/base/tests/net/java/com/android/server/connectivity/tethering/TetherInterfaceStateMachineTest.java