summaryrefslogtreecommitdiffstats
path: root/testing/android
diff options
context:
space:
mode:
authornileshagrawal@chromium.org <nileshagrawal@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-08-31 01:02:24 +0000
committernileshagrawal@chromium.org <nileshagrawal@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-08-31 01:02:24 +0000
commitc558923e27af6998e1b1e32e8d5f162eb08bbc2d (patch)
tree02eac13e4b862615a922835405c925acf9b60096 /testing/android
parentf80e6e1ac5f2562db95e4872e6b9368adf6f483e (diff)
downloadchromium_src-c558923e27af6998e1b1e32e8d5f162eb08bbc2d.zip
chromium_src-c558923e27af6998e1b1e32e8d5f162eb08bbc2d.tar.gz
chromium_src-c558923e27af6998e1b1e32e8d5f162eb08bbc2d.tar.bz2
Increase logging priority for test markers.
BUG= Review URL: https://chromiumcodereview.appspot.com/10910021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@154333 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'testing/android')
-rw-r--r--testing/android/java/src/org/chromium/native_test/ChromeNativeTestActivity.java4
-rw-r--r--testing/android/native_test_launcher.cc10
2 files changed, 7 insertions, 7 deletions
diff --git a/testing/android/java/src/org/chromium/native_test/ChromeNativeTestActivity.java b/testing/android/java/src/org/chromium/native_test/ChromeNativeTestActivity.java
index 7fec565..86dc160 100644
--- a/testing/android/java/src/org/chromium/native_test/ChromeNativeTestActivity.java
+++ b/testing/android/java/src/org/chromium/native_test/ChromeNativeTestActivity.java
@@ -69,13 +69,13 @@ public class ChromeNativeTestActivity extends Activity {
}
private void runTests() {
- Log.d(TAG, ">>nativeRunTests");
+ Log.e(TAG, ">>nativeRunTests");
// This directory is used by build/android/pylib/test_package_apk.py.
File filesDir = new File(Environment.getExternalStorageDirectory(),
"native_tests/");
filesDir.mkdirs();
nativeRunTests(filesDir.getAbsolutePath(), getApplicationContext());
- Log.d(TAG, "<<nativeRunTests");
+ Log.e(TAG, "<<nativeRunTests");
}
// Signal a failure of the native test loader to python scripts
diff --git a/testing/android/native_test_launcher.cc b/testing/android/native_test_launcher.cc
index d807947..bece56a 100644
--- a/testing/android/native_test_launcher.cc
+++ b/testing/android/native_test_launcher.cc
@@ -134,13 +134,13 @@ void AndroidLogPrinter::OnTestProgramStart(
const ::testing::UnitTest& unit_test) {
std::string msg = StringPrintf("[ START ] %d",
unit_test.test_to_run_count());
- log_write(ANDROID_LOG_VERBOSE, msg.c_str());
+ log_write(ANDROID_LOG_ERROR, msg.c_str());
}
void AndroidLogPrinter::OnTestStart(const ::testing::TestInfo& test_info) {
std::string msg = StringPrintf("[ RUN ] %s.%s",
test_info.test_case_name(), test_info.name());
- log_write(ANDROID_LOG_VERBOSE, msg.c_str());
+ log_write(ANDROID_LOG_ERROR, msg.c_str());
}
void AndroidLogPrinter::OnTestPartResult(
@@ -151,21 +151,21 @@ void AndroidLogPrinter::OnTestPartResult(
test_part_result.file_name(),
test_part_result.line_number(),
test_part_result.summary());
- log_write(ANDROID_LOG_VERBOSE, msg.c_str());
+ log_write(ANDROID_LOG_ERROR, msg.c_str());
}
void AndroidLogPrinter::OnTestEnd(const ::testing::TestInfo& test_info) {
std::string msg = StringPrintf("%s %s.%s",
test_info.result()->Failed() ? "[ FAILED ]" : "[ OK ]",
test_info.test_case_name(), test_info.name());
- log_write(ANDROID_LOG_VERBOSE, msg.c_str());
+ log_write(ANDROID_LOG_ERROR, msg.c_str());
}
void AndroidLogPrinter::OnTestProgramEnd(
const ::testing::UnitTest& unit_test) {
std::string msg = StringPrintf("[ END ] %d",
unit_test.successful_test_count());
- log_write(ANDROID_LOG_VERBOSE, msg.c_str());
+ log_write(ANDROID_LOG_ERROR, msg.c_str());
}
} // namespace