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

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

Issue 2632043002: Create ContentShellActivityTestRule and BaseJUnitRunner (Closed)
Patch Set: Change to adapter pattern 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
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 {
boliu 2017/03/02 21:12:02 is this on the right CL?
the real yoland 2017/03/02 21:26:56 Yes, we do want to use this runner for content_she
+ @Override
+ public void onCreate(Bundle arguments) {
+ ChromiumMultiDexInstaller.install(getTargetContext());
+ super.onCreate(arguments);
+ }
+}

Powered by Google App Engine
This is Rietveld 408576698