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

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

Issue 112023010: Make EventHandler::ActiveIntervalTimer mockable. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove FINAL from Timer declaration. 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
Index: Source/core/testing/Internals.cpp
diff --git a/Source/core/testing/Internals.cpp b/Source/core/testing/Internals.cpp
index 09f35e51cbcb35b1e3568753d9fae31b5a0fa531..d3e0ad3ce5f8b9524b753607d19163900d9f921d 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().getActiveIntervalTimerForTesting()->setManualModeForTesting(manualMode);
+}
+
+void Internals::fireActiveIntervalTimer(Document* document, ExceptionState& exceptionState)
+{
+ if (!document || !document->frame())
+ exceptionState.throwUninformativeAndGenericDOMException(InvalidAccessError);
+
+ document->frame()->eventHandler().getActiveIntervalTimerForTesting()->manualFireForTesting();
+}
int Internals::lastSpellCheckRequestSequence(Document* document, ExceptionState& exceptionState)
{

Powered by Google App Engine
This is Rietveld 408576698