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

Unified Diff: chrome/test/android/javatests/src/org/chromium/chrome/test/invalidation/IntentSavingContext.java

Issue 1214713003: Move InstrumentationTestCase tests from ChromeShell to ChromePublic. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: moved IntentSavingContext to chrome/test to fix ChromeShell compile Created 5 years, 6 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: chrome/test/android/javatests/src/org/chromium/chrome/test/invalidation/IntentSavingContext.java
diff --git a/chrome/android/javatests_shell/src/org/chromium/chrome/browser/invalidation/IntentSavingContext.java b/chrome/test/android/javatests/src/org/chromium/chrome/test/invalidation/IntentSavingContext.java
similarity index 84%
rename from chrome/android/javatests_shell/src/org/chromium/chrome/browser/invalidation/IntentSavingContext.java
rename to chrome/test/android/javatests/src/org/chromium/chrome/test/invalidation/IntentSavingContext.java
index ba04beb15033c1261b643e8e357a29fa81cfc53c..96652c683c5390fff227050bdef24c5daa33faba 100644
--- a/chrome/android/javatests_shell/src/org/chromium/chrome/browser/invalidation/IntentSavingContext.java
+++ b/chrome/test/android/javatests/src/org/chromium/chrome/test/invalidation/IntentSavingContext.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.chrome.browser.invalidation;
+package org.chromium.chrome.test.invalidation;
import android.content.ComponentName;
import android.content.Context;
@@ -20,7 +20,7 @@ import java.util.List;
public class IntentSavingContext extends AdvancedMockContext {
private final List<Intent> mStartedIntents = new ArrayList<Intent>();
- IntentSavingContext(Context targetContext) {
+ public IntentSavingContext(Context targetContext) {
super(targetContext);
}
@@ -30,11 +30,11 @@ public class IntentSavingContext extends AdvancedMockContext {
return new ComponentName(this, getClass());
}
- int getNumStartedIntents() {
+ public int getNumStartedIntents() {
return mStartedIntents.size();
}
- Intent getStartedIntent(int idx) {
+ public Intent getStartedIntent(int idx) {
return mStartedIntents.get(idx);
}

Powered by Google App Engine
This is Rietveld 408576698