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_WEB_VIEW_TEST_HELPER_H_ | 5 #ifndef UI_VIEWS_TEST_WEB_VIEW_TEST_HELPER_H_ |
6 #define UI_VIEWS_TEST_WEB_VIEW_TEST_HELPER_H_ | 6 #define UI_VIEWS_TEST_WEB_VIEW_TEST_HELPER_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 | 9 |
| 10 namespace base { |
10 class MessageLoopForUI; | 11 class MessageLoopForUI; |
| 12 } |
11 | 13 |
12 namespace content { | 14 namespace content { |
13 class TestContentClientInitializer; | 15 class TestContentClientInitializer; |
14 class TestBrowserThread; | 16 class TestBrowserThread; |
15 } // namespace content | 17 } // namespace content |
16 | 18 |
17 namespace views { | 19 namespace views { |
18 | 20 |
19 class WebViewTestHelper { | 21 class WebViewTestHelper { |
20 public: | 22 public: |
21 explicit WebViewTestHelper(MessageLoopForUI* ui_loop); | 23 explicit WebViewTestHelper(base::MessageLoopForUI* ui_loop); |
22 virtual ~WebViewTestHelper(); | 24 virtual ~WebViewTestHelper(); |
23 | 25 |
24 private: | 26 private: |
25 scoped_ptr<content::TestContentClientInitializer> | 27 scoped_ptr<content::TestContentClientInitializer> |
26 test_content_client_initializer_; | 28 test_content_client_initializer_; |
27 | 29 |
28 scoped_ptr<content::TestBrowserThread> ui_thread_; | 30 scoped_ptr<content::TestBrowserThread> ui_thread_; |
29 | 31 |
30 DISALLOW_COPY_AND_ASSIGN(WebViewTestHelper); | 32 DISALLOW_COPY_AND_ASSIGN(WebViewTestHelper); |
31 }; | 33 }; |
32 | 34 |
33 } // namespace views | 35 } // namespace views |
34 | 36 |
35 #endif // UI_VIEWS_TEST_WEB_VIEW_TEST_HELPER_H_ | 37 #endif // UI_VIEWS_TEST_WEB_VIEW_TEST_HELPER_H_ |
OLD | NEW |