test_video_decoder_dev.h 883 B

1234567891011121314151617181920212223242526272829303132
  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_VIDEO_DECODER_DEV_H_
  5. #define PPAPI_TESTS_TEST_VIDEO_DECODER_DEV_H_
  6. #include <string>
  7. #include "ppapi/c/dev/ppb_video_decoder_dev.h"
  8. #include "ppapi/c/pp_stdint.h"
  9. #include "ppapi/tests/test_case.h"
  10. class TestVideoDecoderDev : public TestCase {
  11. public:
  12. explicit TestVideoDecoderDev(TestingInstance* instance)
  13. : TestCase(instance) {}
  14. // TestCase implementation.
  15. virtual bool Init();
  16. virtual void RunTests(const std::string& filter);
  17. void QuitMessageLoop();
  18. private:
  19. std::string TestCreateFailure();
  20. // Used by the tests that access the C API directly.
  21. const PPB_VideoDecoder_Dev* video_decoder_interface_;
  22. };
  23. #endif // PPAPI_TESTS_TEST_VIDEO_DECODER_DEV_H_