#ifndef PPAPI_TESTS_TEST_INSTANCE_H_
#define PPAPI_TESTS_TEST_INSTANCE_H_
#include <string>
#include <vector>
#include "ppapi/tests/test_case.h"
class TestInstance : public TestCase {
public:
TestInstance(TestingInstance* instance);
virtual ~TestInstance();
virtual bool Init();
virtual void RunTests(const std::string& filter);
void set_string(const std::string& s) { string_ = s; }
void LeakReferenceAndIgnore(const pp::Var& leaked);
protected:
virtual pp::deprecated::ScriptableObject* CreateTestObject();
private:
std::string TestExecuteScript();
std::string TestRecursiveObjects();
std::string TestLeakedObjectDestructors();
std::string TestSetupExecuteScriptAtInstanceShutdown();
std::string TestExecuteScriptAtInstanceShutdown();
std::string string_;
};
#endif