summaryrefslogtreecommitdiffstats
path: root/services/tests/servicestests
diff options
context:
space:
mode:
authorDavid Christie <dnchrist@google.com>2013-08-02 11:06:02 -0700
committerDavid Christie <dnchrist@google.com>2013-08-02 12:33:00 -0700
commit0ca981fe42c43a4b7c345f4a0a2b3b2a519be5da (patch)
treeb9f3530588a409fa62a3ec3f683c1fe0577583d5 /services/tests/servicestests
parentdf2cab2fc46c3f2c56f85dee1a19d0fa48cfd444 (diff)
downloadframeworks_base-0ca981fe42c43a4b7c345f4a0a2b3b2a519be5da.zip
frameworks_base-0ca981fe42c43a4b7c345f4a0a2b3b2a519be5da.tar.gz
frameworks_base-0ca981fe42c43a4b7c345f4a0a2b3b2a519be5da.tar.bz2
Fix broken unit test
Change-Id: I4aa0035233749f6d585c151329436439ae9b2921
Diffstat (limited to 'services/tests/servicestests')
-rw-r--r--services/tests/servicestests/src/com/android/server/NetworkStatsServiceTest.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/services/tests/servicestests/src/com/android/server/NetworkStatsServiceTest.java b/services/tests/servicestests/src/com/android/server/NetworkStatsServiceTest.java
index a9909b2..90a9b6a 100644
--- a/services/tests/servicestests/src/com/android/server/NetworkStatsServiceTest.java
+++ b/services/tests/servicestests/src/com/android/server/NetworkStatsServiceTest.java
@@ -40,6 +40,7 @@ import static android.text.format.DateUtils.MINUTE_IN_MILLIS;
import static android.text.format.DateUtils.WEEK_IN_MILLIS;
import static com.android.server.net.NetworkStatsService.ACTION_NETWORK_STATS_POLL;
import static org.easymock.EasyMock.anyLong;
+import static org.easymock.EasyMock.anyObject;
import static org.easymock.EasyMock.aryEq;
import static org.easymock.EasyMock.capture;
import static org.easymock.EasyMock.createMock;
@@ -880,7 +881,7 @@ public class NetworkStatsServiceTest extends AndroidTestCase {
expectLastCall().anyTimes();
mAlarmManager.set(eq(AlarmManager.ELAPSED_REALTIME), anyLong(), anyLong(), anyLong(),
- isA(PendingIntent.class), isA(WorkSource.class));
+ isA(PendingIntent.class), anyObject(WorkSource.class));
expectLastCall().atLeastOnce();
mNetManager.setGlobalAlert(anyLong());