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

Unified Diff: chrome/browser/ui/views/sync/one_click_signin_bubble_view_unittest.cc

Issue 1260453006: ui: events: Add a class to hold common touch and stylus properties (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address build problems, add accessor and unit tests. Created 5 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
Index: chrome/browser/ui/views/sync/one_click_signin_bubble_view_unittest.cc
diff --git a/chrome/browser/ui/views/sync/one_click_signin_bubble_view_unittest.cc b/chrome/browser/ui/views/sync/one_click_signin_bubble_view_unittest.cc
index 346697842072de70ab5e32e77d6844256022a7ef..00f2585b7836f2ee5c89da6015314d6be8187728 100644
--- a/chrome/browser/ui/views/sync/one_click_signin_bubble_view_unittest.cc
+++ b/chrome/browser/ui/views/sync/one_click_signin_bubble_view_unittest.cc
@@ -147,8 +147,9 @@ TEST_F(OneClickSigninBubbleViewTest, BubbleOkButton) {
// Simulate pressing the OK button. Set the message loop in the bubble
// view so that it can be quit once the bubble is hidden.
views::ButtonListener* listener = view;
- const ui::MouseEvent event(ui::ET_MOUSE_PRESSED, gfx::Point(), gfx::Point(),
- ui::EventTimeForNow(), 0, 0);
+ const ui::MouseEvent event(
+ ui::ET_MOUSE_PRESSED, gfx::Point(), gfx::Point(), ui::EventTimeForNow(),
+ 0, 0, ui::PointerEventDetails(ui::EventPointerType::POINTER_TYPE_MOUSE));
listener->ButtonPressed(view->ok_button_, event);
// View should no longer be showing. The message loop will exit once the
@@ -164,8 +165,9 @@ TEST_F(OneClickSigninBubbleViewTest, DialogOkButton) {
// Simulate pressing the OK button. Set the message loop in the bubble
// view so that it can be quit once the bubble is hidden.
views::ButtonListener* listener = view;
- const ui::MouseEvent event(ui::ET_MOUSE_PRESSED, gfx::Point(), gfx::Point(),
- ui::EventTimeForNow(), 0, 0);
+ const ui::MouseEvent event(
+ ui::ET_MOUSE_PRESSED, gfx::Point(), gfx::Point(), ui::EventTimeForNow(),
+ 0, 0, ui::PointerEventDetails(ui::EventPointerType::POINTER_TYPE_MOUSE));
listener->ButtonPressed(view->ok_button_, event);
// View should no longer be showing and sync should start
@@ -183,8 +185,9 @@ TEST_F(OneClickSigninBubbleViewTest, DialogUndoButton) {
// Simulate pressing the undo button. Set the message loop in the bubble
// view so that it can be quit once the bubble is hidden.
views::ButtonListener* listener = view;
- const ui::MouseEvent event(ui::ET_MOUSE_PRESSED, gfx::Point(), gfx::Point(),
- ui::EventTimeForNow(), 0, 0);
+ const ui::MouseEvent event(
+ ui::ET_MOUSE_PRESSED, gfx::Point(), gfx::Point(), ui::EventTimeForNow(),
+ 0, 0, ui::PointerEventDetails(ui::EventPointerType::POINTER_TYPE_MOUSE));
listener->ButtonPressed(view->undo_button_, event);
// View should no longer be showing. The message loop will exit once the

Powered by Google App Engine
This is Rietveld 408576698