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

Side by Side Diff: testing/android/java/src/org/chromium/native_test/ChromeNativeTestActivity.java

Issue 59533009: Check library version and handle library load errors (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix BrowserStartupControllerTest Created 7 years 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 unified diff | Download patch
« no previous file with comments | « content/shell/android/shell_apk/src/org/chromium/content_shell_apk/ContentShellActivity.java ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 package org.chromium.native_test; 5 package org.chromium.native_test;
6 6
7 import android.app.Activity; 7 import android.app.Activity;
8 import android.content.Context; 8 import android.content.Context;
9 import android.os.Bundle; 9 import android.os.Bundle;
10 import android.os.Handler; 10 import android.os.Handler;
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 } 61 }
62 62
63 // Signal a failure of the native test loader to python scripts 63 // Signal a failure of the native test loader to python scripts
64 // which run tests. For example, we look for 64 // which run tests. For example, we look for
65 // RUNNER_FAILED build/android/test_package.py. 65 // RUNNER_FAILED build/android/test_package.py.
66 private void nativeTestFailed() { 66 private void nativeTestFailed() {
67 Log.e(TAG, "[ RUNNER_FAILED ] could not load native library"); 67 Log.e(TAG, "[ RUNNER_FAILED ] could not load native library");
68 } 68 }
69 69
70 private void loadLibraries() { 70 private void loadLibraries() {
71 for (String library: NativeLibraries.libraries) { 71 for (String library: NativeLibraries.LIBRARIES) {
72 Log.i(TAG, "loading: " + library); 72 Log.i(TAG, "loading: " + library);
73 System.loadLibrary(library); 73 System.loadLibrary(library);
74 Log.i(TAG, "loaded: " + library); 74 Log.i(TAG, "loaded: " + library);
75 } 75 }
76 } 76 }
77 77
78 private native void nativeRunTests(String filesDir, Context appContext); 78 private native void nativeRunTests(String filesDir, Context appContext);
79 } 79 }
OLDNEW
« no previous file with comments | « content/shell/android/shell_apk/src/org/chromium/content_shell_apk/ContentShellActivity.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698