Chromium Code Reviews| 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); |