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

Unified Diff: third_party/WebKit/Source/web/tests/FrameTestHelpers.h

Issue 2651583007: Plumbing blink::Interface{Provider|Registry} through WebLocalFrame's constructor. (Closed)
Patch Set: ScreenWakeLockTest Created 3 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: third_party/WebKit/Source/web/tests/FrameTestHelpers.h
diff --git a/third_party/WebKit/Source/web/tests/FrameTestHelpers.h b/third_party/WebKit/Source/web/tests/FrameTestHelpers.h
index 67c41b3da3aece9738a600237fa6772de9555f75..45d6424d9a3dc6f5995be00933d3b534ac10c31a 100644
--- a/third_party/WebKit/Source/web/tests/FrameTestHelpers.h
+++ b/third_party/WebKit/Source/web/tests/FrameTestHelpers.h
@@ -249,6 +249,9 @@ class TestWebFrameClient : public WebFrameClient {
bool isLoading() { return m_loadsInProgress > 0; }
+ // Tests can override the virtual method below to mock the interface provider.
+ virtual blink::InterfaceProvider* interfaceProvider() { return nullptr; }
Łukasz Anforowicz 2017/01/23 23:38:16 This is needed for ScreenWakeLockTest.
+
private:
int m_loadsInProgress = 0;
};

Powered by Google App Engine
This is Rietveld 408576698