Index: content/test/test_blink_web_unit_test_support.cc |
diff --git a/content/test/test_blink_web_unit_test_support.cc b/content/test/test_blink_web_unit_test_support.cc |
index 05a6b9bcce2fec1c48d896fbe7d74c177ba377f5..52b24606ca3747e63b9f5b55938654fc1a1c4b3d 100644 |
--- a/content/test/test_blink_web_unit_test_support.cc |
+++ b/content/test/test_blink_web_unit_test_support.cc |
@@ -25,6 +25,7 @@ |
#include "storage/browser/database/vfs_backend.h" |
#include "third_party/WebKit/public/platform/WebData.h" |
#include "third_party/WebKit/public/platform/WebFileSystem.h" |
+#include "third_party/WebKit/public/platform/WebPluginListBuilder.h" |
#include "third_party/WebKit/public/platform/WebStorageArea.h" |
#include "third_party/WebKit/public/platform/WebStorageNamespace.h" |
#include "third_party/WebKit/public/platform/WebString.h" |
@@ -380,4 +381,10 @@ void TestBlinkWebUnitTestSupport::exitRunLoop() { |
base::MessageLoop::current()->Quit(); |
} |
+void TestBlinkWebUnitTestSupport::getPluginList( |
+ bool refresh, blink::WebPluginListBuilder* builder) { |
+ builder->addPlugin("pdf", "pdf", "pdf-files"); |
+ builder->addMediaTypeToLastPlugin("application/pdf", "pdf"); |
+} |
+ |
} // namespace content |