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

Unified Diff: content/browser/browser_plugin/browser_plugin_host_browsertest.cc

Issue 65813002: mac: Prepare most test code for -Wunused-functions too. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 1 month 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/browser/browser_plugin/browser_plugin_host_browsertest.cc
diff --git a/content/browser/browser_plugin/browser_plugin_host_browsertest.cc b/content/browser/browser_plugin/browser_plugin_host_browsertest.cc
index d4b9a3fefd5b78b6143f9c8785c0ae094a3c4f3a..417d916e58fef857d1b339e0f8709cd935dda2f6 100644
--- a/content/browser/browser_plugin/browser_plugin_host_browsertest.cc
+++ b/content/browser/browser_plugin/browser_plugin_host_browsertest.cc
@@ -45,10 +45,9 @@ using content::BrowserPluginGuest;
using content::BrowserPluginHostFactory;
using content::WebContentsImpl;
-namespace {
-
const char kHTMLForGuest[] =
"data:text/html,<html><body>hello world</body></html>";
+
const char kHTMLForGuestTouchHandler[] =
"data:text/html,<html><body><div id=\"touch\">With touch</div></body>"
"<script type=\"text/javascript\">"
@@ -62,11 +61,7 @@ const char kHTMLForGuestTouchHandler[] =
" handler);"
"}"
"</script></html>";
-const char kHTMLForGuestWithTitle[] =
- "data:text/html,"
- "<html><head><title>%s</title></head>"
- "<body>hello world</body>"
- "</html>";
+
const char kHTMLForGuestAcceptDrag[] =
"data:text/html,<html><body>"
"<script>"
@@ -78,6 +73,7 @@ const char kHTMLForGuestAcceptDrag[] =
" ondrop=\"dropped();\">"
"</textarea>"
"</body></html>";
+
const char kHTMLForGuestWithSize[] =
"data:text/html,"
"<html>"
@@ -86,12 +82,6 @@ const char kHTMLForGuestWithSize[] =
"</body>"
"</html>";
-std::string GetHTMLForGuestWithTitle(const std::string& title) {
- return base::StringPrintf(kHTMLForGuestWithTitle, title.c_str());
-}
-
-} // namespace
-
namespace content {
// Test factory for creating test instances of BrowserPluginEmbedder and

Powered by Google App Engine
This is Rietveld 408576698