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_ |
Mark Mentovai
2015/08/18 16:17:19
Can you do your next upload with --no-find-copies?
scottmg
2015/08/18 16:56:00
Will do.
|
+#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 |
Mark Mentovai
2015/08/18 16:17:19
Singular “a native context structure” or “a native
scottmg
2015/08/18 16:56:00
Done.
|
+//! on Windows. |
+void InitializeX86Context(const CONTEXT& context, CPUContextX86* out); |
Mark Mentovai
2015/08/18 16:17:19
Because CONTEXT is one structure that’s CPU-specif
scottmg
2015/08/18 16:56:00
Yes, you're right. I'm not sure what's the best so
|
+ |
+//! \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_ |