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

Unified Diff: third_party/WebKit/Source/core/dom/DocumentUserGestureTokenTest.cpp

Issue 2625773002: Reenable framebusting (Closed)
Patch Set: 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/core/dom/DocumentUserGestureTokenTest.cpp
diff --git a/third_party/WebKit/Source/core/dom/DocumentUserGestureTokenTest.cpp b/third_party/WebKit/Source/core/dom/DocumentUserGestureTokenTest.cpp
index 87734daafde731429309524ac00f2bb5b0bdf55a..012498fd4910732bfe87f415a45de1d69ee8adf1 100644
--- a/third_party/WebKit/Source/core/dom/DocumentUserGestureTokenTest.cpp
+++ b/third_party/WebKit/Source/core/dom/DocumentUserGestureTokenTest.cpp
@@ -13,7 +13,7 @@ class DocumentUserGestureTokenTest : public ::testing::Test {
public:
void SetUp() override {
m_dummyPageHolder = DummyPageHolder::create(IntSize(800, 600));
- ASSERT_FALSE(document().hasReceivedUserGesture());
+ ASSERT_FALSE(document().frame()->hasReceivedUserGesture());
}
Document& document() const { return m_dummyPageHolder->document(); }
@@ -25,22 +25,22 @@ class DocumentUserGestureTokenTest : public ::testing::Test {
TEST_F(DocumentUserGestureTokenTest, NoGesture) {
// A nullptr Document* will not set user gesture state.
DocumentUserGestureToken::create(nullptr);
- EXPECT_FALSE(document().hasReceivedUserGesture());
+ EXPECT_FALSE(document().frame()->hasReceivedUserGesture());
}
TEST_F(DocumentUserGestureTokenTest, PossiblyExisting) {
// A non-null Document* will set state, but a subsequent nullptr Document*
// token will not override it.
DocumentUserGestureToken::create(&document());
- EXPECT_TRUE(document().hasReceivedUserGesture());
+ EXPECT_TRUE(document().frame()->hasReceivedUserGesture());
DocumentUserGestureToken::create(nullptr);
- EXPECT_TRUE(document().hasReceivedUserGesture());
+ EXPECT_TRUE(document().frame()->hasReceivedUserGesture());
}
TEST_F(DocumentUserGestureTokenTest, NewGesture) {
// UserGestureToken::Status doesn't impact Document gesture state.
DocumentUserGestureToken::create(&document(), UserGestureToken::NewGesture);
- EXPECT_TRUE(document().hasReceivedUserGesture());
+ EXPECT_TRUE(document().frame()->hasReceivedUserGesture());
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698