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

Unified Diff: content/shell/renderer/test_runner/test_plugin_placeholder.cc

Issue 1158063002: Add plugins::TestPluginPlaceholder class and allow its use in Blink layout tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@pluginfix
Patch Set: Created 5 years, 7 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
Index: content/shell/renderer/test_runner/test_plugin_placeholder.cc
diff --git a/content/shell/renderer/test_runner/test_plugin_placeholder.cc b/content/shell/renderer/test_runner/test_plugin_placeholder.cc
new file mode 100644
index 0000000000000000000000000000000000000000..4816fd45f6665c4c54f10d8cbbe4f559db5f6e5e
--- /dev/null
+++ b/content/shell/renderer/test_runner/test_plugin_placeholder.cc
@@ -0,0 +1,20 @@
+// Copyright 2015 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 "content/shell/renderer/test_runner/test_plugin_placeholder.h"
+
+namespace content {
+
+TestPluginPlaceholder::TestPluginPlaceholder(
+ blink::WebLocalFrame* frame,
+ const blink::WebPluginParams& params)
+ : PluginPlaceholder(nullptr,
+ frame,
+ params,
+ "<div>Test content</div>",
+ GURL("http://www.test.com")) {
+ LOG(ERROR) << "TestPluginPlaceholder::TestPluginPlaceholder";
tommycli 2015/05/28 21:13:33 Stray log message.
chrishtr 2015/05/28 21:16:52 Fixed.
+}
+
+} // namespace content

Powered by Google App Engine
This is Rietveld 408576698