| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 | 8 // can |
| 9 // thus use base/ and the C++ STL. | 9 // thus use base/ and the C++ STL. |
| 10 | 10 |
| 11 #include "content/shell/android/linker_test_apk/content_linker_test_linker_tests
.h" | 11 #include "content/shell/android/linker_test_apk/chromium_linker_test_linker_test
s.h" |
| 12 | 12 |
| 13 #include <errno.h> | 13 #include <errno.h> |
| 14 #include <sys/mman.h> | 14 #include <sys/mman.h> |
| 15 #include <stdio.h> | 15 #include <stdio.h> |
| 16 #include <string> | 16 #include <string> |
| 17 | 17 |
| 18 #include "base/basictypes.h" | 18 #include "base/basictypes.h" |
| 19 #include "base/debug/proc_maps_linux.h" | 19 #include "base/debug/proc_maps_linux.h" |
| 20 #include "base/logging.h" | 20 #include "base/logging.h" |
| 21 #include "base/strings/stringprintf.h" | 21 #include "base/strings/stringprintf.h" |
| (...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 176 | 176 |
| 177 jboolean CheckForNoSharedRelros(JNIEnv* env, | 177 jboolean CheckForNoSharedRelros(JNIEnv* env, |
| 178 jclass clazz, | 178 jclass clazz, |
| 179 jboolean in_browser_process) { | 179 jboolean in_browser_process) { |
| 180 return RunChecks(in_browser_process, false); | 180 return RunChecks(in_browser_process, false); |
| 181 } | 181 } |
| 182 | 182 |
| 183 bool RegisterLinkerTestsJni(JNIEnv* env) { return RegisterNativesImpl(env); } | 183 bool RegisterLinkerTestsJni(JNIEnv* env) { return RegisterNativesImpl(env); } |
| 184 | 184 |
| 185 } // namespace content | 185 } // namespace content |
| OLD | NEW |