| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 package org.chromium.content_shell; | 5 package org.chromium.content_shell; |
| 6 | 6 |
| 7 import org.chromium.base.CalledByNative; | 7 import org.chromium.base.annotations.CalledByNative; |
| 8 import org.chromium.base.JNINamespace; | 8 import org.chromium.base.annotations.JNINamespace; |
| 9 import org.chromium.content.browser.ServiceRegistry; | 9 import org.chromium.content.browser.ServiceRegistry; |
| 10 import org.chromium.mojo.system.Pair; | 10 import org.chromium.mojo.system.Pair; |
| 11 | 11 |
| 12 /** | 12 /** |
| 13 * Test hooks for Mojo service support in the browser. See http://crbug.com/4159
45. | 13 * Test hooks for Mojo service support in the browser. See http://crbug.com/4159
45. |
| 14 */ | 14 */ |
| 15 @JNINamespace("content") | 15 @JNINamespace("content") |
| 16 public class ShellMojoTestUtils { | 16 public class ShellMojoTestUtils { |
| 17 public static long setupTestEnvironment() { | 17 public static long setupTestEnvironment() { |
| 18 return nativeSetupTestEnvironment(); | 18 return nativeSetupTestEnvironment(); |
| (...skipping 24 matching lines...) Expand all Loading... |
| 43 public static Pair makePair(ServiceRegistry serviceRegistryA, | 43 public static Pair makePair(ServiceRegistry serviceRegistryA, |
| 44 ServiceRegistry serviceRegistryB) { | 44 ServiceRegistry serviceRegistryB) { |
| 45 return new Pair<ServiceRegistry, ServiceRegistry>(serviceRegistryA, serv
iceRegistryB); | 45 return new Pair<ServiceRegistry, ServiceRegistry>(serviceRegistryA, serv
iceRegistryB); |
| 46 } | 46 } |
| 47 | 47 |
| 48 private static native long nativeSetupTestEnvironment(); | 48 private static native long nativeSetupTestEnvironment(); |
| 49 private static native void nativeTearDownTestEnvironment(long testEnvironmen
t); | 49 private static native void nativeTearDownTestEnvironment(long testEnvironmen
t); |
| 50 private static native Pair nativeCreateServiceRegistryPair(long testEnvironm
ent); | 50 private static native Pair nativeCreateServiceRegistryPair(long testEnvironm
ent); |
| 51 private static native void nativeRunLoop(long timeoutMs); | 51 private static native void nativeRunLoop(long timeoutMs); |
| 52 } | 52 } |
| OLD | NEW |