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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/ScriptPromiseResolverTest.cpp

Issue 1402103004: Oilpan: Factor out GC-related enum definitions to BlinkGC.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/bindings/core/v8/V8GCController.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/bindings/core/v8/ScriptPromiseResolverTest.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/ScriptPromiseResolverTest.cpp b/third_party/WebKit/Source/bindings/core/v8/ScriptPromiseResolverTest.cpp
index 44cbc1563d31c40d64f101eacbca7f249634aa9e..c49e1a39167fe9275c1fce620d132c683e50698a 100644
--- a/third_party/WebKit/Source/bindings/core/v8/ScriptPromiseResolverTest.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/ScriptPromiseResolverTest.cpp
@@ -241,11 +241,11 @@ TEST_F(ScriptPromiseResolverTest, keepAliveUntilResolved)
resolver = ScriptPromiseResolverKeepAlive::create(scriptState());
}
resolver->keepAliveWhilePending();
- Heap::collectGarbage(ThreadState::NoHeapPointersOnStack, ThreadState::GCWithSweep, Heap::ForcedGC);
+ Heap::collectGarbage(BlinkGC::NoHeapPointersOnStack, BlinkGC::GCWithSweep, Heap::ForcedGC);
ASSERT_TRUE(ScriptPromiseResolverKeepAlive::isAlive());
resolver->resolve("hello");
- Heap::collectGarbage(ThreadState::NoHeapPointersOnStack, ThreadState::GCWithSweep, Heap::ForcedGC);
+ Heap::collectGarbage(BlinkGC::NoHeapPointersOnStack, BlinkGC::GCWithSweep, Heap::ForcedGC);
EXPECT_FALSE(ScriptPromiseResolverKeepAlive::isAlive());
}
@@ -258,11 +258,11 @@ TEST_F(ScriptPromiseResolverTest, keepAliveUntilRejected)
resolver = ScriptPromiseResolverKeepAlive::create(scriptState());
}
resolver->keepAliveWhilePending();
- Heap::collectGarbage(ThreadState::NoHeapPointersOnStack, ThreadState::GCWithSweep, Heap::ForcedGC);
+ Heap::collectGarbage(BlinkGC::NoHeapPointersOnStack, BlinkGC::GCWithSweep, Heap::ForcedGC);
ASSERT_TRUE(ScriptPromiseResolverKeepAlive::isAlive());
resolver->reject("hello");
- Heap::collectGarbage(ThreadState::NoHeapPointersOnStack, ThreadState::GCWithSweep, Heap::ForcedGC);
+ Heap::collectGarbage(BlinkGC::NoHeapPointersOnStack, BlinkGC::GCWithSweep, Heap::ForcedGC);
EXPECT_FALSE(ScriptPromiseResolverKeepAlive::isAlive());
}
@@ -275,11 +275,11 @@ TEST_F(ScriptPromiseResolverTest, keepAliveUntilStopped)
resolver = ScriptPromiseResolverKeepAlive::create(scriptState());
}
resolver->keepAliveWhilePending();
- Heap::collectGarbage(ThreadState::NoHeapPointersOnStack, ThreadState::GCWithSweep, Heap::ForcedGC);
+ Heap::collectGarbage(BlinkGC::NoHeapPointersOnStack, BlinkGC::GCWithSweep, Heap::ForcedGC);
EXPECT_TRUE(ScriptPromiseResolverKeepAlive::isAlive());
executionContext()->stopActiveDOMObjects();
- Heap::collectGarbage(ThreadState::NoHeapPointersOnStack, ThreadState::GCWithSweep, Heap::ForcedGC);
+ Heap::collectGarbage(BlinkGC::NoHeapPointersOnStack, BlinkGC::GCWithSweep, Heap::ForcedGC);
EXPECT_FALSE(ScriptPromiseResolverKeepAlive::isAlive());
}
@@ -292,16 +292,16 @@ TEST_F(ScriptPromiseResolverTest, suspend)
resolver = ScriptPromiseResolverKeepAlive::create(scriptState());
}
resolver->keepAliveWhilePending();
- Heap::collectGarbage(ThreadState::NoHeapPointersOnStack, ThreadState::GCWithSweep, Heap::ForcedGC);
+ Heap::collectGarbage(BlinkGC::NoHeapPointersOnStack, BlinkGC::GCWithSweep, Heap::ForcedGC);
ASSERT_TRUE(ScriptPromiseResolverKeepAlive::isAlive());
executionContext()->suspendActiveDOMObjects();
resolver->resolve("hello");
- Heap::collectGarbage(ThreadState::NoHeapPointersOnStack, ThreadState::GCWithSweep, Heap::ForcedGC);
+ Heap::collectGarbage(BlinkGC::NoHeapPointersOnStack, BlinkGC::GCWithSweep, Heap::ForcedGC);
EXPECT_TRUE(ScriptPromiseResolverKeepAlive::isAlive());
executionContext()->stopActiveDOMObjects();
- Heap::collectGarbage(ThreadState::NoHeapPointersOnStack, ThreadState::GCWithSweep, Heap::ForcedGC);
+ Heap::collectGarbage(BlinkGC::NoHeapPointersOnStack, BlinkGC::GCWithSweep, Heap::ForcedGC);
EXPECT_FALSE(ScriptPromiseResolverKeepAlive::isAlive());
}
« no previous file with comments | « no previous file | third_party/WebKit/Source/bindings/core/v8/V8GCController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698