| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 UI_VIEWS_TEST_VIEWS_TEST_BASE_H_ | 5 #ifndef UI_VIEWS_TEST_VIEWS_TEST_BASE_H_ |
| 6 #define UI_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" |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 void set_views_delegate(TestViewsDelegate* views_delegate) { | 46 void set_views_delegate(TestViewsDelegate* views_delegate) { |
| 47 views_delegate_.reset(views_delegate); | 47 views_delegate_.reset(views_delegate); |
| 48 } | 48 } |
| 49 | 49 |
| 50 MessageLoop* message_loop() { return &message_loop_; } | 50 MessageLoop* message_loop() { return &message_loop_; } |
| 51 | 51 |
| 52 private: | 52 private: |
| 53 MessageLoopForUI message_loop_; | 53 MessageLoopForUI message_loop_; |
| 54 scoped_ptr<TestViewsDelegate> views_delegate_; | 54 scoped_ptr<TestViewsDelegate> views_delegate_; |
| 55 #if defined(USE_AURA) | 55 #if defined(USE_AURA) |
| 56 scoped_ptr<aura::RootWindow> root_window_; |
| 56 scoped_ptr<aura::test::TestActivationClient> test_activation_client_; | 57 scoped_ptr<aura::test::TestActivationClient> test_activation_client_; |
| 57 scoped_ptr<aura::test::TestStackingClient> test_stacking_client_; | 58 scoped_ptr<aura::test::TestStackingClient> test_stacking_client_; |
| 58 scoped_ptr<ui::InputMethod> test_input_method_; | 59 scoped_ptr<ui::InputMethod> test_input_method_; |
| 59 aura::RootWindow* root_window_; | |
| 60 #endif | 60 #endif |
| 61 bool setup_called_; | 61 bool setup_called_; |
| 62 bool teardown_called_; | 62 bool teardown_called_; |
| 63 | 63 |
| 64 DISALLOW_COPY_AND_ASSIGN(ViewsTestBase); | 64 DISALLOW_COPY_AND_ASSIGN(ViewsTestBase); |
| 65 }; | 65 }; |
| 66 | 66 |
| 67 } // namespace views | 67 } // namespace views |
| 68 | 68 |
| 69 #endif // UI_VIEWS_TEST_VIEWS_TEST_BASE_H_ | 69 #endif // UI_VIEWS_TEST_VIEWS_TEST_BASE_H_ |
| OLD | NEW |