Commit 930654e5 authored by Michael Lippautz's avatar Michael Lippautz Committed by Commit Bot

cppgc: Fetch test name for ForceGarbageCollectionSlow in tests

Bug: chromium:1056170
Change-Id: Ie625d34dca248cbb5980b73363c382a259538bcc
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2452469
Commit-Queue: Michael Lippautz <mlippautz@chromium.org>
Commit-Queue: Omer Katz <omerkatz@chromium.org>
Auto-Submit: Michael Lippautz <mlippautz@chromium.org>
Reviewed-by: 's avatarOmer Katz <omerkatz@chromium.org>
Cr-Commit-Position: refs/heads/master@{#70337}
parent cc549857
......@@ -37,8 +37,9 @@ class TestWithHeapWithCustomSpaces : public testing::TestWithPlatform {
}
void PreciseGC() {
heap_->ForceGarbageCollectionSlow("TestWithHeapWithCustomSpaces", "Testing",
cppgc::Heap::StackState::kNoHeapPointers);
heap_->ForceGarbageCollectionSlow(
::testing::UnitTest::GetInstance()->current_test_info()->name(),
"Testing", cppgc::Heap::StackState::kNoHeapPointers);
}
cppgc::Heap* GetHeap() const { return heap_.get(); }
......
......@@ -33,8 +33,9 @@ class TestWithHeap : public TestWithPlatform {
TestWithHeap();
void PreciseGC() {
heap_->ForceGarbageCollectionSlow("TestWithHeap", "Testing",
cppgc::Heap::StackState::kNoHeapPointers);
heap_->ForceGarbageCollectionSlow(
::testing::UnitTest::GetInstance()->current_test_info()->name(),
"Testing", cppgc::Heap::StackState::kNoHeapPointers);
}
cppgc::Heap* GetHeap() const { return heap_.get(); }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment