| Index: base/profiler/win32_stack_frame_unwinder_unittest.cc
|
| diff --git a/base/profiler/win32_stack_frame_unwinder_unittest.cc b/base/profiler/win32_stack_frame_unwinder_unittest.cc
|
| index cecfe224eceb1f3f541e186f9cca1cf42dd0c326..0275451cabda774ff245b2a11ae75655ce51b9c3 100644
|
| --- a/base/profiler/win32_stack_frame_unwinder_unittest.cc
|
| +++ b/base/profiler/win32_stack_frame_unwinder_unittest.cc
|
| @@ -110,12 +110,12 @@ void TestUnwindFunctions::SetHasRuntimeFunction(CONTEXT* context) {
|
| runtime_functions_.push_back(runtime_function);
|
| next_runtime_function_ = &runtime_functions_.back();
|
|
|
| - expected_program_counter_ = context->Rip =
|
| + expected_program_counter_ = context->Eip =
|
| next_image_base_ + runtime_function.BeginAddress + 8;
|
| }
|
|
|
| void TestUnwindFunctions::SetNoRuntimeFunction(CONTEXT* context) {
|
| - expected_program_counter_ = context->Rip = 100;
|
| + expected_program_counter_ = context->Eip = 100;
|
| next_runtime_function_ = nullptr;
|
| }
|
|
|
| @@ -184,12 +184,12 @@ TEST_F(Win32StackFrameUnwinderTest, FrameAtTopWithoutUnwindInfo) {
|
| ScopedModuleHandle module;
|
| DWORD64 next_ip = 0x0123456789abcdef;
|
| DWORD64 original_rsp = reinterpret_cast<DWORD64>(&next_ip);
|
| - context.Rsp = original_rsp;
|
| + context.Esp = original_rsp;
|
|
|
| unwind_functions_->SetNoRuntimeFunction(&context);
|
| EXPECT_TRUE(unwinder->TryUnwind(&context, &module));
|
| - EXPECT_EQ(next_ip, context.Rip);
|
| - EXPECT_EQ(original_rsp + 8, context.Rsp);
|
| + EXPECT_EQ(next_ip, context.Eip);
|
| + EXPECT_EQ(original_rsp + 8, context.Esp);
|
| EXPECT_TRUE(module.IsValid());
|
|
|
| unwind_functions_->SetHasRuntimeFunction(&context);
|
|
|