| 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 #ifndef CHROME_TEST_INTERACTIVE_UI_VIEW_EVENT_TEST_BASE_H_ | 5 #ifndef CHROME_TEST_INTERACTIVE_UI_VIEW_EVENT_TEST_BASE_H_ |
| 6 #define CHROME_TEST_INTERACTIVE_UI_VIEW_EVENT_TEST_BASE_H_ | 6 #define CHROME_TEST_INTERACTIVE_UI_VIEW_EVENT_TEST_BASE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
| 10 #include "base/task.h" | 10 #include "base/task.h" |
| 11 #include "base/thread.h" | 11 #include "base/threading/thread.h" |
| 12 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
| 13 #include "views/window/window_delegate.h" | 13 #include "views/window/window_delegate.h" |
| 14 | 14 |
| 15 class Task; | 15 class Task; |
| 16 | 16 |
| 17 namespace gfx { | 17 namespace gfx { |
| 18 class Size; | 18 class Size; |
| 19 } | 19 } |
| 20 | 20 |
| 21 // Base class for Views based tests that dispatch events. | 21 // Base class for Views based tests that dispatch events. |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 }; | 139 }; |
| 140 | 140 |
| 141 // Convenience macro for defining a ViewEventTestBase. See class description | 141 // Convenience macro for defining a ViewEventTestBase. See class description |
| 142 // of ViewEventTestBase for details. | 142 // of ViewEventTestBase for details. |
| 143 #define VIEW_TEST(test_class, name) \ | 143 #define VIEW_TEST(test_class, name) \ |
| 144 TEST_F(test_class, name) {\ | 144 TEST_F(test_class, name) {\ |
| 145 StartMessageLoopAndRunTest();\ | 145 StartMessageLoopAndRunTest();\ |
| 146 } | 146 } |
| 147 | 147 |
| 148 #endif // CHROME_TEST_INTERACTIVE_UI_VIEW_EVENT_TEST_BASE_H_ | 148 #endif // CHROME_TEST_INTERACTIVE_UI_VIEW_EVENT_TEST_BASE_H_ |
| OLD | NEW |