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

Unified Diff: chrome/android/junit/src/org/chromium/chrome/browser/offlinepages/OfflinePageTestRunner.java

Issue 2710343003: Update Robolectric to 3.2.2 (Closed)
Patch Set: Small fix to StripLayoutHelperTest Created 3 years, 9 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/junit/src/org/chromium/chrome/browser/offlinepages/OfflinePageTestRunner.java
diff --git a/chrome/android/junit/src/org/chromium/chrome/browser/offlinepages/OfflinePageTestRunner.java b/chrome/android/junit/src/org/chromium/chrome/browser/offlinepages/OfflinePageTestRunner.java
deleted file mode 100644
index 56367ba39d72955257f9947f0034fe37893d24ea..0000000000000000000000000000000000000000
--- a/chrome/android/junit/src/org/chromium/chrome/browser/offlinepages/OfflinePageTestRunner.java
+++ /dev/null
@@ -1,33 +0,0 @@
-// Copyright 2016 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.offlinepages;
-
-import org.junit.runners.model.InitializationError;
-import org.robolectric.internal.bytecode.InstrumentationConfiguration;
-
-import org.chromium.testing.local.LocalRobolectricTestRunner;
-
-/**
- * Custom Robolectric test runner that instruments the com.google.android.gms.gcm package
- * so Shadows of those classes can be created.
- */
-public class OfflinePageTestRunner extends LocalRobolectricTestRunner {
-
- /**
- * OfflinePageTestRunner constructor
- */
- public OfflinePageTestRunner(Class<?> testClass) throws InitializationError {
- super(testClass);
- }
-
- @Override
- public InstrumentationConfiguration createClassLoaderConfig() {
- InstrumentationConfiguration.Builder builder = InstrumentationConfiguration.newBuilder();
- builder.addInstrumentedPackage("com.google.android.gms.common");
- builder.addInstrumentedPackage("com.google.android.gms.gcm");
- builder.addInstrumentedClass("org.chromium.chrome.browser.offlinepages.DeviceConditions");
- return builder.build();
- }
-}

Powered by Google App Engine
This is Rietveld 408576698