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