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

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

Issue 1139643006: Rename chrome/android/javatests to javatests_shell. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 7 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/android/javatests/src/org/chromium/chrome/browser/invalidation/IntentSavingContext.java
diff --git a/chrome/android/javatests/src/org/chromium/chrome/browser/invalidation/IntentSavingContext.java b/chrome/android/javatests/src/org/chromium/chrome/browser/invalidation/IntentSavingContext.java
deleted file mode 100644
index ba04beb15033c1261b643e8e357a29fa81cfc53c..0000000000000000000000000000000000000000
--- a/chrome/android/javatests/src/org/chromium/chrome/browser/invalidation/IntentSavingContext.java
+++ /dev/null
@@ -1,45 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// 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;
-
-import android.content.ComponentName;
-import android.content.Context;
-import android.content.Intent;
-import android.content.pm.PackageManager;
-
-import org.chromium.base.test.util.AdvancedMockContext;
-
-import java.util.ArrayList;
-import java.util.List;
-
-/**
- * Mock context that saves all intents given to {@code startService}.
- */
-public class IntentSavingContext extends AdvancedMockContext {
- private final List<Intent> mStartedIntents = new ArrayList<Intent>();
-
- IntentSavingContext(Context targetContext) {
- super(targetContext);
- }
-
- @Override
- public ComponentName startService(Intent intent) {
- mStartedIntents.add(intent);
- return new ComponentName(this, getClass());
- }
-
- int getNumStartedIntents() {
- return mStartedIntents.size();
- }
-
- Intent getStartedIntent(int idx) {
- return mStartedIntents.get(idx);
- }
-
- @Override
- public PackageManager getPackageManager() {
- return getBaseContext().getPackageManager();
- }
-}

Powered by Google App Engine
This is Rietveld 408576698