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

Side by Side Diff: content/renderer/render_view_browsertest.cc

Issue 16032007: Create RenderFrame/RenderFrameHost for the main frame of a page. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removing routing ID expectations. Created 7 years, 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/renderer/render_thread_impl.cc ('k') | content/renderer/render_view_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #include "base/basictypes.h" 5 #include "base/basictypes.h"
6 6
7 #include "base/shared_memory.h" 7 #include "base/shared_memory.h"
8 #include "base/string_util.h" 8 #include "base/string_util.h"
9 #include "base/utf_string_conversions.h" 9 #include "base/utf_string_conversions.h"
10 #include "content/common/view_messages.h" 10 #include "content/common/view_messages.h"
(...skipping 1837 matching lines...) Expand 10 before | Expand all | Expand 10 after
1848 ProcessPendingMessages(); 1848 ProcessPendingMessages();
1849 1849
1850 // Copy the document content to std::wstring and compare with the 1850 // Copy the document content to std::wstring and compare with the
1851 // expected result. 1851 // expected result.
1852 const int kMaxOutputCharacters = 256; 1852 const int kMaxOutputCharacters = 256;
1853 std::wstring output = UTF16ToWideHack( 1853 std::wstring output = UTF16ToWideHack(
1854 GetMainFrame()->contentAsText(kMaxOutputCharacters)); 1854 GetMainFrame()->contentAsText(kMaxOutputCharacters));
1855 EXPECT_EQ(output, L"hello \n\nworld"); 1855 EXPECT_EQ(output, L"hello \n\nworld");
1856 } 1856 }
1857 1857
1858 // This test ensures that a RenderFrame object is created for the top level
1859 // frame in the RenderView.
1860 TEST_F(RenderViewImplTest, BasicRenderFrame) {
1861 EXPECT_TRUE(view()->main_render_frame_.get());
1862 }
1863
1858 } // namespace content 1864 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/render_thread_impl.cc ('k') | content/renderer/render_view_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698