| OLD | NEW |
| 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 #include "chrome/test/logging/win/log_file_printer.h" | 5 #include "chrome/test/logging/win/log_file_printer.h" |
| 6 | 6 |
| 7 #include <windows.h> | 7 #include <windows.h> |
| 8 #include <objbase.h> | 8 #include <objbase.h> |
| 9 #include <stddef.h> |
| 9 | 10 |
| 10 #include <iomanip> | 11 #include <iomanip> |
| 11 #include <ios> | 12 #include <ios> |
| 12 #include <ostream> | 13 #include <ostream> |
| 13 #include <sstream> | 14 #include <sstream> |
| 14 | 15 |
| 15 #include "base/basictypes.h" | |
| 16 #include "base/compiler_specific.h" | 16 #include "base/compiler_specific.h" |
| 17 #include "base/logging.h" | 17 #include "base/logging.h" |
| 18 #include "base/macros.h" |
| 18 #include "base/strings/string_number_conversions.h" | 19 #include "base/strings/string_number_conversions.h" |
| 19 #include "base/strings/string_piece.h" | 20 #include "base/strings/string_piece.h" |
| 20 #include "base/time/time.h" | 21 #include "base/time/time.h" |
| 21 #include "base/trace_event/trace_event.h" | 22 #include "base/trace_event/trace_event.h" |
| 22 #include "chrome/test/logging/win/log_file_reader.h" | 23 #include "chrome/test/logging/win/log_file_reader.h" |
| 23 | 24 |
| 24 namespace { | 25 namespace { |
| 25 | 26 |
| 26 // TODO(grt) This duplicates private behavior in base/logging.cc's | 27 // TODO(grt) This duplicates private behavior in base/logging.cc's |
| 27 // LogMessage::Init. That behavior should be exposed and used here (possibly | 28 // LogMessage::Init. That behavior should be exposed and used here (possibly |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 *out_ << message << std::endl; | 199 *out_ << message << std::endl; |
| 199 } | 200 } |
| 200 | 201 |
| 201 } // namespace | 202 } // namespace |
| 202 | 203 |
| 203 void logging_win::PrintLogFile(const base::FilePath& log_file, | 204 void logging_win::PrintLogFile(const base::FilePath& log_file, |
| 204 std::ostream* out) { | 205 std::ostream* out) { |
| 205 EventPrinter printer(out); | 206 EventPrinter printer(out); |
| 206 logging_win::ReadLogFile(log_file, &printer); | 207 logging_win::ReadLogFile(log_file, &printer); |
| 207 } | 208 } |
| OLD | NEW |