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

Unified Diff: chrome/test/base/log_file_printer_win.h

Issue 9584017: New test infrastructure for producing verbose logs in failing tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tweaked comments Created 8 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: chrome/test/base/log_file_printer_win.h
diff --git a/chrome/test/base/log_file_printer_win.h b/chrome/test/base/log_file_printer_win.h
new file mode 100644
index 0000000000000000000000000000000000000000..0795a65b79b1457ccf775502598f1da39dac0918
--- /dev/null
+++ b/chrome/test/base/log_file_printer_win.h
@@ -0,0 +1,26 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// Prints log files produced by Event Tracing for Windows (by way of the
+// FileLogger class) that contain events generated from a select few supported
+// providers; see file_logger_win.h for the list.
+
+#ifndef CHROME_TEST_BASE_LOG_FILE_PRINTER_WIN_H_
+#define CHROME_TEST_BASE_LOG_FILE_PRINTER_WIN_H_
+#pragma once
+
+#include <iosfwd>
+
+class FilePath;
+
+namespace logging_win {
+
+// Reads |log_file|, emitting messages to |out|. Although it is safe to call
+// this from multiple threads, only one file may be read at a time; other
+// threads trying to read other log files will be blocked waiting.
+void PrintLogFile(const FilePath& log_file, std::ostream* out);
+
+} // namespace logging_win
+
+#endif // CHROME_TEST_BASE_LOG_FILE_PRINTER_WIN_H_

Powered by Google App Engine
This is Rietveld 408576698