[email protected] | 25651387 | 2012-01-05 15:41:52 | [diff] [blame] | 1 | // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
[email protected] | 14710e22 | 2011-07-05 21:37:00 | [diff] [blame] | 2 | // Use of this source code is governed by a BSD-style license that can be |
3 | // found in the LICENSE file. | ||||
4 | |||||
5 | #ifndef PPAPI_TEST_TEST_MEMORY_H_ | ||||
6 | #define PPAPI_TEST_TEST_MEMORY_H_ | ||||
7 | |||||
8 | #include <string> | ||||
9 | |||||
[email protected] | 25651387 | 2012-01-05 15:41:52 | [diff] [blame] | 10 | #include "ppapi/c/dev/ppb_memory_dev.h" |
[email protected] | 14710e22 | 2011-07-05 21:37:00 | [diff] [blame] | 11 | #include "ppapi/tests/test_case.h" |
12 | |||||
[email protected] | 14710e22 | 2011-07-05 21:37:00 | [diff] [blame] | 13 | class TestMemory : public TestCase { |
14 | public: | ||||
15 | explicit TestMemory(TestingInstance* instance) : TestCase(instance) {} | ||||
16 | |||||
17 | private: | ||||
18 | // TestCase implementation. | ||||
19 | virtual bool Init(); | ||||
[email protected] | 2622d6b | 2011-11-16 04:28:02 | [diff] [blame] | 20 | virtual void RunTests(const std::string& filter); |
[email protected] | 14710e22 | 2011-07-05 21:37:00 | [diff] [blame] | 21 | |
22 | std::string TestMemAlloc(); | ||||
23 | std::string TestNullMemFree(); | ||||
24 | |||||
25 | // Used by the tests that access the C API directly. | ||||
26 | const PPB_Memory_Dev* memory_dev_interface_; | ||||
27 | }; | ||||
28 | |||||
29 | #endif // PPAPI_TEST_TEST_VAR_H_ |