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

Side by Side Diff: testing/android/native_test_launcher.cc

Issue 15851009: Use a direct include of strings headers in testing/, third_party/, tools/. (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
« no previous file with comments | « no previous file | testing/android/native_test_util.cc » ('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 native tests inside an 5 // This class sets up the environment for running the native tests inside an
6 // android application. It outputs (to a fifo) markers identifying the 6 // android application. It outputs (to a fifo) markers identifying the
7 // START/PASSED/CRASH of the test suite, FAILURE/SUCCESS of individual tests, 7 // START/PASSED/CRASH of the test suite, FAILURE/SUCCESS of individual tests,
8 // etc. 8 // etc.
9 // These markers are read by the test runner script to generate test results. 9 // These markers are read by the test runner script to generate test results.
10 // It installs signal handlers to detect crashes. 10 // It installs signal handlers to detect crashes.
11 11
12 #include <android/log.h> 12 #include <android/log.h>
13 #include <signal.h> 13 #include <signal.h>
14 14
15 #include "base/android/base_jni_registrar.h" 15 #include "base/android/base_jni_registrar.h"
16 #include "base/android/jni_android.h" 16 #include "base/android/jni_android.h"
17 #include "base/android/jni_string.h" 17 #include "base/android/jni_string.h"
18 #include "base/android/scoped_java_ref.h" 18 #include "base/android/scoped_java_ref.h"
19 #include "base/at_exit.h" 19 #include "base/at_exit.h"
20 #include "base/base_switches.h" 20 #include "base/base_switches.h"
21 #include "base/command_line.h" 21 #include "base/command_line.h"
22 #include "base/files/file_path.h" 22 #include "base/files/file_path.h"
23 #include "base/logging.h" 23 #include "base/logging.h"
24 #include "base/stringprintf.h" 24 #include "base/strings/stringprintf.h"
25 #include "gtest/gtest.h" 25 #include "gtest/gtest.h"
26 #include "testing/android/native_test_util.h" 26 #include "testing/android/native_test_util.h"
27 #include "testing/jni/ChromeNativeTestActivity_jni.h" 27 #include "testing/jni/ChromeNativeTestActivity_jni.h"
28 28
29 using testing::native_test_util::ArgsToArgv; 29 using testing::native_test_util::ArgsToArgv;
30 using testing::native_test_util::CreateFIFO; 30 using testing::native_test_util::CreateFIFO;
31 using testing::native_test_util::ParseArgsFromCommandLineFile; 31 using testing::native_test_util::ParseArgsFromCommandLineFile;
32 using testing::native_test_util::RedirectStream; 32 using testing::native_test_util::RedirectStream;
33 using testing::native_test_util::ScopedMainEntryLogger; 33 using testing::native_test_util::ScopedMainEntryLogger;
34 34
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 InstallHandlers(); 159 InstallHandlers();
160 160
161 base::android::InitVM(vm); 161 base::android::InitVM(vm);
162 JNIEnv* env = base::android::AttachCurrentThread(); 162 JNIEnv* env = base::android::AttachCurrentThread();
163 if (!RegisterNativesImpl(env)) { 163 if (!RegisterNativesImpl(env)) {
164 return -1; 164 return -1;
165 } 165 }
166 166
167 return JNI_VERSION_1_4; 167 return JNI_VERSION_1_4;
168 } 168 }
OLDNEW
« no previous file with comments | « no previous file | testing/android/native_test_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698