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

Unified Diff: chrome/android/javatests/src/org/chromium/chrome/browser/customtabs/ClientManagerTest.java

Issue 1857223002: [Custom Tabs] Make ClientManagerTest derive from NativeLibraryTestBase. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/android/javatests/src/org/chromium/chrome/browser/customtabs/ClientManagerTest.java
diff --git a/chrome/android/javatests/src/org/chromium/chrome/browser/customtabs/ClientManagerTest.java b/chrome/android/javatests/src/org/chromium/chrome/browser/customtabs/ClientManagerTest.java
index d9920a837c92ced1cdbe31b95b4ad416fc28a890..daed8588176f712d097dd4ef5ad2f899e78ab6c5 100644
--- a/chrome/android/javatests/src/org/chromium/chrome/browser/customtabs/ClientManagerTest.java
+++ b/chrome/android/javatests/src/org/chromium/chrome/browser/customtabs/ClientManagerTest.java
@@ -8,14 +8,12 @@ import android.content.Context;
import android.os.IBinder;
import android.os.Process;
import android.support.customtabs.ICustomTabsCallback;
-import android.test.InstrumentationTestCase;
import android.test.suitebuilder.annotation.SmallTest;
-import org.chromium.base.library_loader.LibraryLoader;
-import org.chromium.base.library_loader.LibraryProcessType;
+import org.chromium.content.browser.test.NativeLibraryTestBase;
/** Tests for ClientManager. */
-public class ClientManagerTest extends InstrumentationTestCase {
+public class ClientManagerTest extends NativeLibraryTestBase {
private static final String URL = "https://www.android.com";
private ClientManager mClientManager;
private ICustomTabsCallback mCallback = new CustomTabsTestUtils.DummyCallback();
@@ -26,8 +24,7 @@ public class ClientManagerTest extends InstrumentationTestCase {
protected void setUp() throws Exception {
super.setUp();
Context context = getInstrumentation().getTargetContext().getApplicationContext();
- // UrlUtilities used in ClientManager#getPredictionOutcome() needs the native library.
- LibraryLoader.get(LibraryProcessType.PROCESS_BROWSER).ensureInitialized(context);
+ loadNativeLibraryNoBrowserProcess();
RequestThrottler.purgeAllEntriesForTesting(context);
mClientManager = new ClientManager(context);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698