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

Unified Diff: components/cronet/android/test/javatests/src/org/chromium/net/CronetTestBase.java

Issue 2333713003: Move PathUtils to use ContextUtils. (Closed)
Patch Set: Rebase Created 4 years, 2 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: components/cronet/android/test/javatests/src/org/chromium/net/CronetTestBase.java
diff --git a/components/cronet/android/test/javatests/src/org/chromium/net/CronetTestBase.java b/components/cronet/android/test/javatests/src/org/chromium/net/CronetTestBase.java
index a82cd92fb02c6c61ccd23023f0596045a9dd1f00..fcec74d2de9d51e230e7ab2ef9eaf691ccddaff9 100644
--- a/components/cronet/android/test/javatests/src/org/chromium/net/CronetTestBase.java
+++ b/components/cronet/android/test/javatests/src/org/chromium/net/CronetTestBase.java
@@ -6,6 +6,7 @@ package org.chromium.net;
import android.test.AndroidTestCase;
+import org.chromium.base.ContextUtils;
import org.chromium.base.PathUtils;
import java.lang.annotation.ElementType;
@@ -30,7 +31,8 @@ public class CronetTestBase extends AndroidTestCase {
@Override
protected void setUp() throws Exception {
super.setUp();
- PathUtils.setPrivateDataDirectorySuffix(PRIVATE_DATA_DIRECTORY_SUFFIX, getContext());
+ ContextUtils.initApplicationContext(getContext().getApplicationContext());
+ PathUtils.setPrivateDataDirectorySuffix(PRIVATE_DATA_DIRECTORY_SUFFIX);
CronetTestFramework.prepareTestStorage(getContext());
}

Powered by Google App Engine
This is Rietveld 408576698