| 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.mojo; | 5 package org.chromium.mojo; |
| 6 | 6 |
| 7 import android.content.Context; | 7 import android.content.Context; |
| 8 import android.test.InstrumentationTestCase; | 8 import android.test.InstrumentationTestCase; |
| 9 | 9 |
| 10 import org.chromium.base.JNINamespace; | 10 import org.chromium.base.annotations.JNINamespace; |
| 11 import org.chromium.base.library_loader.LibraryLoader; | 11 import org.chromium.base.library_loader.LibraryLoader; |
| 12 import org.chromium.base.library_loader.LibraryProcessType; | 12 import org.chromium.base.library_loader.LibraryProcessType; |
| 13 | 13 |
| 14 /** | 14 /** |
| 15 * Base class to test mojo. Setup the environment. | 15 * Base class to test mojo. Setup the environment. |
| 16 */ | 16 */ |
| 17 @JNINamespace("mojo::android") | 17 @JNINamespace("mojo::android") |
| 18 public class MojoTestCase extends InstrumentationTestCase { | 18 public class MojoTestCase extends InstrumentationTestCase { |
| 19 | 19 |
| 20 private long mTestEnvironmentPointer; | 20 private long mTestEnvironmentPointer; |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 | 56 |
| 57 private native void nativeInitApplicationContext(Context context); | 57 private native void nativeInitApplicationContext(Context context); |
| 58 | 58 |
| 59 private native long nativeSetupTestEnvironment(); | 59 private native long nativeSetupTestEnvironment(); |
| 60 | 60 |
| 61 private native void nativeTearDownTestEnvironment(long testEnvironment); | 61 private native void nativeTearDownTestEnvironment(long testEnvironment); |
| 62 | 62 |
| 63 private native void nativeRunLoop(long timeoutMS); | 63 private native void nativeRunLoop(long timeoutMS); |
| 64 | 64 |
| 65 } | 65 } |
| OLD | NEW |