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

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

Issue 1115173004: [Android] Rename ChromeNativeTest* to NativeTest*. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: switch to org.chromium.base.Log Created 5 years, 7 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 | « testing/android/native_test/java/src/org/chromium/native_test/NativeTestInstrumentationTestRunner.java ('k') | no next file » | 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/fifo_utils.h" 16 #include "base/android/fifo_utils.h"
17 #include "base/android/jni_android.h" 17 #include "base/android/jni_android.h"
18 #include "base/android/jni_string.h" 18 #include "base/android/jni_string.h"
19 #include "base/android/scoped_java_ref.h" 19 #include "base/android/scoped_java_ref.h"
20 #include "base/at_exit.h" 20 #include "base/at_exit.h"
21 #include "base/base_switches.h" 21 #include "base/base_switches.h"
22 #include "base/command_line.h" 22 #include "base/command_line.h"
23 #include "base/files/file_path.h" 23 #include "base/files/file_path.h"
24 #include "base/files/file_util.h" 24 #include "base/files/file_util.h"
25 #include "base/logging.h" 25 #include "base/logging.h"
26 #include "base/strings/stringprintf.h" 26 #include "base/strings/stringprintf.h"
27 #include "gtest/gtest.h" 27 #include "gtest/gtest.h"
28 #include "jni/ChromeNativeTestActivity_jni.h" 28 #include "jni/NativeTestActivity_jni.h"
29 #include "testing/android/native_test/native_test_util.h" 29 #include "testing/android/native_test/native_test_util.h"
30 30
31 using testing::native_test_util::ArgsToArgv; 31 using testing::native_test_util::ArgsToArgv;
32 using testing::native_test_util::ParseArgsFromCommandLineFile; 32 using testing::native_test_util::ParseArgsFromCommandLineFile;
33 using testing::native_test_util::ParseArgsFromString; 33 using testing::native_test_util::ParseArgsFromString;
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 a test apk. 36 // The main function of the program to be wrapped as a test apk.
37 extern int main(int argc, char** argv); 37 extern int main(int argc, char** argv);
38 38
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 struct sigaction sa; 152 struct sigaction sa;
153 memset(&sa, 0, sizeof(sa)); 153 memset(&sa, 0, sizeof(sa));
154 154
155 sa.sa_sigaction = SignalHandler; 155 sa.sa_sigaction = SignalHandler;
156 sa.sa_flags = SA_SIGINFO; 156 sa.sa_flags = SA_SIGINFO;
157 157
158 for (unsigned int i = 0; kExceptionSignals[i] != -1; ++i) { 158 for (unsigned int i = 0; kExceptionSignals[i] != -1; ++i) {
159 sigaction(kExceptionSignals[i], &sa, &g_old_sa[kExceptionSignals[i]]); 159 sigaction(kExceptionSignals[i], &sa, &g_old_sa[kExceptionSignals[i]]);
160 } 160 }
161 } 161 }
OLDNEW
« no previous file with comments | « testing/android/native_test/java/src/org/chromium/native_test/NativeTestInstrumentationTestRunner.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698