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

Side by Side Diff: third_party/WebKit/Source/core/dom/MockScriptElementBase.h

Issue 2824583002: Implement <script nomodule> (Closed)
Patch Set: Move script_type declaration Created 3 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
OLDNEW
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 11 matching lines...) Expand all
22 MOCK_METHOD0(DispatchLoadEvent, void()); 22 MOCK_METHOD0(DispatchLoadEvent, void());
23 MOCK_METHOD0(DispatchErrorEvent, void()); 23 MOCK_METHOD0(DispatchErrorEvent, void());
24 MOCK_CONST_METHOD0(AsyncAttributeValue, bool()); 24 MOCK_CONST_METHOD0(AsyncAttributeValue, bool());
25 MOCK_CONST_METHOD0(CharsetAttributeValue, String()); 25 MOCK_CONST_METHOD0(CharsetAttributeValue, String());
26 MOCK_CONST_METHOD0(CrossOriginAttributeValue, String()); 26 MOCK_CONST_METHOD0(CrossOriginAttributeValue, String());
27 MOCK_CONST_METHOD0(DeferAttributeValue, bool()); 27 MOCK_CONST_METHOD0(DeferAttributeValue, bool());
28 MOCK_CONST_METHOD0(EventAttributeValue, String()); 28 MOCK_CONST_METHOD0(EventAttributeValue, String());
29 MOCK_CONST_METHOD0(ForAttributeValue, String()); 29 MOCK_CONST_METHOD0(ForAttributeValue, String());
30 MOCK_CONST_METHOD0(IntegrityAttributeValue, String()); 30 MOCK_CONST_METHOD0(IntegrityAttributeValue, String());
31 MOCK_CONST_METHOD0(LanguageAttributeValue, String()); 31 MOCK_CONST_METHOD0(LanguageAttributeValue, String());
32 MOCK_CONST_METHOD0(NomoduleAttributeValue, bool());
32 MOCK_CONST_METHOD0(SourceAttributeValue, String()); 33 MOCK_CONST_METHOD0(SourceAttributeValue, String());
33 MOCK_CONST_METHOD0(TypeAttributeValue, String()); 34 MOCK_CONST_METHOD0(TypeAttributeValue, String());
34 35
35 MOCK_METHOD0(TextFromChildren, String()); 36 MOCK_METHOD0(TextFromChildren, String());
36 MOCK_CONST_METHOD0(TextContent, String()); 37 MOCK_CONST_METHOD0(TextContent, String());
37 MOCK_CONST_METHOD0(HasSourceAttribute, bool()); 38 MOCK_CONST_METHOD0(HasSourceAttribute, bool());
38 MOCK_CONST_METHOD0(IsConnected, bool()); 39 MOCK_CONST_METHOD0(IsConnected, bool());
39 MOCK_CONST_METHOD0(HasChildren, bool()); 40 MOCK_CONST_METHOD0(HasChildren, bool());
40 MOCK_CONST_METHOD0(IsNonceableElement, bool()); 41 MOCK_CONST_METHOD0(IsNonceableElement, bool());
41 MOCK_CONST_METHOD0(InitiatorName, AtomicString()); 42 MOCK_CONST_METHOD0(InitiatorName, AtomicString());
42 MOCK_METHOD3(AllowInlineScriptForCSP, 43 MOCK_METHOD3(AllowInlineScriptForCSP,
43 bool(const AtomicString&, 44 bool(const AtomicString&,
44 const WTF::OrdinalNumber&, 45 const WTF::OrdinalNumber&,
45 const String&)); 46 const String&));
46 MOCK_CONST_METHOD0(GetDocument, Document&()); 47 MOCK_CONST_METHOD0(GetDocument, Document&());
47 MOCK_METHOD1(SetScriptElementForBinding, 48 MOCK_METHOD1(SetScriptElementForBinding,
48 void(HTMLScriptElementOrSVGScriptElement&)); 49 void(HTMLScriptElementOrSVGScriptElement&));
49 50
50 DEFINE_INLINE_VIRTUAL_TRACE() { ScriptElementBase::Trace(visitor); } 51 DEFINE_INLINE_VIRTUAL_TRACE() { ScriptElementBase::Trace(visitor); }
51 }; 52 };
52 53
53 } // namespace blink 54 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698