Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1145)

Unified Diff: ui/views/test/webview_test_helper.h

Issue 10191010: Re-implement the screensaver to use WebView instead of ExtensionDialogHost. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ut fix. Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/views/test/test_views_delegate.cc ('k') | ui/views/test/webview_test_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/test/webview_test_helper.h
diff --git a/ui/views/test/webview_test_helper.h b/ui/views/test/webview_test_helper.h
new file mode 100644
index 0000000000000000000000000000000000000000..9868bcc252f5a7d249711b7d19c6fb08a5b17546
--- /dev/null
+++ b/ui/views/test/webview_test_helper.h
@@ -0,0 +1,41 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef UI_VIEWS_TEST_WEB_VIEW_TEST_HELPER_H_
+#define UI_VIEWS_TEST_WEB_VIEW_TEST_HELPER_H_
+#pragma once
+
+#include "base/memory/scoped_ptr.h"
+
+class MessageLoopForUI;
+
+namespace content {
+class TestContentClientInitializer;
+class TestBrowserThread;
+class MockRenderProcessHostFactory;
+class TestRenderViewHostFactory;
+} // namespace content
+
+namespace views {
+
+class WebViewTestHelper {
+ public:
+ explicit WebViewTestHelper(MessageLoopForUI* ui_loop);
+ virtual ~WebViewTestHelper();
+
+ private:
+ scoped_ptr<content::TestContentClientInitializer>
+ test_content_client_initializer_;
+
+ scoped_ptr<content::TestBrowserThread> ui_thread_;
+
+ scoped_ptr<content::MockRenderProcessHostFactory> rph_factory_;
+ scoped_ptr<content::TestRenderViewHostFactory> rvh_factory_;
+
+ DISALLOW_COPY_AND_ASSIGN(WebViewTestHelper);
+};
+
+} // namespace views
+
+#endif // UI_VIEWS_TEST_WEB_VIEW_TEST_HELPER_H_
« no previous file with comments | « ui/views/test/test_views_delegate.cc ('k') | ui/views/test/webview_test_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698