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

Unified Diff: content/shell/android/java/src/org/chromium/content_shell/ShellMojoTestUtils.java

Issue 2217013002: Remove the JNI-based InterfaceRegistry. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@java-interface-registry-migration
Patch Set: rebase Created 4 years, 3 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 | « content/shell/android/BUILD.gn ('k') | content/shell/android/shell_jni_registrar.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/android/java/src/org/chromium/content_shell/ShellMojoTestUtils.java
diff --git a/content/shell/android/java/src/org/chromium/content_shell/ShellMojoTestUtils.java b/content/shell/android/java/src/org/chromium/content_shell/ShellMojoTestUtils.java
deleted file mode 100644
index 853094e0989a54aa714145fee0126d1ff4761022..0000000000000000000000000000000000000000
--- a/content/shell/android/java/src/org/chromium/content_shell/ShellMojoTestUtils.java
+++ /dev/null
@@ -1,53 +0,0 @@
-// Copyright 2014 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_shell;
-
-import org.chromium.base.annotations.CalledByNative;
-import org.chromium.base.annotations.JNINamespace;
-import org.chromium.content.browser.InterfaceProvider;
-import org.chromium.content.browser.InterfaceRegistry;
-import org.chromium.mojo.system.Pair;
-
-/**
- * Test hooks for shell InterfaceRegistry/Provider support in the browser.
- * See http://crbug.com/415945.
- */
-@JNINamespace("content")
-public class ShellMojoTestUtils {
- public static long setupTestEnvironment() {
- return nativeSetupTestEnvironment();
- }
-
- public static void tearDownTestEnvironment(long testEnvironment) {
- nativeTearDownTestEnvironment(testEnvironment);
- }
-
- /**
- * Returns an InterfaceRegistry and an InterfaceProvider bound to it.
- */
- public static Pair<InterfaceRegistry, InterfaceProvider> createInterfaceRegistryAndProvider(
- long testEnvironment) {
- // Declaring parametrized return type for nativeCreateInterfaceRegistryAndProvider() breaks
- // the JNI generator. TODO(ppi): support parametrized return types in the JNI generator.
- @SuppressWarnings("unchecked")
- Pair<InterfaceRegistry, InterfaceProvider> pair =
- nativeCreateInterfaceRegistryAndProvider(testEnvironment);
- return pair;
- }
-
- public static void runLoop(long timeoutMs) {
- nativeRunLoop(timeoutMs);
- }
-
- @CalledByNative
- public static Pair makePair(InterfaceRegistry registry, InterfaceProvider provider) {
- return new Pair<InterfaceRegistry, InterfaceProvider>(registry, provider);
- }
-
- private static native long nativeSetupTestEnvironment();
- private static native void nativeTearDownTestEnvironment(long testEnvironment);
- private static native Pair nativeCreateInterfaceRegistryAndProvider(long testEnvironment);
- private static native void nativeRunLoop(long timeoutMs);
-}
« no previous file with comments | « content/shell/android/BUILD.gn ('k') | content/shell/android/shell_jni_registrar.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698