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

Side by Side Diff: third_party/WebKit/Source/core/dom/ScriptRunnerTest.cpp

Issue 1887573002: Remove ENABLE(OILPAN) from ScriptRunner and PendingScript. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Source/core/dom/ScriptRunner.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "core/dom/ScriptRunner.h" 5 #include "core/dom/ScriptRunner.h"
6 6
7 #include "core/dom/Document.h" 7 #include "core/dom/Document.h"
8 #include "core/dom/Element.h" 8 #include "core/dom/Element.h"
9 #include "core/dom/ScriptLoader.h" 9 #include "core/dom/ScriptLoader.h"
10 #include "platform/heap/Handle.h" 10 #include "platform/heap/Handle.h"
(...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after
430 EXPECT_CALL(*scriptLoader2, isReady()).WillRepeatedly(Return(true)); 430 EXPECT_CALL(*scriptLoader2, isReady()).WillRepeatedly(Return(true));
431 431
432 m_scriptRunner->queueScriptForExecution(scriptLoader1, ScriptRunner::ASYNC_E XECUTION); 432 m_scriptRunner->queueScriptForExecution(scriptLoader1, ScriptRunner::ASYNC_E XECUTION);
433 m_scriptRunner->queueScriptForExecution(scriptLoader2, ScriptRunner::ASYNC_E XECUTION); 433 m_scriptRunner->queueScriptForExecution(scriptLoader2, ScriptRunner::ASYNC_E XECUTION);
434 434
435 m_scriptRunner->notifyScriptReady(scriptLoader1, ScriptRunner::ASYNC_EXECUTI ON); 435 m_scriptRunner->notifyScriptReady(scriptLoader1, ScriptRunner::ASYNC_EXECUTI ON);
436 m_scriptRunner->notifyScriptReady(scriptLoader2, ScriptRunner::ASYNC_EXECUTI ON); 436 m_scriptRunner->notifyScriptReady(scriptLoader2, ScriptRunner::ASYNC_EXECUTI ON);
437 437
438 m_scriptRunner.release(); 438 m_scriptRunner.release();
439 439
440 #if ENABLE(OILPAN)
441 Heap::collectAllGarbage(); 440 Heap::collectAllGarbage();
442 #endif
443 441
444 // m_scriptRunner is gone. We need to make sure that ScriptRunner::Task do n ot access dead object. 442 // m_scriptRunner is gone. We need to make sure that ScriptRunner::Task do n ot access dead object.
445 EXPECT_CALL(*scriptLoader1, execute()).Times(0); 443 EXPECT_CALL(*scriptLoader1, execute()).Times(0);
446 EXPECT_CALL(*scriptLoader2, execute()).Times(0); 444 EXPECT_CALL(*scriptLoader2, execute()).Times(0);
447 445
448 m_platform.mockWebScheduler()->runAllTasks(); 446 m_platform.mockWebScheduler()->runAllTasks();
449 } 447 }
450 448
451 } // namespace blink 449 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/ScriptRunner.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698