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

Unified Diff: base/test/android/javatests/src/org/chromium/base/test/BaseJUnitRunner.java

Issue 2632043002: Create ContentShellActivityTestRule and BaseJUnitRunner (Closed)
Patch Set: change name to TestCommon Created 3 years, 10 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
« no previous file with comments | « base/BUILD.gn ('k') | content/public/android/javatests/src/org/chromium/content/browser/ClipboardTest.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/test/android/javatests/src/org/chromium/base/test/BaseJUnitRunner.java
diff --git a/base/test/android/javatests/src/org/chromium/base/test/BaseJUnitRunner.java b/base/test/android/javatests/src/org/chromium/base/test/BaseJUnitRunner.java
new file mode 100644
index 0000000000000000000000000000000000000000..f27b077aaa96da0ab9e19f35465098326ad8cf47
--- /dev/null
+++ b/base/test/android/javatests/src/org/chromium/base/test/BaseJUnitRunner.java
@@ -0,0 +1,21 @@
+// Copyright 2017 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.base.test;
+
+import android.os.Bundle;
+import android.support.test.runner.AndroidJUnitRunner;
+
+import org.chromium.base.multidex.ChromiumMultiDexInstaller;
+
+/**
+ * A custom runner for JUnit4 tests that checks requirements to conditionally ignore tests.
+ */
+public class BaseJUnitRunner extends AndroidJUnitRunner {
+ @Override
+ public void onCreate(Bundle arguments) {
+ ChromiumMultiDexInstaller.install(getTargetContext());
+ super.onCreate(arguments);
+ }
+}
« no previous file with comments | « base/BUILD.gn ('k') | content/public/android/javatests/src/org/chromium/content/browser/ClipboardTest.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698