| 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 | 9 |
| 10 #include <ios> | 10 #include <ios> |
| (...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 235 const base::StringPiece& extra, | 235 const base::StringPiece& extra, |
| 236 DWORD stack_depth, | 236 DWORD stack_depth, |
| 237 const intptr_t* backtrace) { | 237 const intptr_t* backtrace) { |
| 238 PrintEventContext(event, GetTraceTypeString(type), base::StringPiece()); | 238 PrintEventContext(event, GetTraceTypeString(type), base::StringPiece()); |
| 239 *out_ << name << " (id=0x" << std::hex << id << std::dec << ") " << extra | 239 *out_ << name << " (id=0x" << std::hex << id << std::dec << ") " << extra |
| 240 << std::endl; | 240 << std::endl; |
| 241 } | 241 } |
| 242 | 242 |
| 243 } // namespace | 243 } // namespace |
| 244 | 244 |
| 245 void logging_win::PrintLogFile(const FilePath& log_file, | 245 void logging_win::PrintLogFile(const base::FilePath& log_file, |
| 246 std::ostream* out) { | 246 std::ostream* out) { |
| 247 EventPrinter printer(out); | 247 EventPrinter printer(out); |
| 248 logging_win::ReadLogFile(log_file, &printer); | 248 logging_win::ReadLogFile(log_file, &printer); |
| 249 } | 249 } |
| OLD | NEW |