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

Unified Diff: chrome/browser/ui/views/profiles/profile_chooser_view_browsertest.cc

Issue 2851543002: Update avatar button to MD (part 1) (Closed)
Patch Set: Fixed TODO comments Created 3 years, 7 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 | « chrome/browser/ui/views/profiles/avatar_button_delegate.h ('k') | ui/views/controls/button/label_button.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/profiles/profile_chooser_view_browsertest.cc
diff --git a/chrome/browser/ui/views/profiles/profile_chooser_view_browsertest.cc b/chrome/browser/ui/views/profiles/profile_chooser_view_browsertest.cc
index e213b0ef448db70fc55779fdbc4cfe5d7cf92938..91c527e123320e266e763e4a6219c844f434d9fa 100644
--- a/chrome/browser/ui/views/profiles/profile_chooser_view_browsertest.cc
+++ b/chrome/browser/ui/views/profiles/profile_chooser_view_browsertest.cc
@@ -123,9 +123,9 @@ class ProfileChooserViewExtensionsTest : public ExtensionBrowserTest {
ProfileChooserView::close_on_deactivate_for_testing_ = false;
- ui::MouseEvent e(ui::ET_MOUSE_RELEASED, gfx::Point(), gfx::Point(),
+ ui::MouseEvent e(ui::ET_MOUSE_PRESSED, gfx::Point(), gfx::Point(),
ui::EventTimeForNow(), ui::EF_LEFT_MOUSE_BUTTON, 0);
- button->OnMouseReleased(e);
+ button->OnMousePressed(e);
base::RunLoop().RunUntilIdle();
EXPECT_TRUE(ProfileChooserView::IsShowing());
@@ -140,7 +140,7 @@ class ProfileChooserViewExtensionsTest : public ExtensionBrowserTest {
}
void ClickProfileChooserViewLockButton() {
- ui::MouseEvent e(ui::ET_MOUSE_RELEASED, gfx::Point(), gfx::Point(),
+ ui::MouseEvent e(ui::ET_MOUSE_PRESSED, gfx::Point(), gfx::Point(),
ui::EventTimeForNow(), 0, 0);
ProfileChooserView::profile_bubble_->ButtonPressed(
ProfileChooserView::profile_bubble_->lock_button_, e);
« no previous file with comments | « chrome/browser/ui/views/profiles/avatar_button_delegate.h ('k') | ui/views/controls/button/label_button.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698