Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(231)

Unified Diff: sync/android/javatests/src/org/chromium/sync/notifier/TestableInvalidationService.java

Issue 22978010: [Android] Remove all usage of com.google.common.collect (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nyquist fixes Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: sync/android/javatests/src/org/chromium/sync/notifier/TestableInvalidationService.java
diff --git a/sync/android/javatests/src/org/chromium/sync/notifier/TestableInvalidationService.java b/sync/android/javatests/src/org/chromium/sync/notifier/TestableInvalidationService.java
index 9614a103388cbf3f94215be75b14fcd57b3ccefa..04eb6bab6576d473df5e8b6f7621e188f4d8a343 100644
--- a/sync/android/javatests/src/org/chromium/sync/notifier/TestableInvalidationService.java
+++ b/sync/android/javatests/src/org/chromium/sync/notifier/TestableInvalidationService.java
@@ -4,15 +4,16 @@
package org.chromium.sync.notifier;
-import com.google.common.collect.Lists;
-import com.google.ipc.invalidation.external.client.types.AckHandle;
-import com.google.ipc.invalidation.external.client.types.ObjectId;
-
import android.accounts.Account;
import android.content.ComponentName;
import android.content.Intent;
import android.os.Bundle;
+import com.google.ipc.invalidation.external.client.types.ObjectId;
+
+import org.chromium.base.CollectionUtil;
+
+import java.util.ArrayList;
import java.util.List;
/**
@@ -23,18 +24,18 @@ import java.util.List;
*/
public class TestableInvalidationService extends InvalidationService {
/** Object ids given to {@link #register}, one list element per call. */
- final List<List<ObjectId>> mRegistrations = Lists.newArrayList();
+ final List<List<ObjectId>> mRegistrations = new ArrayList<List<ObjectId>>();
/** Object ids given to {@link #unregister}, one list element per call. */
- final List<List<ObjectId>> mUnregistrations = Lists.newArrayList();
+ final List<List<ObjectId>> mUnregistrations = new ArrayList<List<ObjectId>>();
/** Intents given to {@link #startService}. */
- final List<Intent> mStartedServices = Lists.newArrayList();
+ final List<Intent> mStartedServices = new ArrayList<Intent>();
/** Bundles given to {@link #requestSyncFromContentResolver}. */
- final List<Bundle> mRequestedSyncs = Lists.newArrayList();
+ final List<Bundle> mRequestedSyncs = new ArrayList<Bundle>();
- final List<byte[]> mAcknowledgements = Lists.newArrayList();
+ final List<byte[]> mAcknowledgements = new ArrayList<byte[]>();
/** Whether Chrome is in the foreground. */
private boolean mIsChromeInForeground = false;
@@ -52,13 +53,13 @@ public class TestableInvalidationService extends InvalidationService {
@Override
public void register(byte[] clientId, Iterable<ObjectId> objectIds) {
- mRegistrations.add(Lists.newArrayList(objectIds));
+ mRegistrations.add(CollectionUtil.newArrayList(objectIds));
super.register(clientId, objectIds);
}
@Override
public void unregister(byte[] clientId, Iterable<ObjectId> objectIds) {
- mUnregistrations.add(Lists.newArrayList(objectIds));
+ mUnregistrations.add(CollectionUtil.newArrayList(objectIds));
super.unregister(clientId, objectIds);
}

Powered by Google App Engine
This is Rietveld 408576698