OLD | NEW |
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 Loading... |
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 |
OLD | NEW |