OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2006-2009 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 |
| 5 #ifndef WEBKIT_GLUE_PLUGINS_TEST_PLUGIN_THREAD_ASYNC_CALL_TEST_H |
| 6 #define WEBKIT_GLUE_PLUGINS_TEST_PLUGIN_THREAD_ASYNC_CALL_TEST_H |
| 7 |
| 8 #include <vector> |
| 9 |
| 10 #include "webkit/glue/plugins/test/plugin_test.h" |
| 11 |
| 12 namespace NPAPIClient { |
| 13 |
| 14 // This class tests scheduling and unscheduling of async callbacks using |
| 15 // NPN_PluginThreadAsyncCall. |
| 16 class PluginThreadAsyncCallTest : public PluginTest { |
| 17 public: |
| 18 PluginThreadAsyncCallTest(NPP id, NPNetscapeFuncs *host_functions); |
| 19 |
| 20 virtual NPError New(uint16 mode, int16 argc, const char* argn[], |
| 21 const char* argv[], NPSavedData* saved); |
| 22 |
| 23 virtual NPError Destroy(); |
| 24 |
| 25 void OnCallSucceeded(); |
| 26 void OnCallCompleted(); |
| 27 }; |
| 28 |
| 29 } // namespace NPAPIClient |
| 30 |
| 31 #endif // WEBKIT_GLUE_PLUGINS_TEST_PLUGIN_THREAD_ASYNC_CALL_TEST_H |
OLD | NEW |