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

Side by Side Diff: chrome/test/logging/win/log_file_printer.cc

Issue 637933002: Replace FINAL and OVERRIDE with their C++11 counterparts in chrome/test (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 unified diff | Download patch
OLDNEW
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 <iomanip> 10 #include <iomanip>
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 return ""; 82 return "";
83 break; 83 break;
84 } 84 }
85 } 85 }
86 86
87 class EventPrinter : public logging_win::LogFileDelegate { 87 class EventPrinter : public logging_win::LogFileDelegate {
88 public: 88 public:
89 explicit EventPrinter(std::ostream* out); 89 explicit EventPrinter(std::ostream* out);
90 virtual ~EventPrinter(); 90 virtual ~EventPrinter();
91 91
92 virtual void OnUnknownEvent(const EVENT_TRACE* event) OVERRIDE; 92 virtual void OnUnknownEvent(const EVENT_TRACE* event) override;
93 93
94 virtual void OnUnparsableEvent(const EVENT_TRACE* event) OVERRIDE; 94 virtual void OnUnparsableEvent(const EVENT_TRACE* event) override;
95 95
96 virtual void OnFileHeader(const EVENT_TRACE* event, 96 virtual void OnFileHeader(const EVENT_TRACE* event,
97 const TRACE_LOGFILE_HEADER* header) OVERRIDE; 97 const TRACE_LOGFILE_HEADER* header) override;
98 98
99 virtual void OnLogMessage(const EVENT_TRACE* event, 99 virtual void OnLogMessage(const EVENT_TRACE* event,
100 logging::LogSeverity severity, 100 logging::LogSeverity severity,
101 const base::StringPiece& message) OVERRIDE; 101 const base::StringPiece& message) override;
102 102
103 virtual void OnLogMessageFull(const EVENT_TRACE* event, 103 virtual void OnLogMessageFull(const EVENT_TRACE* event,
104 logging::LogSeverity severity, 104 logging::LogSeverity severity,
105 DWORD stack_depth, 105 DWORD stack_depth,
106 const intptr_t* backtrace, 106 const intptr_t* backtrace,
107 int line, 107 int line,
108 const base::StringPiece& file, 108 const base::StringPiece& file,
109 const base::StringPiece& message) OVERRIDE; 109 const base::StringPiece& message) override;
110 110
111 virtual void OnTraceEvent(const EVENT_TRACE* event, 111 virtual void OnTraceEvent(const EVENT_TRACE* event,
112 const base::StringPiece& name, 112 const base::StringPiece& name,
113 char type, 113 char type,
114 intptr_t id, 114 intptr_t id,
115 const base::StringPiece& extra, 115 const base::StringPiece& extra,
116 DWORD stack_depth, 116 DWORD stack_depth,
117 const intptr_t* backtrace) OVERRIDE; 117 const intptr_t* backtrace) override;
118 118
119 private: 119 private:
120 void PrintTimeStamp(LARGE_INTEGER time_stamp); 120 void PrintTimeStamp(LARGE_INTEGER time_stamp);
121 void PrintEventContext(const EVENT_TRACE* event, 121 void PrintEventContext(const EVENT_TRACE* event,
122 const base::StringPiece& level, 122 const base::StringPiece& level,
123 const base::StringPiece& context); 123 const base::StringPiece& context);
124 void PrintBadEvent(const EVENT_TRACE* event, const base::StringPiece& error); 124 void PrintBadEvent(const EVENT_TRACE* event, const base::StringPiece& error);
125 125
126 std::ostream* out_; 126 std::ostream* out_;
127 DISALLOW_COPY_AND_ASSIGN(EventPrinter); 127 DISALLOW_COPY_AND_ASSIGN(EventPrinter);
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 << std::endl; 237 << std::endl;
238 } 238 }
239 239
240 } // namespace 240 } // namespace
241 241
242 void logging_win::PrintLogFile(const base::FilePath& log_file, 242 void logging_win::PrintLogFile(const base::FilePath& log_file,
243 std::ostream* out) { 243 std::ostream* out) {
244 EventPrinter printer(out); 244 EventPrinter printer(out);
245 logging_win::ReadLogFile(log_file, &printer); 245 logging_win::ReadLogFile(log_file, &printer);
246 } 246 }
OLDNEW
« no previous file with comments | « chrome/test/gpu/webgl_infobar_browsertest.cc ('k') | chrome/test/logging/win/test_log_collector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698