| Index: util/win/critical_section_with_debug_info.h
|
| diff --git a/test/paths_win.cc b/util/win/critical_section_with_debug_info.h
|
| similarity index 59%
|
| copy from test/paths_win.cc
|
| copy to util/win/critical_section_with_debug_info.h
|
| index 95d0264ed82ab36cf0e541315528d44585f4bbb8..aa811a792c3a1364dee9faee2821e2a0385023a6 100644
|
| --- a/test/paths_win.cc
|
| +++ b/util/win/critical_section_with_debug_info.h
|
| @@ -12,19 +12,19 @@
|
| // See the License for the specific language governing permissions and
|
| // limitations under the License.
|
|
|
| -#include "test/paths.h"
|
| +#ifndef CRASHPAD_UTIL_WIN_CRITICAL_SECTION_WITH_DEBUG_INFO_H_
|
| +#define CRASHPAD_UTIL_WIN_CRITICAL_SECTION_WITH_DEBUG_INFO_H_
|
|
|
| #include <windows.h>
|
|
|
| namespace crashpad {
|
| -namespace test {
|
|
|
| -// static
|
| -base::FilePath Paths::Executable() {
|
| - wchar_t executable_path[_MAX_PATH];
|
| - GetModuleFileName(nullptr, executable_path, sizeof(executable_path));
|
| - return base::FilePath(executable_path);
|
| -}
|
| +//! \brief Equivalent to `InitializeCritialSection()`, but attempts to allocate
|
| +//! with a valid `.DebugInfo` field on versions of Windows where it's
|
| +//! possible to do so.
|
| +bool InitializeCriticalSectionWithDebugInfoIfPossible(
|
| + CRITICAL_SECTION* critical_section);
|
|
|
| -} // namespace test
|
| } // namespace crashpad
|
| +
|
| +#endif // CRASHPAD_UTIL_WIN_CRITICAL_SECTION_WITH_DEBUG_INFO_H_
|
|
|