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

Unified Diff: chrome/test/base/view_event_test_base.h

Issue 1129203003: Skips disabled menu items when selection is changed (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Skips disabled menu items when selection is changed (test) Created 5 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
Index: chrome/test/base/view_event_test_base.h
diff --git a/chrome/test/base/view_event_test_base.h b/chrome/test/base/view_event_test_base.h
index 21188d23c4bd758a7c98ab9fa59220b8ba501927..42cfa633d3086f2d8df710cb7fe7961161798cfc 100644
--- a/chrome/test/base/view_event_test_base.h
+++ b/chrome/test/base/view_event_test_base.h
@@ -113,15 +113,22 @@ class ViewEventTestBase : public views::WidgetDelegate,
// appropriately.
virtual gfx::Size GetPreferredSize() const;
- // Creates a task that calls the specified method back. The specified
- // method is called in such a way that if there are any test failures
- // Done is invoked.
+ // Creates a task that calls the specified |method| on instance |target|. The
+ // specified method is called in such a way that if there are any test
+ // failures Done is invoked.
template <class T, class Method>
base::Closure CreateEventTask(T* target, Method method) {
return base::Bind(&ViewEventTestBase::RunTestMethod, this,
base::Bind(method, target));
}
+ // Creates a task that calls the specified |closure|. The specified closure
+ // is called in such a way that if there are any test failures Done is
+ // invoked.
+ base::Closure CreateEventTask(base::Closure closure) {
sadrul 2015/05/14 08:04:35 const &?
+ return base::Bind(&ViewEventTestBase::RunTestMethod, this, closure);
+ }
+
// Spawns a new thread posts a MouseMove in the background.
void ScheduleMouseMoveInBackground(int x, int y);
« no previous file with comments | « chrome/browser/ui/views/menu_controller_interactive_uitest.cc ('k') | ui/views/controls/menu/menu_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698