1 // Copyright (c) 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.
5 #ifndef CONTENT_TEST_PLUGIN_PLUGIN_CREATE_INSTANCE_IN_PAINT_H_
6 #define CONTENT_TEST_PLUGIN_PLUGIN_CREATE_INSTANCE_IN_PAINT_H_
8 #include "content/test/plugin/plugin_test.h"
10 namespace NPAPIClient
{
12 // This class tests that creating a new plugin via script while handling a
13 // Windows message doesn't cause a deadlock.
14 class CreateInstanceInPaintTest
: public PluginTest
{
17 CreateInstanceInPaintTest(NPP id
, NPNetscapeFuncs
*host_functions
);
21 virtual NPError
SetWindow(NPWindow
* pNPWindow
);
24 static LRESULT CALLBACK
WindowProc(
25 HWND window
, UINT message
, WPARAM wparam
, LPARAM lparam
);
31 } // namespace NPAPIClient
33 #endif // CONTENT_TEST_PLUGIN_PLUGIN_CREATE_INSTANCE_IN_PAINT_H_