OLD | NEW |
1 // Copyright (c) 2011 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 #ifndef VIEWS_TEST_VIEWS_TEST_BASE_H_ | 5 #ifndef UI_VIEWS_TEST_VIEWS_TEST_BASE_H_ |
6 #define VIEWS_TEST_VIEWS_TEST_BASE_H_ | 6 #define UI_VIEWS_TEST_VIEWS_TEST_BASE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
11 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" |
12 #include "views/test/test_views_delegate.h" | 12 #include "ui/views/test/test_views_delegate.h" |
13 | 13 |
14 namespace views { | 14 namespace views { |
15 | 15 |
16 class TestViewsDelegate; | 16 class TestViewsDelegate; |
17 | 17 |
18 // A base class for views unit test. It creates a message loop necessary | 18 // A base class for views unit test. It creates a message loop necessary |
19 // to drive UI events and takes care of OLE initialization for windows. | 19 // to drive UI events and takes care of OLE initialization for windows. |
20 class ViewsTestBase : public testing::Test { | 20 class ViewsTestBase : public testing::Test { |
21 public: | 21 public: |
22 ViewsTestBase(); | 22 ViewsTestBase(); |
(...skipping 16 matching lines...) Expand all Loading... |
39 MessageLoopForUI message_loop_; | 39 MessageLoopForUI message_loop_; |
40 scoped_ptr<TestViewsDelegate> views_delegate_; | 40 scoped_ptr<TestViewsDelegate> views_delegate_; |
41 bool setup_called_; | 41 bool setup_called_; |
42 bool teardown_called_; | 42 bool teardown_called_; |
43 | 43 |
44 DISALLOW_COPY_AND_ASSIGN(ViewsTestBase); | 44 DISALLOW_COPY_AND_ASSIGN(ViewsTestBase); |
45 }; | 45 }; |
46 | 46 |
47 } // namespace views | 47 } // namespace views |
48 | 48 |
49 #endif // VIEWS_TEST_VIEWS_TEST_BASE_H_ | 49 #endif // UI_VIEWS_TEST_VIEWS_TEST_BASE_H_ |
OLD | NEW |