| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |