commit | c894b1238887419720d86ba0f6fbbdde9d2d24b6 | [log] [tgz] |
---|---|---|
author | Hugo Benichi <hugobenichi@google.com> | Mon Jul 31 12:58:20 2017 +0900 |
committer | Hugo Benichi <hugobenichi@google.com> | Wed Sep 13 16:21:50 2017 +0900 |
tree | 47858c81aafa14a1721caf213c0c830e0e2d066f | |
parent | 9da895b5e1d769608b33906d435594a13ae4ece1 [diff] [blame] |
Boostrap test for NetworkMonitor This will finally allow to write captive portal detection unit tests. Bug: 32561414 Bug: 62918393 Test: runtest frameworks-net Change-Id: I38db1bb79ae80a82b4199dc9cb1b56257e0cf222
diff --git a/services/core/java/com/android/server/connectivity/NetworkAgentInfo.java b/services/core/java/com/android/server/connectivity/NetworkAgentInfo.java index e96f4b0..a4d7242 100644 --- a/services/core/java/com/android/server/connectivity/NetworkAgentInfo.java +++ b/services/core/java/com/android/server/connectivity/NetworkAgentInfo.java
@@ -278,6 +278,10 @@ return mHandler; } + public Network network() { + return network; + } + // Functions for manipulating the requests satisfied by this network. // // These functions must only called on ConnectivityService's main thread.