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

Unified Diff: third_party/WebKit/Source/core/html/AutoplayExperimentTest.cpp

Issue 1920863005: Disable autoplay experiments if the autoplay content settings is set to block. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@autoplay-ifsameorigin-ormuted
Patch Set: split autoplay experiment tests Created 4 years, 8 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/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 57394e540075e946bfbe7ce185e554273e223024..9a8705a5a7f76fcce4738e044c9756bd830af50d 100644
--- a/third_party/WebKit/Source/core/html/AutoplayExperimentTest.cpp
+++ b/third_party/WebKit/Source/core/html/AutoplayExperimentTest.cpp
@@ -54,6 +54,8 @@ public:
.WillByDefault(Return(PageVisibilityStateVisible));
ON_CALL(*this, isCrossOrigin())
.WillByDefault(Return(false));
+ ON_CALL(*this, isAutoplayAllowedPerSettings())
+ .WillByDefault(Return(true));
ON_CALL(*this, absoluteBoundingBoxRect())
.WillByDefault(Return(
IntRect(10, 10, 100, 100)));
@@ -88,6 +90,7 @@ public:
MOCK_CONST_METHOD0(pageVisibilityState, PageVisibilityState());
MOCK_CONST_METHOD0(autoplayExperimentMode, String());
MOCK_CONST_METHOD0(isCrossOrigin, bool());
+ MOCK_CONST_METHOD0(isAutoplayAllowedPerSettings, bool());
MOCK_METHOD1(setRequestPositionUpdates, void(bool));
MOCK_CONST_METHOD0(absoluteBoundingBoxRect, IntRect());

Powered by Google App Engine
This is Rietveld 408576698