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

Unified Diff: third_party/WebKit/Source/core/html/media/AutoplayUmaHelperTest.cpp

Issue 2813303005: [Blink>Media] Moving autoplay logic to AutoplayPolicy (Closed)
Patch Set: addressed nits Created 3 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
« no previous file with comments | « third_party/WebKit/Source/core/html/media/AutoplayUmaHelper.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/html/media/AutoplayUmaHelperTest.cpp
diff --git a/third_party/WebKit/Source/core/html/media/AutoplayUmaHelperTest.cpp b/third_party/WebKit/Source/core/html/media/AutoplayUmaHelperTest.cpp
index e515e28be4471f3dfde27485f4ddfe03ea76e56e..f3bc12d8ce04f3f73a4f6ce5e2f0da74f70c45f8 100644
--- a/third_party/WebKit/Source/core/html/media/AutoplayUmaHelperTest.cpp
+++ b/third_party/WebKit/Source/core/html/media/AutoplayUmaHelperTest.cpp
@@ -7,6 +7,7 @@
#include "core/dom/Document.h"
#include "core/html/HTMLMediaElement.h"
#include "core/html/HTMLVideoElement.h"
+#include "core/html/media/AutoplayPolicy.h"
#include "core/testing/DummyPageHolder.h"
#include "testing/gmock/include/gmock/gmock.h"
@@ -56,7 +57,7 @@ class AutoplayUmaHelperTest : public testing::Test {
ASSERT_NO_EXCEPTION);
HTMLMediaElement& element = MediaElement();
uma_helper_ = new MockAutoplayUmaHelper(&element);
- element.autoplay_uma_helper_ = uma_helper_;
+ element.autoplay_policy_->autoplay_uma_helper_ = uma_helper_;
::testing::Mock::AllowLeak(&UmaHelper());
}
« no previous file with comments | « third_party/WebKit/Source/core/html/media/AutoplayUmaHelper.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698