Chromium Code Reviews| Index: testing/android/native_test/native_test_launcher.cc |
| diff --git a/testing/android/native_test/native_test_launcher.cc b/testing/android/native_test/native_test_launcher.cc |
| index 2389c731a681c50c71f145803bbdf7d30c9d7f9f..9547216defa6b486756c2f31fbd59fc1ad2905f6 100644 |
| --- a/testing/android/native_test/native_test_launcher.cc |
| +++ b/testing/android/native_test/native_test_launcher.cc |
| @@ -14,7 +14,6 @@ |
| #include "base/android/base_jni_registrar.h" |
| #include "base/android/context_utils.h" |
| -#include "base/android/fifo_utils.h" |
| #include "base/android/jni_string.h" |
| #include "base/android/scoped_java_ref.h" |
| #include "base/at_exit.h" |
| @@ -105,7 +104,7 @@ static void RunTests(JNIEnv* env, |
| // A few options, such "--gtest_list_tests", will just use printf directly |
| // Always redirect stdout to a known file. |
| - if (!base::android::RedirectStream(stdout, stdout_file_path, "a+")) { |
| + if (freopen(stdout_file_path.value().c_str(), "a+", stdout) == NULL) { |
|
jbudorick
2016/12/08 02:04:13
This was the last remaining use of fifo_utils.
|
| AndroidLog(ANDROID_LOG_ERROR, "Failed to redirect stream to file: %s: %s\n", |
| stdout_file_path.value().c_str(), strerror(errno)); |
| exit(EXIT_FAILURE); |