| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "core/layout/LayoutTestHelper.h" | 5 #include "core/layout/LayoutTestHelper.h" |
| 6 | 6 |
| 7 #include "core/fetch/MemoryCache.h" | |
| 8 #include "core/frame/FrameHost.h" | 7 #include "core/frame/FrameHost.h" |
| 9 #include "core/html/HTMLIFrameElement.h" | 8 #include "core/html/HTMLIFrameElement.h" |
| 9 #include "platform/loader/fetch/MemoryCache.h" |
| 10 #include "platform/scroll/ScrollbarTheme.h" | 10 #include "platform/scroll/ScrollbarTheme.h" |
| 11 | 11 |
| 12 namespace blink { | 12 namespace blink { |
| 13 | 13 |
| 14 LocalFrame* SingleChildFrameLoaderClient::createFrame( | 14 LocalFrame* SingleChildFrameLoaderClient::createFrame( |
| 15 const FrameLoadRequest&, | 15 const FrameLoadRequest&, |
| 16 const AtomicString& name, | 16 const AtomicString& name, |
| 17 HTMLFrameOwnerElement* ownerElement) { | 17 HTMLFrameOwnerElement* ownerElement) { |
| 18 DCHECK(!m_child) << "This test helper only supports one child frame."; | 18 DCHECK(!m_child) << "This test helper only supports one child frame."; |
| 19 | 19 |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 // Clear memory cache, otherwise we can leak pruned resources. | 65 // Clear memory cache, otherwise we can leak pruned resources. |
| 66 memoryCache()->evictResources(); | 66 memoryCache()->evictResources(); |
| 67 } | 67 } |
| 68 | 68 |
| 69 void RenderingTest::setChildFrameHTML(const String& html) { | 69 void RenderingTest::setChildFrameHTML(const String& html) { |
| 70 childDocument().setBaseURLOverride(KURL(ParsedURLString, "http://test.com")); | 70 childDocument().setBaseURLOverride(KURL(ParsedURLString, "http://test.com")); |
| 71 childDocument().body()->setInnerHTML(html, ASSERT_NO_EXCEPTION); | 71 childDocument().body()->setInnerHTML(html, ASSERT_NO_EXCEPTION); |
| 72 } | 72 } |
| 73 | 73 |
| 74 } // namespace blink | 74 } // namespace blink |
| OLD | NEW |