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

Unified Diff: content/public/android/javatests/src/org/chromium/content/browser/CommandLineTest.java

Issue 11567061: Throw exception when initialization failed. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync Created 7 years, 11 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: content/public/android/javatests/src/org/chromium/content/browser/CommandLineTest.java
diff --git a/content/public/android/javatests/src/org/chromium/content/browser/CommandLineTest.java b/content/public/android/javatests/src/org/chromium/content/browser/CommandLineTest.java
index ad41cd6b761694e94bccd5fc577403ddebac7c9c..b84f7b8d8e8ee94e239cff846b1b7b735175899f 100644
--- a/content/public/android/javatests/src/org/chromium/content/browser/CommandLineTest.java
+++ b/content/public/android/javatests/src/org/chromium/content/browser/CommandLineTest.java
@@ -11,6 +11,7 @@ import android.test.suitebuilder.annotation.SmallTest;
import org.chromium.base.test.util.Feature;
import org.chromium.content.app.LibraryLoader;
import org.chromium.content.common.CommandLine;
+import org.chromium.content.common.ProcessInitException;
import org.chromium.content_shell.ContentShellActivity;
import org.chromium.content_shell.ContentShellApplication;
@@ -43,7 +44,11 @@ public class CommandLineTest extends InstrumentationTestCase {
@Override
public void run() {
ContentShellApplication.initializeApplicationParameters();
- LibraryLoader.ensureInitialized();
+ try {
+ LibraryLoader.ensureInitialized();
+ } catch (ProcessInitException e) {
+ throw new Error(e);
+ }
}
});
assertTrue(CommandLine.getInstance().isNativeImplementation());

Powered by Google App Engine
This is Rietveld 408576698