| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 // This file implements the native methods of | 5 // This file implements the native methods of |
| 6 // org.content.chromium.app.LinkerTests | 6 // org.content.chromium.app.LinkerTests |
| 7 // Unlike the content of linker_jni.cc, it is part of the content library and | 7 // Unlike the content of linker_jni.cc, it is part of the content library and |
| 8 // can thus use base/ and the C++ STL. | 8 // can thus use base/ and the C++ STL. |
| 9 | 9 |
| 10 #include "content/shell/android/linker_test_apk/chromium_linker_test_linker_test
s.h" | 10 #include "content/shell/android/linker_test_apk/chromium_linker_test_linker_test
s.h" |
| (...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 } | 189 } |
| 190 } | 190 } |
| 191 | 191 |
| 192 VLOG(0) << prefix << "SUCCESS"; | 192 VLOG(0) << prefix << "SUCCESS"; |
| 193 return true; | 193 return true; |
| 194 } | 194 } |
| 195 | 195 |
| 196 } // namespace | 196 } // namespace |
| 197 | 197 |
| 198 jboolean CheckForSharedRelros(JNIEnv* env, | 198 jboolean CheckForSharedRelros(JNIEnv* env, |
| 199 jclass clazz, | 199 const JavaParamRef<jclass>& clazz, |
| 200 jboolean in_browser_process) { | 200 jboolean in_browser_process) { |
| 201 return RunChecks(in_browser_process, true); | 201 return RunChecks(in_browser_process, true); |
| 202 } | 202 } |
| 203 | 203 |
| 204 jboolean CheckForNoSharedRelros(JNIEnv* env, | 204 jboolean CheckForNoSharedRelros(JNIEnv* env, |
| 205 jclass clazz, | 205 const JavaParamRef<jclass>& clazz, |
| 206 jboolean in_browser_process) { | 206 jboolean in_browser_process) { |
| 207 return RunChecks(in_browser_process, false); | 207 return RunChecks(in_browser_process, false); |
| 208 } | 208 } |
| 209 | 209 |
| 210 bool RegisterLinkerTestsJni(JNIEnv* env) { return RegisterNativesImpl(env); } | 210 bool RegisterLinkerTestsJni(JNIEnv* env) { return RegisterNativesImpl(env); } |
| 211 | 211 |
| 212 } // namespace content | 212 } // namespace content |
| OLD | NEW |