| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |