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

Unified Diff: mojo/android/javatests/src/org/chromium/mojo/system/MojoTestCase.java

Issue 294043016: Refactor java packages. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 7 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: mojo/android/javatests/src/org/chromium/mojo/system/MojoTestCase.java
diff --git a/mojo/android/javatests/src/org/chromium/mojo/system/MojoTestCase.java b/mojo/android/javatests/src/org/chromium/mojo/system/MojoTestCase.java
deleted file mode 100644
index e68f112d6db5ffdcb6e30f577d7450ff36291709..0000000000000000000000000000000000000000
--- a/mojo/android/javatests/src/org/chromium/mojo/system/MojoTestCase.java
+++ /dev/null
@@ -1,49 +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.mojo.system;
-
-import android.content.Context;
-import android.test.InstrumentationTestCase;
-
-import org.chromium.base.JNINamespace;
-import org.chromium.base.library_loader.LibraryLoader;
-
-/**
- * Base class to test mojo. Setup the environment.
- */
-@JNINamespace("mojo::android")
-public class MojoTestCase extends InstrumentationTestCase {
-
- private long mTestEnvironmentPointer;
-
- /**
- * @see junit.framework.TestCase#setUp()
- */
- @Override
- protected void setUp() throws Exception {
- super.setUp();
- LibraryLoader.ensureInitialized();
- nativeInitApplicationContext(getInstrumentation().getTargetContext());
- mTestEnvironmentPointer = nativeSetupTestEnvironment();
- }
-
- /**
- * @see android.test.InstrumentationTestCase#tearDown()
- */
- @Override
- protected void tearDown() throws Exception {
- nativeTearDownTestEnvironment(mTestEnvironmentPointer);
- super.tearDown();
- }
-
- private native void nativeInitApplicationContext(Context context);
-
- private native long nativeSetupTestEnvironment();
-
- private native void nativeTearDownTestEnvironment(long testEnvironment);
-
- protected native void nativeRunLoop(long timeoutMS);
-
-}

Powered by Google App Engine
This is Rietveld 408576698