OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "config.h" |
| 6 #include "InternalsNavigatorContentUtils.h" |
| 7 |
| 8 #include "core/dom/Document.h" |
| 9 #include "core/testing/Internals.h" |
| 10 #include "modules/navigatorcontentutils/NavigatorContentUtils.h" |
| 11 #include "modules/navigatorcontentutils/testing/NavigatorContentUtilsClientMock.
h" |
| 12 |
| 13 namespace WebCore { |
| 14 |
| 15 void InternalsNavigatorContentUtils::setNavigatorContentUtilsClientMock(Internal
s&, Document* document) |
| 16 { |
| 17 ASSERT(document && document->page()); |
| 18 NavigatorContentUtils* navigatorContentUtils = NavigatorContentUtils::from(*
document->page()); |
| 19 navigatorContentUtils->setClientForTest(adoptPtr(new NavigatorContentUtilsCl
ientMock())); |
| 20 } |
| 21 |
| 22 } // namespace WebCore |
OLD | NEW |