| Index: Tools/DumpRenderTree/TestNetscapePlugIn/Tests/SlowNPPNew.cpp
|
| diff --git a/Tools/DumpRenderTree/TestNetscapePlugIn/Tests/SlowNPPNew.cpp b/Tools/DumpRenderTree/TestNetscapePlugIn/Tests/SlowNPPNew.cpp
|
| index 8c80d55a5cfed861aad3e983923e2002bdb61423..8638c78ae43798a679a4be5baf6866b8fbf959b5 100644
|
| --- a/Tools/DumpRenderTree/TestNetscapePlugIn/Tests/SlowNPPNew.cpp
|
| +++ b/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;
|
| }
|
|
|
|
|