| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/test/interactive_ui/view_event_test_base.h" | 5 #include "chrome/test/interactive_ui/view_event_test_base.h" |
| 6 | 6 |
| 7 #include <ole2.h> |
| 8 |
| 7 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
| 8 #include "chrome/browser/automation/ui_controls.h" | 10 #include "chrome/browser/automation/ui_controls.h" |
| 9 #include "views/view.h" | 11 #include "views/view.h" |
| 10 #include "views/window/window.h" | 12 #include "views/window/window.h" |
| 11 | 13 |
| 12 namespace { | 14 namespace { |
| 13 | 15 |
| 14 // View subclass that allows you to specify the preferred size. | 16 // View subclass that allows you to specify the preferred size. |
| 15 class TestView : public views::View { | 17 class TestView : public views::View { |
| 16 public: | 18 public: |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 } | 122 } |
| 121 | 123 |
| 122 void ViewEventTestBase::RunTestMethod(Task* task) { | 124 void ViewEventTestBase::RunTestMethod(Task* task) { |
| 123 StopBackgroundThread(); | 125 StopBackgroundThread(); |
| 124 | 126 |
| 125 scoped_ptr<Task> task_deleter(task); | 127 scoped_ptr<Task> task_deleter(task); |
| 126 task->Run(); | 128 task->Run(); |
| 127 if (HasFatalFailure()) | 129 if (HasFatalFailure()) |
| 128 Done(); | 130 Done(); |
| 129 } | 131 } |
| OLD | NEW |