OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #if defined(OS_WIN) | 7 #if defined(OS_WIN) |
8 #include <ole2.h> | 8 #include <ole2.h> |
9 #endif | 9 #endif |
10 | 10 |
11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
12 #include "base/message_loop.h" | 12 #include "base/message_loop.h" |
13 #include "base/string_number_conversions.h" | 13 #include "base/string_number_conversions.h" |
14 #include "chrome/browser/automation/ui_controls.h" | 14 #include "chrome/browser/automation/ui_controls.h" |
15 #include "chrome/test/ui_test_utils.h" | 15 #include "chrome/test/base/ui_test_utils.h" |
16 #include "views/view.h" | 16 #include "views/view.h" |
17 #include "views/widget/widget.h" | 17 #include "views/widget/widget.h" |
18 | 18 |
19 namespace { | 19 namespace { |
20 | 20 |
21 // View subclass that allows you to specify the preferred size. | 21 // View subclass that allows you to specify the preferred size. |
22 class TestView : public views::View { | 22 class TestView : public views::View { |
23 public: | 23 public: |
24 TestView() {} | 24 TestView() {} |
25 | 25 |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 } | 162 } |
163 | 163 |
164 void ViewEventTestBase::RunTestMethod(Task* task) { | 164 void ViewEventTestBase::RunTestMethod(Task* task) { |
165 StopBackgroundThread(); | 165 StopBackgroundThread(); |
166 | 166 |
167 scoped_ptr<Task> task_deleter(task); | 167 scoped_ptr<Task> task_deleter(task); |
168 task->Run(); | 168 task->Run(); |
169 if (HasFatalFailure()) | 169 if (HasFatalFailure()) |
170 Done(); | 170 Done(); |
171 } | 171 } |
OLD | NEW |