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 <limits.h> |
7 #include <windows.h> | 8 #include <windows.h> |
8 #include <guiddef.h> | 9 #include <guiddef.h> |
9 #include <objbase.h> | 10 #include <objbase.h> |
10 #include <stddef.h> | 11 #include <stddef.h> |
11 | 12 |
12 #include <ios> | 13 #include <ios> |
13 | 14 |
14 #include "base/files/file_path.h" | 15 #include "base/files/file_path.h" |
15 #include "base/logging.h" | 16 #include "base/logging.h" |
16 #include "base/logging_win.h" | 17 #include "base/logging_win.h" |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 | 179 |
179 hr = controller_.Flush(NULL); | 180 hr = controller_.Flush(NULL); |
180 LOG_IF(ERROR, FAILED(hr)) | 181 LOG_IF(ERROR, FAILED(hr)) |
181 << "Failed to flush events; hr=" << std::hex << hr; | 182 << "Failed to flush events; hr=" << std::hex << hr; |
182 hr = controller_.Stop(NULL); | 183 hr = controller_.Stop(NULL); |
183 LOG_IF(ERROR, FAILED(hr)) | 184 LOG_IF(ERROR, FAILED(hr)) |
184 << "Failed to stop ETW session; hr=" << std::hex << hr; | 185 << "Failed to stop ETW session; hr=" << std::hex << hr; |
185 } | 186 } |
186 | 187 |
187 } // namespace logging_win | 188 } // namespace logging_win |
OLD | NEW |