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

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

Issue 1247853007: [Sync] Add auto-generated ModelType in Java. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add SYNC_EXPORT and rebase. Created 5 years, 5 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/InvalidationPreferencesTest.java
diff --git a/sync/android/javatests/src/org/chromium/sync/notifier/InvalidationPreferencesTest.java b/sync/android/javatests/src/org/chromium/sync/notifier/InvalidationPreferencesTest.java
index f8e841edbde0f3700b0e8cdb23339f3da9424c9c..4bcfd20f0844a8a25508da66ef323606d009bd22 100644
--- a/sync/android/javatests/src/org/chromium/sync/notifier/InvalidationPreferencesTest.java
+++ b/sync/android/javatests/src/org/chromium/sync/notifier/InvalidationPreferencesTest.java
@@ -14,10 +14,8 @@ import com.google.ipc.invalidation.external.client.types.ObjectId;
import org.chromium.base.CollectionUtil;
import org.chromium.base.test.util.AdvancedMockContext;
import org.chromium.base.test.util.Feature;
-import org.chromium.sync.internal_api.pub.base.ModelType;
import java.util.Arrays;
-import java.util.HashSet;
import java.util.Set;
/**
@@ -36,20 +34,6 @@ public class InvalidationPreferencesTest extends InstrumentationTestCase {
@SmallTest
@Feature({"Sync"})
- public void testTranslateBasicSyncTypes() throws Exception {
- /*
- * Test plan: convert three strings to model types, one of which is invalid. Verify that
- * the two valid strings are properly converted and that the invalid string is dropped.
- */
- HashSet<ModelType> expectedTypes = CollectionUtil.newHashSet(
- ModelType.BOOKMARK, ModelType.SESSION);
- Set<ModelType> actualTypes = ModelType.syncTypesToModelTypes(
- CollectionUtil.newHashSet("BOOKMARK", "SESSION", "0!!!INVALID"));
- assertEquals(expectedTypes, actualTypes);
- }
-
- @SmallTest
- @Feature({"Sync"})
public void testReadMissingData() {
/*
* Test plan: read saved state from empty preferences. Verify that null is returned.
@@ -97,4 +81,4 @@ public class InvalidationPreferencesTest extends InstrumentationTestCase {
assertTrue(Arrays.equals(
internalClientState, invPreferences.getInternalNotificationClientState()));
}
-}
+}

Powered by Google App Engine
This is Rietveld 408576698