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

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

Issue 2847523002: Android: Remove GetApplicationContext part 4 (Closed)
Patch Set: Rebase and fix build Created 3 years, 7 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 unified diff | Download patch
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « services/shape_detection/shape_detection_service.cc ('k') | testing/android/native_test/native_test_launcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698