Index: base/profiler/stack_sampling_profiler_unittest.cc |
diff --git a/base/profiler/stack_sampling_profiler_unittest.cc b/base/profiler/stack_sampling_profiler_unittest.cc |
index a169c9d064d335a5e937ff5ef9e8eb69280616bf..2ba769f8b5020aade8f1aa8701a8c881a4a3386a 100644 |
--- a/base/profiler/stack_sampling_profiler_unittest.cc |
+++ b/base/profiler/stack_sampling_profiler_unittest.cc |
@@ -515,15 +515,14 @@ void TestLibraryUnload(bool wait_until_unloaded) { |
<< FormatSampleForDiagnosticOutput(sample, profile.modules); |
if (wait_until_unloaded) { |
- // The stack should look like this, resulting in two frames between |
- // SignalAndWaitUntilSignaled and the last frame, which should be the one in |
- // the now-unloaded library: |
+ // The stack should look like this, resulting one frame after |
+ // SignalAndWaitUntilSignaled. The frame in the now-unloaded library is not |
+ // recorded since we can't get module information. |
// |
// ... WaitableEvent and system frames ... |
// TargetThread::SignalAndWaitUntilSignaled |
// TargetThread::OtherLibraryCallback |
- // InvokeCallbackFunction (in other library, now unloaded) |
- EXPECT_EQ(2, (sample.end() - 1) - end_frame) |
+ EXPECT_EQ(2, sample.end() - end_frame) |
<< "Stack:\n" |
<< FormatSampleForDiagnosticOutput(sample, profile.modules); |
} else { |