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

Unified Diff: Source/core/testing/Internals.cpp

Issue 112023010: Make EventHandler::ActiveIntervalTimer mockable. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Naming change Created 6 years, 11 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 | « Source/core/testing/Internals.h ('k') | Source/core/testing/Internals.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/testing/Internals.cpp
diff --git a/Source/core/testing/Internals.cpp b/Source/core/testing/Internals.cpp
index 09f35e51cbcb35b1e3568753d9fae31b5a0fa531..fd2081edeb32c77aba67a61f4d17a8605263b5df 100644
--- a/Source/core/testing/Internals.cpp
+++ b/Source/core/testing/Internals.cpp
@@ -1263,6 +1263,21 @@ PassRefPtr<ClientRect> Internals::bestZoomableAreaForTouchPoint(long x, long y,
return 0;
}
+void Internals::setActiveIntervalTimerInManualMode(Document* document, bool manualMode, ExceptionState& exceptionState)
+{
+ if (!document || !document->frame())
+ exceptionState.throwUninformativeAndGenericDOMException(InvalidAccessError);
+
+ document->frame()->eventHandler().activeIntervalTimerForTesting()->setManualModeForTesting(manualMode);
+}
+
+void Internals::fireActiveIntervalTimer(Document* document, ExceptionState& exceptionState)
+{
+ if (!document || !document->frame())
+ exceptionState.throwUninformativeAndGenericDOMException(InvalidAccessError);
+
+ document->frame()->eventHandler().activeIntervalTimerForTesting()->manualFireForTesting();
+}
int Internals::lastSpellCheckRequestSequence(Document* document, ExceptionState& exceptionState)
{
« no previous file with comments | « Source/core/testing/Internals.h ('k') | Source/core/testing/Internals.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698