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

Unified Diff: third_party/WebKit/Source/core/dom/ScriptRunnerTest.cpp

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/core/dom/MockScriptElementBase.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/dom/ScriptRunnerTest.cpp
diff --git a/third_party/WebKit/Source/core/dom/ScriptRunnerTest.cpp b/third_party/WebKit/Source/core/dom/ScriptRunnerTest.cpp
index 5d48d96f5bf0228eb37b1eba9c1e823d491e3fb1..cf6caf0b3f58930004b98ce85ae58605b4a8ca77 100644
--- a/third_party/WebKit/Source/core/dom/ScriptRunnerTest.cpp
+++ b/third_party/WebKit/Source/core/dom/ScriptRunnerTest.cpp
@@ -4,8 +4,7 @@
#include "core/dom/ScriptRunner.h"
-#include "bindings/core/v8/HTMLScriptElementOrSVGScriptElement.h"
-#include "core/dom/Document.h"
+#include "core/dom/MockScriptElementBase.h"
#include "core/dom/ScriptLoader.h"
#include "platform/heap/Handle.h"
#include "platform/testing/TestingPlatformSupport.h"
@@ -22,47 +21,6 @@ using ::testing::ElementsAreArray;
namespace blink {
-class MockScriptElementBase
- : public GarbageCollectedFinalized<MockScriptElementBase>,
- public ScriptElementBase {
- USING_GARBAGE_COLLECTED_MIXIN(MockScriptElementBase);
-
- public:
- static MockScriptElementBase* Create() {
- return new testing::StrictMock<MockScriptElementBase>();
- }
-
- MOCK_METHOD0(DispatchLoadEvent, void());
- MOCK_METHOD0(DispatchErrorEvent, void());
- MOCK_CONST_METHOD0(AsyncAttributeValue, bool());
- MOCK_CONST_METHOD0(CharsetAttributeValue, String());
- MOCK_CONST_METHOD0(CrossOriginAttributeValue, String());
- MOCK_CONST_METHOD0(DeferAttributeValue, bool());
- MOCK_CONST_METHOD0(EventAttributeValue, String());
- MOCK_CONST_METHOD0(ForAttributeValue, String());
- MOCK_CONST_METHOD0(IntegrityAttributeValue, String());
- MOCK_CONST_METHOD0(LanguageAttributeValue, String());
- MOCK_CONST_METHOD0(SourceAttributeValue, String());
- MOCK_CONST_METHOD0(TypeAttributeValue, String());
-
- MOCK_METHOD0(TextFromChildren, String());
- MOCK_CONST_METHOD0(TextContent, String());
- MOCK_CONST_METHOD0(HasSourceAttribute, bool());
- MOCK_CONST_METHOD0(IsConnected, bool());
- MOCK_CONST_METHOD0(HasChildren, bool());
- MOCK_CONST_METHOD0(IsNonceableElement, bool());
- MOCK_CONST_METHOD0(InitiatorName, AtomicString());
- MOCK_METHOD3(AllowInlineScriptForCSP,
- bool(const AtomicString&,
- const WTF::OrdinalNumber&,
- const String&));
- MOCK_CONST_METHOD0(GetDocument, Document&());
- MOCK_METHOD1(SetScriptElementForBinding,
- void(HTMLScriptElementOrSVGScriptElement&));
-
- DEFINE_INLINE_VIRTUAL_TRACE() { ScriptElementBase::Trace(visitor); }
-};
-
class MockScriptLoader final : public ScriptLoader {
public:
static MockScriptLoader* Create() { return new MockScriptLoader(); }
« no previous file with comments | « third_party/WebKit/Source/core/dom/MockScriptElementBase.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698