Index: android_webview/test/shell/src/org/chromium/android_webview/test/AwInstrumentationTestRunner.java |
diff --git a/android_webview/test/shell/src/org/chromium/android_webview/test/AwInstrumentationTestRunner.java b/android_webview/test/shell/src/org/chromium/android_webview/test/AwInstrumentationTestRunner.java |
new file mode 100644 |
index 0000000000000000000000000000000000000000..84f9ceb209128a72ba727dc18acc53b5eec1c5ff |
--- /dev/null |
+++ b/android_webview/test/shell/src/org/chromium/android_webview/test/AwInstrumentationTestRunner.java |
@@ -0,0 +1,22 @@ |
+// Copyright 2015 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.android_webview.test; |
+ |
+import org.chromium.base.test.BaseInstrumentationTestRunner; |
+import org.chromium.base.test.BaseTestResult; |
+import org.chromium.policy.test.annotations.Policies; |
+ |
+/** |
+ * Instrumentation test runner that allows integrating features defined above base layer |
+ * for webview testing. |
+ */ |
+public class AwInstrumentationTestRunner extends BaseInstrumentationTestRunner { |
+ @Override |
+ protected void addTestHooks(BaseTestResult result) { |
+ super.addTestHooks(result); |
+ |
+ result.addPreTestHook(Policies.getRegistrationHook()); |
+ } |
+} |