diff options
author | Ashish Sharma <ashishsharma@google.com> | 2014-03-18 16:38:58 -0700 |
---|---|---|
committer | Ashish Sharma <ashishsharma@google.com> | 2014-03-18 16:38:58 -0700 |
commit | a3f828ba3079408543091a4ccd6c11896ec4e0c7 (patch) | |
tree | 115b1a92d6768d81a323069cd84f449b9788fff3 /services/tests | |
parent | ea818400f8e9cd1a182d9565d42571a709c98990 (diff) | |
download | frameworks_base-a3f828ba3079408543091a4ccd6c11896ec4e0c7.zip frameworks_base-a3f828ba3079408543091a4ccd6c11896ec4e0c7.tar.gz frameworks_base-a3f828ba3079408543091a4ccd6c11896ec4e0c7.tar.bz2 |
Update the tests to deal with the new timestamps in idletimer module.
Change-Id: I1a8368d84ef806f1501b0a1f5e817388a1d10518
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. |