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/file_logger.h" | 5 #include "chrome/test/logging/win/file_logger.h" |
6 | 6 |
7 #include <windows.h> | 7 #include <windows.h> |
8 #include <guiddef.h> | 8 #include <guiddef.h> |
9 #include <objbase.h> | 9 #include <objbase.h> |
10 | 10 |
11 #include <ios> | 11 #include <ios> |
12 | 12 |
13 #include "base/debug/trace_event_win.h" | |
14 #include "base/files/file_path.h" | 13 #include "base/files/file_path.h" |
15 #include "base/logging.h" | 14 #include "base/logging.h" |
16 #include "base/logging_win.h" | 15 #include "base/logging_win.h" |
17 #include "base/strings/string16.h" | 16 #include "base/strings/string16.h" |
18 #include "base/strings/utf_string_conversions.h" | 17 #include "base/strings/utf_string_conversions.h" |
| 18 #include "base/trace_event/trace_event_win.h" |
19 #include "base/win/event_trace_consumer.h" | 19 #include "base/win/event_trace_consumer.h" |
20 #include "base/win/registry.h" | 20 #include "base/win/registry.h" |
21 | 21 |
22 namespace logging_win { | 22 namespace logging_win { |
23 | 23 |
24 namespace { | 24 namespace { |
25 | 25 |
26 const wchar_t kChromeTestSession[] = L"chrome_tests"; | 26 const wchar_t kChromeTestSession[] = L"chrome_tests"; |
27 | 27 |
28 // From chrome_tab.cc: {0562BFC3-2550-45b4-BD8E-A310583D3A6F} | 28 // From chrome_tab.cc: {0562BFC3-2550-45b4-BD8E-A310583D3A6F} |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 | 178 |
179 hr = controller_.Flush(NULL); | 179 hr = controller_.Flush(NULL); |
180 LOG_IF(ERROR, FAILED(hr)) | 180 LOG_IF(ERROR, FAILED(hr)) |
181 << "Failed to flush events; hr=" << std::hex << hr; | 181 << "Failed to flush events; hr=" << std::hex << hr; |
182 hr = controller_.Stop(NULL); | 182 hr = controller_.Stop(NULL); |
183 LOG_IF(ERROR, FAILED(hr)) | 183 LOG_IF(ERROR, FAILED(hr)) |
184 << "Failed to stop ETW session; hr=" << std::hex << hr; | 184 << "Failed to stop ETW session; hr=" << std::hex << hr; |
185 } | 185 } |
186 | 186 |
187 } // namespace logging_win | 187 } // namespace logging_win |
OLD | NEW |