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

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: Addressed comments 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 180f09e00e04dd9cac39bfc54de66de8609d8a91..691026d017e292835ae561f8de5bb58d52f4e7dc 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;
@@ -39,7 +40,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