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

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

Issue 2821243003: Move MockScriptElementBase to a separate header file (Closed)
Patch Set: 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "bindings/core/v8/HTMLScriptElementOrSVGScriptElement.h"
6 #include "core/dom/Document.h"
7 #include "core/dom/ScriptElementBase.h"
8 #include "testing/gmock/include/gmock/gmock.h"
9
10 namespace blink {
11
12 class MockScriptElementBase
13 : public GarbageCollectedFinalized<MockScriptElementBase>,
14 public ScriptElementBase {
15 USING_GARBAGE_COLLECTED_MIXIN(MockScriptElementBase);
16
17 public:
18 static MockScriptElementBase* Create() {
19 return new testing::StrictMock<MockScriptElementBase>();
20 }
21
22 MOCK_METHOD0(DispatchLoadEvent, void());
23 MOCK_METHOD0(DispatchErrorEvent, void());
24 MOCK_CONST_METHOD0(AsyncAttributeValue, bool());
25 MOCK_CONST_METHOD0(CharsetAttributeValue, String());
26 MOCK_CONST_METHOD0(CrossOriginAttributeValue, String());
27 MOCK_CONST_METHOD0(DeferAttributeValue, bool());
28 MOCK_CONST_METHOD0(EventAttributeValue, String());
29 MOCK_CONST_METHOD0(ForAttributeValue, String());
30 MOCK_CONST_METHOD0(IntegrityAttributeValue, String());
31 MOCK_CONST_METHOD0(LanguageAttributeValue, String());
32 MOCK_CONST_METHOD0(SourceAttributeValue, String());
33 MOCK_CONST_METHOD0(TypeAttributeValue, String());
34
35 MOCK_METHOD0(TextFromChildren, String());
36 MOCK_CONST_METHOD0(TextContent, String());
37 MOCK_CONST_METHOD0(HasSourceAttribute, bool());
38 MOCK_CONST_METHOD0(IsConnected, bool());
39 MOCK_CONST_METHOD0(HasChildren, bool());
40 MOCK_CONST_METHOD0(IsNonceableElement, bool());
41 MOCK_CONST_METHOD0(InitiatorName, AtomicString());
42 MOCK_METHOD3(AllowInlineScriptForCSP,
43 bool(const AtomicString&,
44 const WTF::OrdinalNumber&,
45 const String&));
46 MOCK_CONST_METHOD0(GetDocument, Document&());
47 MOCK_METHOD1(SetScriptElementForBinding,
48 void(HTMLScriptElementOrSVGScriptElement&));
49
50 DEFINE_INLINE_VIRTUAL_TRACE() { ScriptElementBase::Trace(visitor); }
51 };
52
53 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/BUILD.gn ('k') | third_party/WebKit/Source/core/dom/ScriptRunnerTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698