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