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

Unified Diff: content/browser/renderer_host/render_widget_host_view_aura_unittest.cc

Issue 10804031: Move more files into the content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 5 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
Index: content/browser/renderer_host/render_widget_host_view_aura_unittest.cc
===================================================================
--- content/browser/renderer_host/render_widget_host_view_aura_unittest.cc (revision 147462)
+++ content/browser/renderer_host/render_widget_host_view_aura_unittest.cc (working copy)
@@ -20,7 +20,9 @@
#include "ui/aura/window_observer.h"
#include "ui/base/ui_base_types.h"
-class MockRenderWidgetHostDelegate : public content::RenderWidgetHostDelegate {
+namespace content {
+
+class MockRenderWidgetHostDelegate : public RenderWidgetHostDelegate {
public:
MockRenderWidgetHostDelegate() {}
virtual ~MockRenderWidgetHostDelegate() {}
@@ -65,13 +67,13 @@
aura_test_helper_.reset(new aura::test::AuraTestHelper(&message_loop_));
aura_test_helper_->SetUp();
- browser_context_.reset(new content::TestBrowserContext);
- content::MockRenderProcessHost* process_host =
- new content::MockRenderProcessHost(browser_context_.get());
- widget_host_ = new content::RenderWidgetHostImpl(
+ browser_context_.reset(new TestBrowserContext);
+ MockRenderProcessHost* process_host =
+ new MockRenderProcessHost(browser_context_.get());
+ widget_host_ = new RenderWidgetHostImpl(
&delegate_, process_host, MSG_ROUTING_NONE);
view_ = static_cast<RenderWidgetHostViewAura*>(
- content::RenderWidgetHostView::CreateViewForWidget(widget_host_));
+ RenderWidgetHostView::CreateViewForWidget(widget_host_));
}
virtual void TearDown() {
@@ -89,12 +91,12 @@
protected:
MessageLoopForUI message_loop_;
scoped_ptr<aura::test::AuraTestHelper> aura_test_helper_;
- scoped_ptr<content::BrowserContext> browser_context_;
+ scoped_ptr<BrowserContext> browser_context_;
MockRenderWidgetHostDelegate delegate_;
// Tests should set these to NULL if they've already triggered their
// destruction.
- content::RenderWidgetHostImpl* widget_host_;
+ RenderWidgetHostImpl* widget_host_;
RenderWidgetHostViewAura* view_;
private:
@@ -140,3 +142,5 @@
widget_host_ = NULL;
view_ = NULL;
}
+
+} // namespace content

Powered by Google App Engine
This is Rietveld 408576698