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

Unified Diff: Source/modules/serviceworkers/testing/InternalsServiceWorker.cpp

Issue 896043004: Tests for WaitUntilObserver and focus/openining windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@sw_client_focus_cleanup
Patch Set: Created 5 years, 10 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/modules/serviceworkers/testing/InternalsServiceWorker.cpp
diff --git a/Source/modules/serviceworkers/testing/InternalsServiceWorker.cpp b/Source/modules/serviceworkers/testing/InternalsServiceWorker.cpp
index b87a3fdd736cc0b693978b487628aeea971fc27a..877e61bb90681c54dbdfd998908432c430070143 100644
--- a/Source/modules/serviceworkers/testing/InternalsServiceWorker.cpp
+++ b/Source/modules/serviceworkers/testing/InternalsServiceWorker.cpp
@@ -6,6 +6,7 @@
#include "modules/serviceworkers/testing/InternalsServiceWorker.h"
#include "modules/serviceworkers/ServiceWorker.h"
+#include "modules/serviceworkers/WaitUntilObserver.h"
namespace blink {
@@ -14,4 +15,9 @@ void InternalsServiceWorker::terminateServiceWorker(Internals& internals, Servic
worker->internalsTerminate();
}
+void InternalsServiceWorker::overrideWindowInteractionTimeout(Internals& internals, unsigned timeout)
+{
+ WaitUntilObserver::overrideWindowInteractionTimeoutForTest(timeout);
+}
+
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698