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

Side by Side Diff: content/shell/android/linker_test_apk/chromium_linker_test_linker_tests.cc

Issue 2209993003: Add missing using statements for JNI types. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 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"
11 11
12 #include <errno.h> 12 #include <errno.h>
13 #include <stddef.h> 13 #include <stddef.h>
14 #include <stdint.h> 14 #include <stdint.h>
15 #include <stdio.h> 15 #include <stdio.h>
16 #include <sys/mman.h> 16 #include <sys/mman.h>
17 #include <string> 17 #include <string>
18 #include <vector> 18 #include <vector>
19 19
20 #include "base/debug/proc_maps_linux.h" 20 #include "base/debug/proc_maps_linux.h"
21 #include "base/logging.h" 21 #include "base/logging.h"
22 #include "base/strings/stringprintf.h" 22 #include "base/strings/stringprintf.h"
23 #include "jni/LinkerTests_jni.h" 23 #include "jni/LinkerTests_jni.h"
24 #include "third_party/re2/src/re2/re2.h" 24 #include "third_party/re2/src/re2/re2.h"
25 25
26 using base::android::JavaParamRef;
27
26 namespace content { 28 namespace content {
27 29
28 namespace { 30 namespace {
29 31
30 using base::debug::MappedMemoryRegion; 32 using base::debug::MappedMemoryRegion;
31 33
32 jboolean RunChecks(bool in_browser_process, bool need_relros) { 34 jboolean RunChecks(bool in_browser_process, bool need_relros) {
33 // IMPORTANT NOTE: The Python test control script reads the logcat for 35 // IMPORTANT NOTE: The Python test control script reads the logcat for
34 // lines like: 36 // lines like:
35 // BROWSER_LINKER_TEST: <status> 37 // BROWSER_LINKER_TEST: <status>
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 206
205 jboolean CheckForNoSharedRelros(JNIEnv* env, 207 jboolean CheckForNoSharedRelros(JNIEnv* env,
206 const JavaParamRef<jclass>& clazz, 208 const JavaParamRef<jclass>& clazz,
207 jboolean in_browser_process) { 209 jboolean in_browser_process) {
208 return RunChecks(in_browser_process, false); 210 return RunChecks(in_browser_process, false);
209 } 211 }
210 212
211 bool RegisterLinkerTestsJni(JNIEnv* env) { return RegisterNativesImpl(env); } 213 bool RegisterLinkerTestsJni(JNIEnv* env) { return RegisterNativesImpl(env); }
212 214
213 } // namespace content 215 } // namespace content
OLDNEW
« no previous file with comments | « content/common/android/resource_request_body_android.cc ('k') | content/shell/android/shell_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698