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

Unified Diff: third_party/WebKit/Source/core/dom/SuspendableObjectTest.cpp

Issue 2629593004: Disambiguate LifecycleObserver::contextDestroyed (Closed)
Patch Set: temp Created 3 years, 11 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: third_party/WebKit/Source/core/dom/SuspendableObjectTest.cpp
diff --git a/third_party/WebKit/Source/core/dom/SuspendableObjectTest.cpp b/third_party/WebKit/Source/core/dom/SuspendableObjectTest.cpp
index 5f975e236c10f1ebc3c4d3535c83483d2e3e7a2b..29d5ea70490e1e1988c47f757fc968d8fce77d6f 100644
--- a/third_party/WebKit/Source/core/dom/SuspendableObjectTest.cpp
+++ b/third_party/WebKit/Source/core/dom/SuspendableObjectTest.cpp
@@ -51,7 +51,7 @@ class MockSuspendableObject final
MOCK_METHOD0(suspend, void());
MOCK_METHOD0(resume, void());
- MOCK_METHOD0(contextDestroyed, void());
+ MOCK_METHOD1(contextDestroyed, void(ExecutionContext*));
};
class SuspendableObjectTest : public ::testing::Test {
@@ -102,7 +102,7 @@ TEST_F(SuspendableObjectTest, MoveToSuspendedDocument) {
TEST_F(SuspendableObjectTest, MoveToStoppedDocument) {
destDocument().shutdown();
- EXPECT_CALL(suspendableObject(), contextDestroyed());
+ EXPECT_CALL(suspendableObject(), contextDestroyed(&destDocument()));
suspendableObject().didMoveToNewExecutionContext(&destDocument());
}

Powered by Google App Engine
This is Rietveld 408576698