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

Unified Diff: base/android/javatests/src/org/chromium/base/LibraryLoaderHelperTest.java

Issue 693943003: Update from https://crrev.com/302630 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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: base/android/javatests/src/org/chromium/base/LibraryLoaderHelperTest.java
diff --git a/base/android/javatests/src/org/chromium/base/LibraryLoaderHelperTest.java b/base/android/javatests/src/org/chromium/base/LibraryLoaderHelperTest.java
index 85f4c77baf1f4101a71cb7786def58bfe412d9a8..6abdb8910b2b14c9cf32d6dfba30b6bb61e7a434 100644
--- a/base/android/javatests/src/org/chromium/base/LibraryLoaderHelperTest.java
+++ b/base/android/javatests/src/org/chromium/base/LibraryLoaderHelperTest.java
@@ -21,7 +21,8 @@ public class LibraryLoaderHelperTest extends InstrumentationTestCase {
@Override
public void setUp() throws Exception {
Context context = getInstrumentation().getTargetContext();
- LibraryLoaderHelper.deleteWorkaroundLibrariesSynchronously(context);
+ LibraryLoaderHelper.deleteLibrariesSynchronously(
+ context, LibraryLoaderHelper.PACKAGE_MANAGER_WORKAROUND_DIR);
}
@MediumTest
@@ -30,13 +31,13 @@ public class LibraryLoaderHelperTest extends InstrumentationTestCase {
@Override
public void run() {
Context context = getInstrumentation().getTargetContext();
- File libDir = LibraryLoaderHelper.getWorkaroundLibDir(context);
+ File libDir = LibraryLoaderHelper.getLibDir(context,
+ LibraryLoaderHelper.PACKAGE_MANAGER_WORKAROUND_DIR);
assertTrue(libDir.exists());
assertTrue(libDir.isDirectory());
assertEquals(libDir.list().length, 0);
- assertTrue(
- LibraryLoaderHelper.loadNativeLibrariesUsingWorkaroundForTesting(
+ assertTrue(LibraryLoaderHelper.loadNativeLibrariesUsingWorkaroundForTesting(
context));
assertTrue(libDir.list().length > 0);
@@ -47,7 +48,8 @@ public class LibraryLoaderHelperTest extends InstrumentationTestCase {
@Override
public void tearDown() throws Exception {
Context context = getInstrumentation().getTargetContext();
- LibraryLoaderHelper.deleteWorkaroundLibrariesSynchronously(context);
+ LibraryLoaderHelper.deleteLibrariesSynchronously(
+ context, LibraryLoaderHelper.PACKAGE_MANAGER_WORKAROUND_DIR);
super.tearDown();
}
}
« no previous file with comments | « base/android/java/src/org/chromium/base/library_loader/Linker.java ('k') | base/android/linker/linker_jni.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698