test_memory.h 780 B

1234567891011121314151617181920212223242526272829
  1. // Copyright (c) 2012 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.
  4. #ifndef PPAPI_TESTS_TEST_MEMORY_H_
  5. #define PPAPI_TESTS_TEST_MEMORY_H_
  6. #include <string>
  7. #include "ppapi/c/dev/ppb_memory_dev.h"
  8. #include "ppapi/tests/test_case.h"
  9. class TestMemory : public TestCase {
  10. public:
  11. explicit TestMemory(TestingInstance* instance) : TestCase(instance) {}
  12. private:
  13. // TestCase implementation.
  14. virtual bool Init();
  15. virtual void RunTests(const std::string& filter);
  16. std::string TestMemAlloc();
  17. std::string TestNullMemFree();
  18. // Used by the tests that access the C API directly.
  19. const PPB_Memory_Dev* memory_dev_interface_;
  20. };
  21. #endif // PPAPI_TESTS_TEST_MEMORY_H_