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

Unified Diff: util/test/errors.h

Issue 1001673002: Add Locking calls to file_io.h plus implementations and test (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: release load Created 5 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
« no previous file with comments | « util/file/file_io_win.cc ('k') | util/test/errors.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: util/test/errors.h
diff --git a/util/test/errors.h b/util/test/errors.h
index 366acf1fe01e1f0e114e5cad0f43fdbb3deb1cc4..c1d79bf92e682ff34eaf44463c8aa49c19f3b021 100644
--- a/util/test/errors.h
+++ b/util/test/errors.h
@@ -17,6 +17,8 @@
#include <string>
+#include "build/build_config.h"
+
namespace crashpad {
namespace test {
@@ -65,6 +67,15 @@ std::string ErrnoMessage(int err, const std::string& base = std::string());
//! a colon.
std::string ErrnoMessage(const std::string& base = std::string());
+#if defined(OS_WIN) || DOXYGEN
+//! \brief Formats an error message using `GetLastError()`.
+//!
+//! The returned string will combine the \a base string, if supplied, with a
+//! a textual and numeric description of the error. The format is the same as
+//! the `PLOG()` formatting in base.
+std::string ErrorMessage(const std::string& base = std::string());
+#endif
+
} // namespace test
} // namespace crashpad
« no previous file with comments | « util/file/file_io_win.cc ('k') | util/test/errors.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698