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()); |
} |