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

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

Issue 759833002: [Android] Remove the workaround code of a platform bug. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address reviewer's comments 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
deleted file mode 100644
index 6abdb8910b2b14c9cf32d6dfba30b6bb61e7a434..0000000000000000000000000000000000000000
--- a/base/android/javatests/src/org/chromium/base/LibraryLoaderHelperTest.java
+++ /dev/null
@@ -1,55 +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.base;
-
-import android.content.Context;
-import android.test.InstrumentationTestCase;
-import android.test.suitebuilder.annotation.MediumTest;
-
-import org.chromium.base.library_loader.LibraryLoaderHelper;
-
-import java.io.File;
-
-/**
- * Test class for the native library hack.
- */
-public class LibraryLoaderHelperTest extends InstrumentationTestCase {
- private static final String TAG = "LibraryLoaderHelperTest";
-
- @Override
- public void setUp() throws Exception {
- Context context = getInstrumentation().getTargetContext();
- LibraryLoaderHelper.deleteLibrariesSynchronously(
- context, LibraryLoaderHelper.PACKAGE_MANAGER_WORKAROUND_DIR);
- }
-
- @MediumTest
- public void testLoadNativeLibraries() {
- getInstrumentation().runOnMainSync(new Runnable() {
- @Override
- public void run() {
- Context context = getInstrumentation().getTargetContext();
- File libDir = LibraryLoaderHelper.getLibDir(context,
- LibraryLoaderHelper.PACKAGE_MANAGER_WORKAROUND_DIR);
- assertTrue(libDir.exists());
- assertTrue(libDir.isDirectory());
- assertEquals(libDir.list().length, 0);
-
- assertTrue(LibraryLoaderHelper.loadNativeLibrariesUsingWorkaroundForTesting(
- context));
-
- assertTrue(libDir.list().length > 0);
- }
- });
- }
-
- @Override
- public void tearDown() throws Exception {
- Context context = getInstrumentation().getTargetContext();
- LibraryLoaderHelper.deleteLibrariesSynchronously(
- context, LibraryLoaderHelper.PACKAGE_MANAGER_WORKAROUND_DIR);
- super.tearDown();
- }
-}

Powered by Google App Engine
This is Rietveld 408576698