1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef PPAPI_TESTS_TEST_INSTANCE_H_
6 #define PPAPI_TESTS_TEST_INSTANCE_H_
11 #include "ppapi/tests/test_case.h"
13 class TestInstance
: public TestCase
{
15 TestInstance(TestingInstance
* instance
);
17 // TestCase implementation.
19 virtual void RunTest();
21 void set_string(const std::string
& s
) { string_
= s
; }
24 // Test case protected overrides.
25 virtual pp::deprecated::ScriptableObject
* CreateTestObject();
28 std::string
TestExecuteScript();
30 // Value written by set_string which is called by the ScriptableObject. This
31 // allows us to keep track of what was called.
35 #endif // PPAPI_TESTS_TEST_INSTANCE_H_