| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 | 8 |
| 9 import org.chromium.base.ContextUtils; | 9 import org.chromium.base.ContextUtils; |
| 10 import org.chromium.base.Log; | 10 import org.chromium.base.Log; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 // otherwise loading android.app.lib_name will fail | 36 // otherwise loading android.app.lib_name will fail |
| 37 loadLibraries(); | 37 loadLibraries(); |
| 38 } | 38 } |
| 39 | 39 |
| 40 private void loadLibraries() { | 40 private void loadLibraries() { |
| 41 for (String library : NativeLibraries.LIBRARIES) { | 41 for (String library : NativeLibraries.LIBRARIES) { |
| 42 Log.i(TAG, "loading: %s", library); | 42 Log.i(TAG, "loading: %s", library); |
| 43 System.loadLibrary(library); | 43 System.loadLibrary(library); |
| 44 Log.i(TAG, "loaded: %s", library); | 44 Log.i(TAG, "loaded: %s", library); |
| 45 } | 45 } |
| 46 ContextUtils.initApplicationContextForNative(); | |
| 47 } | 46 } |
| 48 } | 47 } |
| OLD | NEW |