| OLD | NEW |
| 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 "bindings/core/v8/HTMLScriptElementOrSVGScriptElement.h" | 7 #include "bindings/core/v8/HTMLScriptElementOrSVGScriptElement.h" |
| 8 #include "core/dom/Document.h" | 8 #include "core/dom/Document.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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 MOCK_CONST_METHOD0(IntegrityAttributeValue, String()); | 43 MOCK_CONST_METHOD0(IntegrityAttributeValue, String()); |
| 44 MOCK_CONST_METHOD0(LanguageAttributeValue, String()); | 44 MOCK_CONST_METHOD0(LanguageAttributeValue, String()); |
| 45 MOCK_CONST_METHOD0(SourceAttributeValue, String()); | 45 MOCK_CONST_METHOD0(SourceAttributeValue, String()); |
| 46 MOCK_CONST_METHOD0(TypeAttributeValue, String()); | 46 MOCK_CONST_METHOD0(TypeAttributeValue, String()); |
| 47 | 47 |
| 48 MOCK_METHOD0(TextFromChildren, String()); | 48 MOCK_METHOD0(TextFromChildren, String()); |
| 49 MOCK_CONST_METHOD0(TextContent, String()); | 49 MOCK_CONST_METHOD0(TextContent, String()); |
| 50 MOCK_CONST_METHOD0(HasSourceAttribute, bool()); | 50 MOCK_CONST_METHOD0(HasSourceAttribute, bool()); |
| 51 MOCK_CONST_METHOD0(IsConnected, bool()); | 51 MOCK_CONST_METHOD0(IsConnected, bool()); |
| 52 MOCK_CONST_METHOD0(HasChildren, bool()); | 52 MOCK_CONST_METHOD0(HasChildren, bool()); |
| 53 MOCK_CONST_METHOD0(IsNonceableElement, bool()); | 53 MOCK_CONST_METHOD0(GetNonceForElement, const AtomicString&()); |
| 54 MOCK_CONST_METHOD0(InitiatorName, AtomicString()); | 54 MOCK_CONST_METHOD0(InitiatorName, AtomicString()); |
| 55 MOCK_METHOD3(AllowInlineScriptForCSP, | 55 MOCK_METHOD3(AllowInlineScriptForCSP, |
| 56 bool(const AtomicString&, | 56 bool(const AtomicString&, |
| 57 const WTF::OrdinalNumber&, | 57 const WTF::OrdinalNumber&, |
| 58 const String&)); | 58 const String&)); |
| 59 MOCK_CONST_METHOD0(GetDocument, Document&()); | 59 MOCK_CONST_METHOD0(GetDocument, Document&()); |
| 60 MOCK_METHOD1(SetScriptElementForBinding, | 60 MOCK_METHOD1(SetScriptElementForBinding, |
| 61 void(HTMLScriptElementOrSVGScriptElement&)); | 61 void(HTMLScriptElementOrSVGScriptElement&)); |
| 62 | 62 |
| 63 DEFINE_INLINE_VIRTUAL_TRACE() { ScriptElementBase::Trace(visitor); } | 63 DEFINE_INLINE_VIRTUAL_TRACE() { ScriptElementBase::Trace(visitor); } |
| (...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 464 | 464 |
| 465 // m_scriptRunner is gone. We need to make sure that ScriptRunner::Task do not | 465 // m_scriptRunner is gone. We need to make sure that ScriptRunner::Task do not |
| 466 // access dead object. | 466 // access dead object. |
| 467 EXPECT_CALL(*script_loader1, Execute()).Times(0); | 467 EXPECT_CALL(*script_loader1, Execute()).Times(0); |
| 468 EXPECT_CALL(*script_loader2, Execute()).Times(0); | 468 EXPECT_CALL(*script_loader2, Execute()).Times(0); |
| 469 | 469 |
| 470 platform_->RunUntilIdle(); | 470 platform_->RunUntilIdle(); |
| 471 } | 471 } |
| 472 | 472 |
| 473 } // namespace blink | 473 } // namespace blink |
| OLD | NEW |