| Index: snapshot/win/cpu_context_win.h
|
| diff --git a/test/paths_win.cc b/snapshot/win/cpu_context_win.h
|
| similarity index 55%
|
| copy from test/paths_win.cc
|
| copy to snapshot/win/cpu_context_win.h
|
| index 95d0264ed82ab36cf0e541315528d44585f4bbb8..387a5f950a67846c8c7db6c8fd0e39bf433c9994 100644
|
| --- a/test/paths_win.cc
|
| +++ b/snapshot/win/cpu_context_win.h
|
| @@ -12,19 +12,24 @@
|
| // See the License for the specific language governing permissions and
|
| // limitations under the License.
|
|
|
| -#include "test/paths.h"
|
| +#ifndef CRASHPAD_SNAPSHOT_WIN_CPU_CONTEXT_WIN_H_
|
| +#define CRASHPAD_SNAPSHOT_WIN_CPU_CONTEXT_WIN_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);
|
| -}
|
| +struct CPUContextX86;
|
| +struct CPUContextX86_64;
|
| +
|
| +//! \brief Initializes a CPUContextX86 structure from native context structures
|
| +//! on Windows.
|
| +void InitializeX86Context(const CONTEXT& context, CPUContextX86* out);
|
| +
|
| +//! \brief Initializes a CPUContextX86_64 structure from native context
|
| +//! structures on Windows.
|
| +void InitializeX64Context(const CONTEXT& context, CPUContextX86_64* out);
|
|
|
| -} // namespace test
|
| } // namespace crashpad
|
| +
|
| +#endif // CRASHPAD_SNAPSHOT_WIN_CPU_CONTEXT_WIN_H_
|
|
|