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

Unified Diff: base/test/launcher/test_launcher.cc

Issue 1081493002: base/test/launcher: don't trim leading whitespace from test output (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lucasfix
Patch Set: Remove UTF8 DCHECK from SplitStringDontTrim Created 5 years, 8 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
« base/strings/string_split.cc ('K') | « base/strings/string_split.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/test/launcher/test_launcher.cc
diff --git a/base/test/launcher/test_launcher.cc b/base/test/launcher/test_launcher.cc
index 0b09004d87c75bccab5bc02eb6151e4737643de1..752672370ca873597fccbabdd3191848f809702a 100644
--- a/base/test/launcher/test_launcher.cc
+++ b/base/test/launcher/test_launcher.cc
@@ -570,7 +570,7 @@ void TestLauncher::OnTestFinished(const TestResult& result) {
}
if (print_snippet) {
std::vector<std::string> snippet_lines;
- SplitString(result.output_snippet, '\n', &snippet_lines);
+ SplitStringDontTrim(result.output_snippet, '\n', &snippet_lines);
if (snippet_lines.size() > kOutputSnippetLinesLimit) {
size_t truncated_size = snippet_lines.size() - kOutputSnippetLinesLimit;
snippet_lines.erase(
« base/strings/string_split.cc ('K') | « base/strings/string_split.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698