diff options
Diffstat (limited to 'services/tests')
-rw-r--r-- | services/tests/servicestests/src/com/android/server/NetworkManagementServiceTest.java | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/services/tests/servicestests/src/com/android/server/NetworkManagementServiceTest.java b/services/tests/servicestests/src/com/android/server/NetworkManagementServiceTest.java index 7a30d31..0d5daa5 100644 --- a/services/tests/servicestests/src/com/android/server/NetworkManagementServiceTest.java +++ b/services/tests/servicestests/src/com/android/server/NetworkManagementServiceTest.java @@ -141,14 +141,21 @@ public class NetworkManagementServiceTest extends AndroidTestCase { /** * Interface class activity. */ + sendMessage("613 IfaceClass active rmnet0"); - expectSoon(observer).interfaceClassDataActivityChanged("rmnet0", true); + expectSoon(observer).interfaceClassDataActivityChanged("rmnet0", true, 0); + + sendMessage("613 IfaceClass active rmnet0 1234"); + expectSoon(observer).interfaceClassDataActivityChanged("rmnet0", true, 1234); sendMessage("613 IfaceClass idle eth0"); - expectSoon(observer).interfaceClassDataActivityChanged("eth0", false); + expectSoon(observer).interfaceClassDataActivityChanged("eth0", false, 0); + + sendMessage("613 IfaceClass idle eth0 1234"); + expectSoon(observer).interfaceClassDataActivityChanged("eth0", false, 1234); - sendMessage("613 IfaceClass reallyactive rmnet0"); - expectSoon(observer).interfaceClassDataActivityChanged("rmnet0", false); + sendMessage("613 IfaceClass reallyactive rmnet0 1234"); + expectSoon(observer).interfaceClassDataActivityChanged("rmnet0", false, 1234); sendMessage("613 InterfaceClass reallyactive rmnet0"); // Invalid group. |