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

Unified Diff: base/android/java/src/org/chromium/base/Log.java

Issue 1173363008: [Android] Refactor browser test execution. (RELAND) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed. Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | build/android/pylib/gtest/gtest_test_instance.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/android/java/src/org/chromium/base/Log.java
diff --git a/base/android/java/src/org/chromium/base/Log.java b/base/android/java/src/org/chromium/base/Log.java
index 553923029bd1e0d62286eede83a5bd77d8849716..4a1a00de3b9052c5e273a91455791fa115e6413e 100644
--- a/base/android/java/src/org/chromium/base/Log.java
+++ b/base/android/java/src/org/chromium/base/Log.java
@@ -235,6 +235,7 @@ public class Log {
* @param args Arguments referenced by the format specifiers in the format string. If the last
* one is a {@link Throwable}, its trace will be printed.
*/
+ @VisibleForTesting
public static void i(String tag, String messageTemplate, Object... args) {
if (Log.isLoggable(tag, Log.INFO)) {
String message = formatLog(messageTemplate, args);
@@ -256,6 +257,7 @@ public class Log {
* @param args Arguments referenced by the format specifiers in the format string. If the last
* one is a {@link Throwable}, its trace will be printed.
*/
+ @VisibleForTesting
public static void w(String tag, String messageTemplate, Object... args) {
if (Log.isLoggable(tag, Log.WARN)) {
String message = formatLog(messageTemplate, args);
@@ -277,6 +279,7 @@ public class Log {
* @param args Arguments referenced by the format specifiers in the format string. If the last
* one is a {@link Throwable}, its trace will be printed.
*/
+ @VisibleForTesting
public static void e(String tag, String messageTemplate, Object... args) {
if (Log.isLoggable(tag, Log.ERROR)) {
String message = formatLog(messageTemplate, args);
@@ -302,6 +305,7 @@ public class Log {
* @param args Arguments referenced by the format specifiers in the format string. If the last
* one is a {@link Throwable}, its trace will be printed.
*/
+ @VisibleForTesting
public static void wtf(String tag, String messageTemplate, Object... args) {
if (Log.isLoggable(tag, Log.ASSERT)) {
String message = formatLog(messageTemplate, args);
« no previous file with comments | « no previous file | build/android/pylib/gtest/gtest_test_instance.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698