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

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

Issue 1879013002: 🍈 Unify application context usage. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix content tests. :( Created 4 years, 8 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/MojoTestCase.java
diff --git a/mojo/android/javatests/src/org/chromium/mojo/MojoTestCase.java b/mojo/android/javatests/src/org/chromium/mojo/MojoTestCase.java
index 3e81b7a8017b662d7b85f81d57ca6ee083e7bb10..b366555f02a641cc7d8d637a05ef0d0c5e12dc99 100644
--- a/mojo/android/javatests/src/org/chromium/mojo/MojoTestCase.java
+++ b/mojo/android/javatests/src/org/chromium/mojo/MojoTestCase.java
@@ -25,9 +25,10 @@ public class MojoTestCase extends InstrumentationTestCase {
@Override
protected void setUp() throws Exception {
super.setUp();
+ ContextUtils.initApplicationContext(
+ getInstrumentation().getTargetContext().getApplicationContext());
LibraryLoader.get(LibraryProcessType.PROCESS_BROWSER)
.ensureInitialized(getInstrumentation().getTargetContext());
- ContextUtils.initApplicationContext(getInstrumentation().getTargetContext());
nativeInit();
mTestEnvironmentPointer = nativeSetupTestEnvironment();
}

Powered by Google App Engine
This is Rietveld 408576698