WebKit roll 98705:98715
[chromium-blink-merge.git] / ppapi / tests / test_instance_deprecated.h
blobfdd71742d18dde4f68c139e719a18544c5733a53
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_
8 #include <string>
9 #include <vector>
11 #include "ppapi/tests/test_case.h"
13 class TestInstance : public TestCase {
14 public:
15 TestInstance(TestingInstance* instance);
17 // TestCase implementation.
18 virtual bool Init();
19 virtual void RunTest();
21 void set_string(const std::string& s) { string_ = s; }
23 protected:
24 // Test case protected overrides.
25 virtual pp::deprecated::ScriptableObject* CreateTestObject();
27 private:
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.
32 std::string string_;
35 #endif // PPAPI_TESTS_TEST_INSTANCE_H_