OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:pluginTest
(Results
1 - 10
of
10
) sorted by null
/external/chromium_org/third_party/WebKit/Source/testing/plugin/Tests/
NPRuntimeRemoveProperty.cpp
26
#include "
PluginTest
.h"
32
class NPRuntimeRemoveProperty : public
PluginTest
{
35
:
PluginTest
(npp, identifier)
62
if (
pluginTest
()->NPN_IdentifierIsString(m_lastRemovedProperty)) {
63
char* lastRemovedPropertyName =
pluginTest
()->NPN_UTF8FromIdentifier(m_lastRemovedProperty);
69
int intIdentifier =
pluginTest
()->NPN_IntFromIdentifier(m_lastRemovedProperty);
94
pluginTest
()->NPN_ReleaseObject(m_testObject);
123
propertyName =
pluginTest
()->NPN_GetStringIdentifier(propertyNameString.c_str());
126
propertyName =
pluginTest
()->NPN_GetIntIdentifier(number);
129
pluginTest
()->NPN_RemoveProperty(NPVARIANT_TO_OBJECT(arguments[0]), propertyName)
[
all
...]
NPDeallocateCalledBeforeNPShutdown.cpp
26
#include "
PluginTest
.h"
32
class NPDeallocateCalledBeforeNPShutdown : public
PluginTest
{
35
:
PluginTest
(npp, identifier)
55
return propertyName ==
pluginTest
()->NPN_GetStringIdentifier("testObject");
60
if (propertyName !=
pluginTest
()->NPN_GetStringIdentifier("testObject"))
63
NPObject* testObject = TestObject::create(
pluginTest
());
93
static
PluginTest
::Register<NPDeallocateCalledBeforeNPShutdown> npRuntimeObjectFromDestroyedPlugin("np-deallocate-called-before-np-shutdown");
NPRuntimeObjectFromDestroyedPlugin.cpp
26
#include "
PluginTest
.h"
30
class NPRuntimeObjectFromDestroyedPlugin : public
PluginTest
{
33
:
PluginTest
(npp, identifier)
57
return
pluginTest
()->executeScript(&NPVARIANT_TO_STRING(args[0]), result);
67
if (propertyName !=
pluginTest
()->NPN_GetStringIdentifier("testObject"))
70
NPObject* testObject = TestObject::create(
pluginTest
());
87
static
PluginTest
::Register<NPRuntimeObjectFromDestroyedPlugin> npRuntimeObjectFromDestroyedPlugin("npruntime-object-from-destroyed-plugin");
PluginScriptableObjectOverridesAllProperties.cpp
26
#include "
PluginTest
.h"
33
class PluginScriptableObjectOverridesAllProperties : public
PluginTest
{
36
:
PluginTest
(npp, identifier)
59
char* propertyString =
pluginTest
()->NPN_UTF8FromIdentifier(propertyName);
62
char* resultBuffer = static_cast<char*>(
pluginTest
()->NPN_MemAlloc(bufferLength));
83
static
PluginTest
::Register<PluginScriptableObjectOverridesAllProperties> pluginScriptableObjectOverridesAllProperties("plugin-scriptable-object-overrides-all-properties");
SlowNPPNew.cpp
26
#include "
PluginTest
.h"
32
class SlowNPPNew : public
PluginTest
{
35
:
PluginTest
(npp, identifier)
58
char* propertyString =
pluginTest
()->NPN_UTF8FromIdentifier(propertyName);
61
char* resultBuffer = static_cast<char*>(
pluginTest
()->NPN_MemAlloc(bufferLength));
87
static
PluginTest
::Register<SlowNPPNew> slowNPPNew("slow-npp-new");
NPPSetWindowCalledDuringDestruction.cpp
26
#include "
PluginTest
.h"
34
class NPPSetWindowCalledDuringDestruction : public
PluginTest
{
55
static
PluginTest
::Register<NPPSetWindowCalledDuringDestruction> registrar("npp-set-window-called-during-destruction");
58
:
PluginTest
(npp, identifier)
117
return methodName ==
pluginTest
()->NPN_GetStringIdentifier("setWillBeDestroyed");
122
assert(identifier ==
pluginTest
()->NPN_GetStringIdentifier("setWillBeDestroyed"));
123
static_cast<NPPSetWindowCalledDuringDestruction*>(
pluginTest
())->setWillBeDestroyed();
/external/chromium_org/third_party/WebKit/Source/testing/plugin/
PluginTest.h
53
class
PluginTest
{
55
static
PluginTest
* create(NPP, const std::string& identifier);
56
virtual ~
PluginTest
();
115
static
PluginTest
* create(NPP npp, const std::string& identifier)
122
PluginTest
(NPP npp, const std::string& identifier);
137
static NPObject* create(
PluginTest
*
pluginTest
)
139
Object* object = static_cast<Object*>(
pluginTest
->NPN_CreateObject(npClass()));
141
object->m_pluginTest =
pluginTest
;
185
return
pluginTest
()->NPN_GetStringIdentifier(value) == identifier
[
all
...]
PluginObject.h
32
class
PluginTest
;
40
PluginTest
*
pluginTest
;
main.cpp
28
#include "
PluginTest
.h"
139
PluginTest
::NP_Shutdown();
299
obj->
pluginTest
=
PluginTest
::create(instance, testIdentifier);
301
if (!obj->
pluginTest
) {
309
return obj->
pluginTest
->NPP_New(pluginType, mode, argc, argn, argv, saved);
348
if (obj->
pluginTest
)
349
obj->
pluginTest
->NPP_Destroy(save);
383
return obj->
pluginTest
->NPP_SetWindow(window);
415
return obj->
pluginTest
->NPP_NewStream(type, stream, seekable, stype)
[
all
...]
PluginObject.cpp
30
#include "
PluginTest
.h"
[
all
...]
Completed in 2403 milliseconds