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 EXPECT_EQ(view()->routing_id() + 1, view()->main_render_frame_->routing_id()); | |
jam
2013/05/31 17:40:04
this line looks a bit odd. why do we need to test
nasko
2013/05/31 17:58:30
My goal is to test that somehow my code is actuall
jam
2013/05/31 18:02:15
i think a test that checks how the routing ids are
nasko
2013/05/31 18:13:38
I'm fine with that, assuming we don't check other
| |
1863 } | |
1864 | |
1858 } // namespace content | 1865 } // namespace content |
OLD | NEW |