summaryrefslogtreecommitdiffstats
path: root/services/tests
diff options
context:
space:
mode:
authorAshish Sharma <ashishsharma@google.com>2014-03-18 16:38:58 -0700
committerAshish Sharma <ashishsharma@google.com>2014-03-18 16:38:58 -0700
commita3f828ba3079408543091a4ccd6c11896ec4e0c7 (patch)
tree115b1a92d6768d81a323069cd84f449b9788fff3 /services/tests
parentea818400f8e9cd1a182d9565d42571a709c98990 (diff)
downloadframeworks_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.java15
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.