HomeSort by relevance Sort by last modified time
    Searched refs:pluginTest (Results 1 - 10 of 10) sorted by null

  /external/chromium_org/content/shell/tools/plugin/Tests/
NPRuntimeRemoveProperty.cpp 30 #include "PluginTest.h"
36 class NPRuntimeRemoveProperty : public PluginTest {
39 : PluginTest(npp, identifier)
66 if (pluginTest()->NPN_IdentifierIsString(m_lastRemovedProperty)) {
67 char* lastRemovedPropertyName = pluginTest()->NPN_UTF8FromIdentifier(m_lastRemovedProperty);
73 int intIdentifier = pluginTest()->NPN_IntFromIdentifier(m_lastRemovedProperty);
98 pluginTest()->NPN_ReleaseObject(m_testObject);
127 propertyName = pluginTest()->NPN_GetStringIdentifier(propertyNameString.c_str());
130 propertyName = pluginTest()->NPN_GetIntIdentifier(number);
133 pluginTest()->NPN_RemoveProperty(NPVARIANT_TO_OBJECT(arguments[0]), propertyName)
    [all...]
NPDeallocateCalledBeforeNPShutdown.cpp 30 #include "PluginTest.h"
36 class NPDeallocateCalledBeforeNPShutdown : public PluginTest {
39 : PluginTest(npp, identifier)
59 return propertyName == pluginTest()->NPN_GetStringIdentifier("testObject");
64 if (propertyName != pluginTest()->NPN_GetStringIdentifier("testObject"))
67 NPObject* testObject = TestObject::create(pluginTest());
101 static PluginTest::Register<NPDeallocateCalledBeforeNPShutdown> npRuntimeObjectFromDestroyedPlugin("np-deallocate-called-before-np-shutdown");
NPRuntimeObjectFromDestroyedPlugin.cpp 30 #include "PluginTest.h"
34 class NPRuntimeObjectFromDestroyedPlugin : public PluginTest {
37 : PluginTest(npp, identifier)
61 return pluginTest()->executeScript(&NPVARIANT_TO_STRING(args[0]), result);
71 if (propertyName != pluginTest()->NPN_GetStringIdentifier("testObject"))
74 NPObject* testObject = TestObject::create(pluginTest());
91 static PluginTest::Register<NPRuntimeObjectFromDestroyedPlugin> npRuntimeObjectFromDestroyedPlugin("npruntime-object-from-destroyed-plugin");
PluginScriptableObjectOverridesAllProperties.cpp 30 #include "PluginTest.h"
37 class PluginScriptableObjectOverridesAllProperties : public PluginTest {
40 : PluginTest(npp, identifier)
63 char* propertyString = pluginTest()->NPN_UTF8FromIdentifier(propertyName);
66 char* resultBuffer = static_cast<char*>(pluginTest()->NPN_MemAlloc(bufferLength));
87 static PluginTest::Register<PluginScriptableObjectOverridesAllProperties> pluginScriptableObjectOverridesAllProperties("plugin-scriptable-object-overrides-all-properties");
SlowNPPNew.cpp 30 #include "PluginTest.h"
36 class SlowNPPNew : public PluginTest {
39 : PluginTest(npp, identifier)
62 char* propertyString = pluginTest()->NPN_UTF8FromIdentifier(propertyName);
65 char* resultBuffer = static_cast<char*>(pluginTest()->NPN_MemAlloc(bufferLength));
91 static PluginTest::Register<SlowNPPNew> slowNPPNew("slow-npp-new");
NPPSetWindowCalledDuringDestruction.cpp 30 #include "PluginTest.h"
38 class NPPSetWindowCalledDuringDestruction : public PluginTest {
59 static PluginTest::Register<NPPSetWindowCalledDuringDestruction> registrar("npp-set-window-called-during-destruction");
62 : PluginTest(npp, identifier)
121 return methodName == pluginTest()->NPN_GetStringIdentifier("setWillBeDestroyed");
126 assert(identifier == pluginTest()->NPN_GetStringIdentifier("setWillBeDestroyed"));
127 static_cast<NPPSetWindowCalledDuringDestruction*>(pluginTest())->setWillBeDestroyed();
  /external/chromium_org/content/shell/tools/plugin/
PluginTest.h 69 class PluginTest {
71 static PluginTest* create(NPP, const std::string& identifier);
72 virtual ~PluginTest();
153 static PluginTest* create(NPP npp, const std::string& identifier) {
159 PluginTest(NPP npp, const std::string& identifier);
176 static NPObject* create(PluginTest* pluginTest) {
178 static_cast<Object*>(pluginTest->NPN_CreateObject(npClass()));
180 object->m_pluginTest = pluginTest;
220 return pluginTest()->NPN_GetStringIdentifier(value) == identifier
    [all...]
PluginObject.h 36 class PluginTest;
44 PluginTest* pluginTest;
main.cpp 32 #include "PluginTest.h"
144 PluginTest::NP_Shutdown();
307 obj->pluginTest = PluginTest::create(instance, testIdentifier);
309 if (!obj->pluginTest) {
317 return obj->pluginTest->NPP_New(pluginType, mode, argc, argn, argv, saved);
359 if (obj->pluginTest)
360 obj->pluginTest->NPP_Destroy(save);
394 return obj->pluginTest->NPP_SetWindow(window);
426 return obj->pluginTest->NPP_NewStream(type, stream, seekable, stype)
    [all...]
PluginObject.cpp 34 #include "PluginTest.h"
    [all...]

Completed in 1599 milliseconds