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