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

Side by Side Diff: chrome/android/javatests/src/org/chromium/chrome/browser/invalidation/InvalidationServiceTest.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, 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 package org.chromium.chrome.browser.invalidation; 5 package org.chromium.chrome.browser.invalidation;
6 6
7 import android.content.Intent; 7 import android.content.Intent;
8 import android.test.UiThreadTest; 8 import android.test.UiThreadTest;
9 import android.test.suitebuilder.annotation.SmallTest; 9 import android.test.suitebuilder.annotation.SmallTest;
10 10
11 import com.google.ipc.invalidation.external.client.types.ObjectId; 11 import com.google.ipc.invalidation.external.client.types.ObjectId;
12 12
13 import org.chromium.base.test.util.Feature; 13 import org.chromium.base.test.util.Feature;
14 import org.chromium.chrome.test.invalidation.IntentSavingContext; 14 import org.chromium.chrome.test.invalidation.IntentSavingContext;
15 import org.chromium.components.invalidation.InvalidationClientService; 15 import org.chromium.components.invalidation.InvalidationClientService;
16 import org.chromium.components.invalidation.InvalidationService; 16 import org.chromium.components.invalidation.InvalidationService;
17 import org.chromium.components.sync.AndroidSyncSettings;
18 import org.chromium.components.sync.ModelType;
19 import org.chromium.components.sync.ModelTypeHelper;
20 import org.chromium.components.sync.notifier.InvalidationIntentProtocol;
21 import org.chromium.components.sync.test.util.MockSyncContentResolverDelegate;
17 import org.chromium.content.browser.test.NativeLibraryTestBase; 22 import org.chromium.content.browser.test.NativeLibraryTestBase;
18 import org.chromium.sync.AndroidSyncSettings;
19 import org.chromium.sync.ModelType;
20 import org.chromium.sync.ModelTypeHelper;
21 import org.chromium.sync.notifier.InvalidationIntentProtocol;
22 import org.chromium.sync.test.util.MockSyncContentResolverDelegate;
23 23
24 import java.util.Set; 24 import java.util.Set;
25 25
26 /** 26 /**
27 * Tests for {@link InvalidationService}. 27 * Tests for {@link InvalidationService}.
28 */ 28 */
29 public class InvalidationServiceTest extends NativeLibraryTestBase { 29 public class InvalidationServiceTest extends NativeLibraryTestBase {
30 private IntentSavingContext mContext; 30 private IntentSavingContext mContext;
31 31
32 @Override 32 @Override
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 /** 69 /**
70 * Asserts that {@code intent} is destined for the correct component. 70 * Asserts that {@code intent} is destined for the correct component.
71 */ 71 */
72 private static void validateIntentComponent(Intent intent) { 72 private static void validateIntentComponent(Intent intent) {
73 assertNotNull(intent.getComponent()); 73 assertNotNull(intent.getComponent());
74 assertEquals(InvalidationClientService.class.getName(), 74 assertEquals(InvalidationClientService.class.getName(),
75 intent.getComponent().getClassName()); 75 intent.getComponent().getClassName());
76 } 76 }
77 77
78 } 78 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698