Index: Source/modules/navigatorcontentutils/testing/InternalsNavigatorContentUtils.cpp |
diff --git a/Source/modules/navigatorcontentutils/testing/InternalsNavigatorContentUtils.cpp b/Source/modules/navigatorcontentutils/testing/InternalsNavigatorContentUtils.cpp |
new file mode 100644 |
index 0000000000000000000000000000000000000000..5ca9412320a1ced11b48225f63e51fc9d656d31c |
--- /dev/null |
+++ b/Source/modules/navigatorcontentutils/testing/InternalsNavigatorContentUtils.cpp |
@@ -0,0 +1,22 @@ |
+// Copyright 2014 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include "config.h" |
+#include "InternalsNavigatorContentUtils.h" |
+ |
+#include "core/dom/Document.h" |
+#include "core/testing/Internals.h" |
+#include "modules/navigatorcontentutils/NavigatorContentUtils.h" |
+#include "modules/navigatorcontentutils/testing/NavigatorContentUtilsClientMock.h" |
+ |
+namespace WebCore { |
+ |
+void InternalsNavigatorContentUtils::setNavigatorContentUtilsClientMock(Internals&, Document* document) |
+{ |
+ ASSERT(document && document->page()); |
+ NavigatorContentUtils* navigatorContentUtils = NavigatorContentUtils::from(*document->page()); |
+ navigatorContentUtils->setClientForTest(adoptPtr(new NavigatorContentUtilsClientMock())); |
+} |
+ |
+} // namespace WebCore |