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

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

Issue 1071573003: [Android] Move testing/android/ to testing/android/native_test/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: removing errant commit Created 5 years, 8 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
« no previous file with comments | « chrome/test/BUILD.gn ('k') | content/test/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/fifo_utils.h" 12 #include "base/android/fifo_utils.h"
13 #include "base/android/jni_android.h" 13 #include "base/android/jni_android.h"
14 #include "base/android/jni_string.h" 14 #include "base/android/jni_string.h"
15 #include "base/android/library_loader/library_loader_hooks.h" 15 #include "base/android/library_loader/library_loader_hooks.h"
16 #include "base/android/scoped_java_ref.h" 16 #include "base/android/scoped_java_ref.h"
17 #include "base/base_switches.h" 17 #include "base/base_switches.h"
18 #include "base/command_line.h" 18 #include "base/command_line.h"
19 #include "base/files/file_path.h" 19 #include "base/files/file_path.h"
20 #include "base/logging.h" 20 #include "base/logging.h"
21 #include "base/strings/string_tokenizer.h" 21 #include "base/strings/string_tokenizer.h"
22 #include "base/strings/string_util.h" 22 #include "base/strings/string_util.h"
23 #include "base/strings/stringprintf.h" 23 #include "base/strings/stringprintf.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 "jni/ContentBrowserTestsActivity_jni.h" 28 #include "jni/ContentBrowserTestsActivity_jni.h"
29 #include "media/base/media_switches.h" 29 #include "media/base/media_switches.h"
30 #include "testing/android/native_test_util.h" 30 #include "testing/android/native_test/native_test_util.h"
31 31
32 using testing::native_test_util::ArgsToArgv; 32 using testing::native_test_util::ArgsToArgv;
33 using testing::native_test_util::ParseArgsFromCommandLineFile; 33 using testing::native_test_util::ParseArgsFromCommandLineFile;
34 using testing::native_test_util::ScopedMainEntryLogger; 34 using testing::native_test_util::ScopedMainEntryLogger;
35 35
36 // The main function of the program to be wrapped as an apk. 36 // The main function of the program to be wrapped as an apk.
37 extern int main(int argc, char** argv); 37 extern int main(int argc, char** argv);
38 38
39 namespace { 39 namespace {
40 40
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 92
93 ScopedMainEntryLogger scoped_main_entry_logger; 93 ScopedMainEntryLogger scoped_main_entry_logger;
94 main(argc, &argv[0]); 94 main(argc, &argv[0]);
95 } 95 }
96 96
97 bool RegisterContentBrowserTestsAndroid(JNIEnv* env) { 97 bool RegisterContentBrowserTestsAndroid(JNIEnv* env) {
98 return RegisterNativesImpl(env); 98 return RegisterNativesImpl(env);
99 } 99 }
100 100
101 } // namespace content 101 } // namespace content
OLDNEW
« no previous file with comments | « chrome/test/BUILD.gn ('k') | content/test/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698