OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 "bindings/core/v8/HTMLScriptElementOrSVGScriptElement.h" | 5 #include "bindings/core/v8/HTMLScriptElementOrSVGScriptElement.h" |
6 #include "core/dom/Document.h" | 6 #include "core/dom/Document.h" |
7 #include "core/dom/ScriptElementBase.h" | 7 #include "core/dom/ScriptElementBase.h" |
8 #include "testing/gmock/include/gmock/gmock.h" | 8 #include "testing/gmock/include/gmock/gmock.h" |
9 | 9 |
10 namespace blink { | 10 namespace blink { |
(...skipping 20 matching lines...) Expand all Loading... |
31 MOCK_CONST_METHOD0(LanguageAttributeValue, String()); | 31 MOCK_CONST_METHOD0(LanguageAttributeValue, String()); |
32 MOCK_CONST_METHOD0(NomoduleAttributeValue, bool()); | 32 MOCK_CONST_METHOD0(NomoduleAttributeValue, bool()); |
33 MOCK_CONST_METHOD0(SourceAttributeValue, String()); | 33 MOCK_CONST_METHOD0(SourceAttributeValue, String()); |
34 MOCK_CONST_METHOD0(TypeAttributeValue, String()); | 34 MOCK_CONST_METHOD0(TypeAttributeValue, String()); |
35 | 35 |
36 MOCK_METHOD0(TextFromChildren, String()); | 36 MOCK_METHOD0(TextFromChildren, String()); |
37 MOCK_CONST_METHOD0(TextContent, String()); | 37 MOCK_CONST_METHOD0(TextContent, String()); |
38 MOCK_CONST_METHOD0(HasSourceAttribute, bool()); | 38 MOCK_CONST_METHOD0(HasSourceAttribute, bool()); |
39 MOCK_CONST_METHOD0(IsConnected, bool()); | 39 MOCK_CONST_METHOD0(IsConnected, bool()); |
40 MOCK_CONST_METHOD0(HasChildren, bool()); | 40 MOCK_CONST_METHOD0(HasChildren, bool()); |
41 MOCK_CONST_METHOD0(IsNonceableElement, bool()); | 41 MOCK_CONST_METHOD0(GetNonceForElement, const AtomicString&()); |
42 MOCK_CONST_METHOD0(InitiatorName, AtomicString()); | 42 MOCK_CONST_METHOD0(InitiatorName, AtomicString()); |
43 MOCK_METHOD3(AllowInlineScriptForCSP, | 43 MOCK_METHOD3(AllowInlineScriptForCSP, |
44 bool(const AtomicString&, | 44 bool(const AtomicString&, |
45 const WTF::OrdinalNumber&, | 45 const WTF::OrdinalNumber&, |
46 const String&)); | 46 const String&)); |
47 MOCK_CONST_METHOD0(GetDocument, Document&()); | 47 MOCK_CONST_METHOD0(GetDocument, Document&()); |
48 MOCK_METHOD1(SetScriptElementForBinding, | 48 MOCK_METHOD1(SetScriptElementForBinding, |
49 void(HTMLScriptElementOrSVGScriptElement&)); | 49 void(HTMLScriptElementOrSVGScriptElement&)); |
50 | 50 |
51 DEFINE_INLINE_VIRTUAL_TRACE() { ScriptElementBase::Trace(visitor); } | 51 DEFINE_INLINE_VIRTUAL_TRACE() { ScriptElementBase::Trace(visitor); } |
52 }; | 52 }; |
53 | 53 |
54 } // namespace blink | 54 } // namespace blink |
OLD | NEW |