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

Unified Diff: Source/web/tests/WebUserGestureTokenTest.cpp

Issue 258783004: Add a "forwarded" flag to usergesture tokens. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: fix unittest Created 6 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 | « Source/web/WebUserGestureToken.cpp ('k') | public/web/WebUserGestureToken.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/tests/WebUserGestureTokenTest.cpp
diff --git a/Source/web/tests/WebUserGestureTokenTest.cpp b/Source/web/tests/WebUserGestureTokenTest.cpp
index 7055fb63224cd50c1e7b8a01026b3de97a3a152e..1ca236f99cacc26a8ad326aee3ba472889c00697 100644
--- a/Source/web/tests/WebUserGestureTokenTest.cpp
+++ b/Source/web/tests/WebUserGestureTokenTest.cpp
@@ -79,6 +79,10 @@ TEST(WebUserGestureTokenTest, Basic)
}
EXPECT_TRUE(UserGestureIndicator::processedUserGestureInPast());
+
+ EXPECT_FALSE(token.wasForwarded());
+ token.setForwarded();
+ EXPECT_TRUE(token.wasForwarded());
}
}
« no previous file with comments | « Source/web/WebUserGestureToken.cpp ('k') | public/web/WebUserGestureToken.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698