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

Unified Diff: content/shell/tools/plugin/Tests/FormValue.cpp

Issue 1852523003: Remove NPAPI test plugin (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fix_last_plugin_layout_tests
Patch Set: fix isolate Created 4 years, 9 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/tools/plugin/Tests/FormValue.cpp
diff --git a/content/shell/tools/plugin/Tests/FormValue.cpp b/content/shell/tools/plugin/Tests/FormValue.cpp
deleted file mode 100644
index e6322542868822bc20d8a81d9dd7e57ab161234d..0000000000000000000000000000000000000000
--- a/content/shell/tools/plugin/Tests/FormValue.cpp
+++ /dev/null
@@ -1,32 +0,0 @@
-// 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 "PluginTest.h"
-#include <string.h>
-
-extern NPNetscapeFuncs *browser;
-
-class FormValue : public PluginTest {
-public:
- FormValue(NPP npp, const std::string& identifier)
- : PluginTest(npp, identifier)
- {
- }
- NPError NPP_GetValue(NPPVariable, void*) override;
-};
-
-NPError FormValue::NPP_GetValue(NPPVariable variable, void *value)
-{
- if (variable == NPPVformValue) {
- static const char formValueText[] = "Plugin form value";
- *((void**)value) = browser->memalloc(sizeof(formValueText));
- if (!*((void**)value))
- return NPERR_OUT_OF_MEMORY_ERROR;
- strncpy(*((char**)value), formValueText, sizeof(formValueText));
- return NPERR_NO_ERROR;
- }
- return NPERR_GENERIC_ERROR;
-}
-
-static PluginTest::Register<FormValue> formValue("form-value");

Powered by Google App Engine
This is Rietveld 408576698