summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/Tools/DumpRenderTree/TestNetscapePlugIn/Tests/SlowNPPNew.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/WebKit/Tools/DumpRenderTree/TestNetscapePlugIn/Tests/SlowNPPNew.cpp')
-rw-r--r--third_party/WebKit/Tools/DumpRenderTree/TestNetscapePlugIn/Tests/SlowNPPNew.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/third_party/WebKit/Tools/DumpRenderTree/TestNetscapePlugIn/Tests/SlowNPPNew.cpp b/third_party/WebKit/Tools/DumpRenderTree/TestNetscapePlugIn/Tests/SlowNPPNew.cpp
index 8c80d55..8638c78 100644
--- a/third_party/WebKit/Tools/DumpRenderTree/TestNetscapePlugIn/Tests/SlowNPPNew.cpp
+++ b/third_party/WebKit/Tools/DumpRenderTree/TestNetscapePlugIn/Tests/SlowNPPNew.cpp
@@ -35,7 +35,7 @@ public:
: PluginTest(npp, identifier)
{
}
-
+
private:
class PluginObject : public Object<PluginObject> {
public:
@@ -56,24 +56,24 @@ private:
{
static const char* message = "My name is ";
char* propertyString = pluginTest()->NPN_UTF8FromIdentifier(propertyName);
-
+
int bufferLength = strlen(propertyString) + strlen(message) + 1;
char* resultBuffer = static_cast<char*>(pluginTest()->NPN_MemAlloc(bufferLength));
snprintf(resultBuffer, bufferLength, "%s%s", message, propertyString);
-
+
STRINGZ_TO_NPVARIANT(resultBuffer, *result);
return true;
}
};
-
+
virtual NPError NPP_GetValue(NPPVariable variable, void *value)
{
if (variable != NPPVpluginScriptableNPObject)
return NPERR_GENERIC_ERROR;
-
+
*(NPObject**)value = PluginObject::create(this);
-
+
return NPERR_NO_ERROR;
}