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

Unified Diff: content/public/test/android/javatests/src/org/chromium/content/browser/test/ContentInstrumentationTestRunner.java

Issue 2814533002: Adding a new annotation to set ChildProcessAllocator settings in tests. (Closed)
Patch Set: Introducing a new annotation to change child process allocator. Created 3 years, 8 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: content/public/test/android/javatests/src/org/chromium/content/browser/test/ContentInstrumentationTestRunner.java
diff --git a/content/public/test/android/javatests/src/org/chromium/content/browser/test/ContentInstrumentationTestRunner.java b/content/public/test/android/javatests/src/org/chromium/content/browser/test/ContentInstrumentationTestRunner.java
new file mode 100644
index 0000000000000000000000000000000000000000..df0c3ab01e06bed0f62fb0b6e978c040ec6fc196
--- /dev/null
+++ b/content/public/test/android/javatests/src/org/chromium/content/browser/test/ContentInstrumentationTestRunner.java
@@ -0,0 +1,20 @@
+// 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.content.browser.test;
+
+import org.chromium.base.test.BaseChromiumInstrumentationTestRunner;
+import org.chromium.base.test.BaseTestResult;
+
+/**
+ * An instrumentation test runner similar to BaseInstrumentationTestRunner but which also registers
+ * content specific annotations.
+ */
+public class ContentInstrumentationTestRunner extends BaseChromiumInstrumentationTestRunner {
+ @Override
+ protected void addTestHooks(BaseTestResult result) {
+ super.addTestHooks(result);
+ result.addPreTestHook(new ChildProcessAllocatorSettingsHook());
+ }
+}

Powered by Google App Engine
This is Rietveld 408576698