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

Side by Side Diff: content/shell/android/browsertests_apk/content_browser_tests_android.cc

Issue 16756003: Use a direct include of strings headers in content/renderer and content/shell. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 class sets up the environment for running the content browser tests 5 // This class sets up the environment for running the content browser tests
6 // inside an android application. 6 // inside an android application.
7 7
8 #include <android/log.h> 8 #include <android/log.h>
9 #include <unistd.h> 9 #include <unistd.h>
10 10
11 #include "base/android/base_jni_registrar.h" 11 #include "base/android/base_jni_registrar.h"
12 #include "base/android/jni_android.h" 12 #include "base/android/jni_android.h"
13 #include "base/android/jni_string.h" 13 #include "base/android/jni_string.h"
14 #include "base/android/scoped_java_ref.h" 14 #include "base/android/scoped_java_ref.h"
15 #include "base/base_switches.h" 15 #include "base/base_switches.h"
16 #include "base/command_line.h" 16 #include "base/command_line.h"
17 #include "base/files/file_path.h" 17 #include "base/files/file_path.h"
18 #include "base/logging.h" 18 #include "base/logging.h"
19 #include "base/string_util.h"
20 #include "base/stringprintf.h"
21 #include "base/strings/string_tokenizer.h" 19 #include "base/strings/string_tokenizer.h"
20 #include "base/strings/string_util.h"
21 #include "base/strings/stringprintf.h"
22 #include "content/public/app/android_library_loader_hooks.h" 22 #include "content/public/app/android_library_loader_hooks.h"
23 #include "content/public/app/content_main.h" 23 #include "content/public/app/content_main.h"
24 #include "content/public/common/content_switches.h" 24 #include "content/public/common/content_switches.h"
25 #include "content/public/test/test_launcher.h" 25 #include "content/public/test/test_launcher.h"
26 #include "content/shell/android/shell_jni_registrar.h" 26 #include "content/shell/android/shell_jni_registrar.h"
27 #include "content/shell/app/shell_main_delegate.h" 27 #include "content/shell/app/shell_main_delegate.h"
28 #include "content/test/browser_test_message_pump_android.h" 28 #include "content/test/browser_test_message_pump_android.h"
29 #include "jni/ContentBrowserTestsActivity_jni.h" 29 #include "jni/ContentBrowserTestsActivity_jni.h"
30 #include "testing/android/native_test_util.h" 30 #include "testing/android/native_test_util.h"
31 31
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 107
108 if (!content::BrowserTestMessagePumpAndroid::RegisterJni(env)) 108 if (!content::BrowserTestMessagePumpAndroid::RegisterJni(env))
109 return -1; 109 return -1;
110 110
111 if (!content::RegisterNativesImpl(env)) 111 if (!content::RegisterNativesImpl(env))
112 return -1; 112 return -1;
113 113
114 content::SetContentMainDelegate(new content::ShellMainDelegate()); 114 content::SetContentMainDelegate(new content::ShellMainDelegate());
115 return JNI_VERSION_1_4; 115 return JNI_VERSION_1_4;
116 } 116 }
OLDNEW
« no previous file with comments | « content/renderer/webplugin_delegate_proxy.cc ('k') | content/shell/renderer/webkit_test_runner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698