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

Unified Diff: ui/views/animation/ink_drop_host_view_unittest.cc

Issue 2289403002: Making SetInkDropMode public (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixing unit test v2.0 Created 4 years, 4 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 | « ui/views/animation/ink_drop_host_view.h ('k') | ui/views/animation/test/ink_drop_host_view_test_api.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/animation/ink_drop_host_view_unittest.cc
diff --git a/ui/views/animation/ink_drop_host_view_unittest.cc b/ui/views/animation/ink_drop_host_view_unittest.cc
index 4526a11a4d6139b0431635c54850f3b3a37f77d7..2bd0918a837b04e7bd7b6803b804acb5e49d255e 100644
--- a/ui/views/animation/ink_drop_host_view_unittest.cc
+++ b/ui/views/animation/ink_drop_host_view_unittest.cc
@@ -70,17 +70,17 @@ TEST_F(InkDropHostViewTest, GetInkDropCenterBasedOnLastEventForLocatedEvent) {
TEST_F(InkDropHostViewTest, SetInkDropModeGestureHandler) {
EXPECT_FALSE(test_api_.HasGestureHandler());
- test_api_.SetInkDropMode(InkDropMode::ON_NO_GESTURE_HANDLER);
+ host_view_.SetInkDropMode(InkDropMode::ON_NO_GESTURE_HANDLER);
EXPECT_FALSE(test_api_.HasGestureHandler());
- test_api_.SetInkDropMode(InkDropMode::ON);
+ host_view_.SetInkDropMode(InkDropMode::ON);
EXPECT_TRUE(test_api_.HasGestureHandler());
// Enabling gesture handler the second time should just work (no crash).
- test_api_.SetInkDropMode(InkDropMode::ON);
+ host_view_.SetInkDropMode(InkDropMode::ON);
EXPECT_TRUE(test_api_.HasGestureHandler());
- test_api_.SetInkDropMode(InkDropMode::OFF);
+ host_view_.SetInkDropMode(InkDropMode::OFF);
EXPECT_FALSE(test_api_.HasGestureHandler());
}
@@ -88,7 +88,7 @@ TEST_F(InkDropHostViewTest, SetInkDropModeGestureHandler) {
TEST_F(InkDropHostViewTest, NoInkDropOnTouchOrGestureEvents) {
host_view_.SetSize(gfx::Size(20, 20));
- test_api_.SetInkDropMode(InkDropMode::ON_NO_GESTURE_HANDLER);
+ host_view_.SetInkDropMode(InkDropMode::ON_NO_GESTURE_HANDLER);
// Ensure the target ink drop is in the expected state.
EXPECT_EQ(test_api_.ink_drop()->GetTargetInkDropState(),
@@ -122,7 +122,7 @@ TEST_F(InkDropHostViewTest, NoInkDropOnTouchOrGestureEvents) {
TEST_F(InkDropHostViewTest, DismissInkDropOnTouchOrGestureEvents) {
host_view_.SetSize(gfx::Size(20, 20));
- test_api_.SetInkDropMode(InkDropMode::ON_NO_GESTURE_HANDLER);
+ host_view_.SetInkDropMode(InkDropMode::ON_NO_GESTURE_HANDLER);
// Ensure the target ink drop is in the expected state.
EXPECT_EQ(test_api_.ink_drop()->GetTargetInkDropState(),
« no previous file with comments | « ui/views/animation/ink_drop_host_view.h ('k') | ui/views/animation/test/ink_drop_host_view_test_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698