Index: third_party/WebKit/Source/core/html/AutoplayExperimentTest.cpp |
diff --git a/third_party/WebKit/Source/core/html/AutoplayExperimentTest.cpp b/third_party/WebKit/Source/core/html/AutoplayExperimentTest.cpp |
index 7f92c663bb0a784eb97cc0a5b9d6d7763ca2acc3..0ef1485a9c5edd97376dbb54a66a07d86dd2a154 100644 |
--- a/third_party/WebKit/Source/core/html/AutoplayExperimentTest.cpp |
+++ b/third_party/WebKit/Source/core/html/AutoplayExperimentTest.cpp |
@@ -52,6 +52,8 @@ public: |
.WillByDefault(Return(false)); |
ON_CALL(*this, pageVisibilityState()) |
.WillByDefault(Return(PageVisibilityStateVisible)); |
+ ON_CALL(*this, frame()) |
+ .WillByDefault(Return(nullptr)); |
ON_CALL(*this, absoluteBoundingBoxRect()) |
.WillByDefault(Return( |
IntRect(10, 10, 100, 100))); |
@@ -85,6 +87,7 @@ public: |
MOCK_METHOD0(isLegacyViewportType, bool()); |
MOCK_CONST_METHOD0(pageVisibilityState, PageVisibilityState()); |
MOCK_CONST_METHOD0(autoplayExperimentMode, String()); |
+ MOCK_CONST_METHOD0(frame, LocalFrame*()); |
MOCK_METHOD1(setRequestPositionUpdates, void(bool)); |
MOCK_CONST_METHOD0(absoluteBoundingBoxRect, IntRect()); |