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

Unified Diff: chrome/test/base/interactive_test_utils_views.cc

Issue 2286853002: Add temporary debug logging for crbug.com/639350. (Closed)
Patch Set: Add logging for mouse moves and events. 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 | « chrome/test/base/interactive_test_utils_common_views.cc ('k') | ui/base/test/ui_controls.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/base/interactive_test_utils_views.cc
diff --git a/chrome/test/base/interactive_test_utils_views.cc b/chrome/test/base/interactive_test_utils_views.cc
index f1dce9d43b99783713733b025068094f8ecd83c7..10923ff3b25422dab1ada785a2a978affaafcfee 100644
--- a/chrome/test/base/interactive_test_utils_views.cc
+++ b/chrome/test/base/interactive_test_utils_views.cc
@@ -25,13 +25,23 @@ bool IsViewFocused(const Browser* browser, ViewID vid) {
}
void ClickOnView(const Browser* browser, ViewID vid) {
+ if (g_crbug_639350_logging)
+ LOG(ERROR) << "crbug.com/639350 ClickOnView A";
views::View* view =
BrowserView::GetBrowserViewForBrowser(browser)->GetViewByID(vid);
+ if (g_crbug_639350_logging)
+ LOG(ERROR) << "crbug.com/639350 ClickOnView B";
DCHECK(view);
+ if (g_crbug_639350_logging)
+ LOG(ERROR) << "crbug.com/639350 ClickOnView C";
MoveMouseToCenterAndPress(view, ui_controls::LEFT,
ui_controls::DOWN | ui_controls::UP,
base::MessageLoop::QuitWhenIdleClosure());
+ if (g_crbug_639350_logging)
+ LOG(ERROR) << "crbug.com/639350 ClickOnView D";
content::RunMessageLoop();
+ if (g_crbug_639350_logging)
+ LOG(ERROR) << "crbug.com/639350 ClickOnView E";
}
void FocusView(const Browser* browser, ViewID vid) {
« no previous file with comments | « chrome/test/base/interactive_test_utils_common_views.cc ('k') | ui/base/test/ui_controls.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698