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

Unified Diff: base/profiler/win32_stack_frame_unwinder_unittest.cc

Issue 2043063002: DO NOT COMMIT - Unrelated changes made by run-clang-tidy.py (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@d_WE998_allwin
Patch Set: Created 4 years, 6 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
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);

Powered by Google App Engine
This is Rietveld 408576698