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