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.
5 #ifndef PAPPI_TESTS_TEST_FLASH_MESSAGE_LOOP_H_
6 #define PAPPI_TESTS_TEST_FLASH_MESSAGE_LOOP_H_
10 #include "ppapi/c/pp_stdint.h"
11 #include "ppapi/tests/test_case.h"
12 #include "ppapi/utility/completion_callback_factory.h"
20 class TestFlashMessageLoop
: public TestCase
{
22 explicit TestFlashMessageLoop(TestingInstance
* instance
);
23 virtual ~TestFlashMessageLoop();
25 // TestCase implementation.
26 virtual void RunTests(const std::string
& filter
);
29 std::string
TestBasics();
30 std::string
TestRunWithoutQuit();
32 void QuitMessageLoopTask(int32_t unused
);
33 void DestroyMessageLoopResourceTask(int32_t unused
);
35 pp::flash::MessageLoop
* message_loop_
;
36 pp::CompletionCallbackFactory
<TestFlashMessageLoop
> callback_factory_
;
39 #endif // PAPPI_TESTS_TEST_FLASH_MESSAGE_LOOP_H_