Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(37)

Unified Diff: content/test/test_blink_web_unit_test_support.cc

Issue 1167063003: Allow application/pdf mime type plugins in Blink unit tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/test/test_blink_web_unit_test_support.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « content/test/test_blink_web_unit_test_support.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698