| Index: ui/app_list/views/speech_view_unittest.cc
|
| diff --git a/ui/app_list/views/speech_view_unittest.cc b/ui/app_list/views/speech_view_unittest.cc
|
| index de190fb92d07528315f067b42d145f8445d97612..fa43eb501fd047aa57ad975f4ddd350b8c72aa61 100644
|
| --- a/ui/app_list/views/speech_view_unittest.cc
|
| +++ b/ui/app_list/views/speech_view_unittest.cc
|
| @@ -57,12 +57,16 @@ TEST_F(SpeechViewTest, ClickMicButton) {
|
| gfx::Rect screen_bounds(view()->mic_button()->GetBoundsInScreen());
|
|
|
| // Simulate a mouse click in the center of the MicButton.
|
| - ui::MouseEvent press(ui::ET_MOUSE_PRESSED, screen_bounds.CenterPoint(),
|
| - screen_bounds.CenterPoint(), ui::EventTimeForNow(),
|
| - ui::EF_LEFT_MOUSE_BUTTON, 0);
|
| - ui::MouseEvent release(ui::ET_MOUSE_RELEASED, screen_bounds.CenterPoint(),
|
| - screen_bounds.CenterPoint(), ui::EventTimeForNow(),
|
| - ui::EF_LEFT_MOUSE_BUTTON, 0);
|
| + ui::MouseEvent press(
|
| + ui::ET_MOUSE_PRESSED, screen_bounds.CenterPoint(),
|
| + screen_bounds.CenterPoint(), ui::EventTimeForNow(),
|
| + ui::EF_LEFT_MOUSE_BUTTON, 0,
|
| + ui::PointerEventDetails(ui::EventPointerType::POINTER_TYPE_MOUSE));
|
| + ui::MouseEvent release(
|
| + ui::ET_MOUSE_RELEASED, screen_bounds.CenterPoint(),
|
| + screen_bounds.CenterPoint(), ui::EventTimeForNow(),
|
| + ui::EF_LEFT_MOUSE_BUTTON, 0,
|
| + ui::PointerEventDetails(ui::EventPointerType::POINTER_TYPE_MOUSE));
|
| widget()->OnMouseEvent(&press);
|
| widget()->OnMouseEvent(&release);
|
| EXPECT_EQ(1, GetToggleSpeechRecognitionCountAndReset());
|
| @@ -72,10 +76,14 @@ TEST_F(SpeechViewTest, ClickMicButton) {
|
| // circular hit-test mask).
|
| gfx::Point bottom_right(screen_bounds.right() - 1,
|
| screen_bounds.bottom() - 2);
|
| - press = ui::MouseEvent(ui::ET_MOUSE_PRESSED, bottom_right, bottom_right,
|
| - ui::EventTimeForNow(), ui::EF_LEFT_MOUSE_BUTTON, 0);
|
| - release = ui::MouseEvent(ui::ET_MOUSE_RELEASED, bottom_right, bottom_right,
|
| - ui::EventTimeForNow(), ui::EF_LEFT_MOUSE_BUTTON, 0);
|
| + press = ui::MouseEvent(
|
| + ui::ET_MOUSE_PRESSED, bottom_right, bottom_right, ui::EventTimeForNow(),
|
| + ui::EF_LEFT_MOUSE_BUTTON, 0,
|
| + ui::PointerEventDetails(ui::EventPointerType::POINTER_TYPE_MOUSE));
|
| + release = ui::MouseEvent(
|
| + ui::ET_MOUSE_RELEASED, bottom_right, bottom_right, ui::EventTimeForNow(),
|
| + ui::EF_LEFT_MOUSE_BUTTON, 0,
|
| + ui::PointerEventDetails(ui::EventPointerType::POINTER_TYPE_MOUSE));
|
| widget()->OnMouseEvent(&press);
|
| widget()->OnMouseEvent(&release);
|
| EXPECT_EQ(0, GetToggleSpeechRecognitionCountAndReset());
|
|
|