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

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

Issue 2130453004: [Sync] Move //sync to //components/sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 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: components/sync/android/javatests/src/org/chromium/components/sync/notifier/InvalidationPreferencesTest.java
diff --git a/sync/android/javatests/src/org/chromium/sync/notifier/InvalidationPreferencesTest.java b/components/sync/android/javatests/src/org/chromium/components/sync/notifier/InvalidationPreferencesTest.java
similarity index 90%
rename from sync/android/javatests/src/org/chromium/sync/notifier/InvalidationPreferencesTest.java
rename to components/sync/android/javatests/src/org/chromium/components/sync/notifier/InvalidationPreferencesTest.java
index c88ba72f975359df2fc5a87886c547490a25e229..1bd1ecc89e4e59c6964556dc29e39a8264f5105b 100644
--- a/sync/android/javatests/src/org/chromium/sync/notifier/InvalidationPreferencesTest.java
+++ b/components/sync/android/javatests/src/org/chromium/components/sync/notifier/InvalidationPreferencesTest.java
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-package org.chromium.sync.notifier;
+package org.chromium.components.sync.notifier;
import android.accounts.Account;
import android.test.InstrumentationTestCase;
@@ -48,11 +48,11 @@ public class InvalidationPreferencesTest extends InstrumentationTestCase {
// Write mix of valid and invalid types to disk to test that preferences are not
// interpreting the data. Invalid types should never be written to disk in practice.
Set<String> syncTypes = CollectionUtil.newHashSet("BOOKMARK", "INVALID");
- Set<ObjectId> objectIds = CollectionUtil.newHashSet(
- ObjectId.newInstance(1, "obj1".getBytes()),
- ObjectId.newInstance(2, "obj2".getBytes()));
+ Set<ObjectId> objectIds =
+ CollectionUtil.newHashSet(ObjectId.newInstance(1, "obj1".getBytes()),
+ ObjectId.newInstance(2, "obj2".getBytes()));
Account account = new Account("test@example.com", "bogus");
- byte[] internalClientState = new byte[]{100, 101, 102};
+ byte[] internalClientState = new byte[] {100, 101, 102};
invPreferences.setSyncTypes(editContext, syncTypes);
invPreferences.setObjectIds(editContext, objectIds);
invPreferences.setAccount(editContext, account);

Powered by Google App Engine
This is Rietveld 408576698