OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef WEBKIT_PLUGINS_NPAPI_TEST_PLUGIN_NPOBJECT_LIFETIME_TEST_H_ | 5 #ifndef CONTENT_TEST_PLUGIN_PLUGIN_NPOBJECT_LIFETIME_TEST_H_ |
6 #define WEBKIT_PLUGINS_NPAPI_TEST_PLUGIN_NPOBJECT_LIFETIME_TEST_H_ | 6 #define CONTENT_TEST_PLUGIN_PLUGIN_NPOBJECT_LIFETIME_TEST_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
10 #include "webkit/plugins/npapi/test/plugin_test.h" | 10 #include "content/test/plugin/plugin_test.h" |
11 | 11 |
12 namespace NPAPIClient { | 12 namespace NPAPIClient { |
13 | 13 |
14 // The NPObjectLifeTime class tests the case where a plugin has an NPObject | 14 // The NPObjectLifeTime class tests the case where a plugin has an NPObject |
15 // which points to a different plugin instance on a different frame in the | 15 // which points to a different plugin instance on a different frame in the |
16 // page and whether refcounts on this npobject are valid when the source frame | 16 // page and whether refcounts on this npobject are valid when the source frame |
17 // is destroyed. | 17 // is destroyed. |
18 class NPObjectLifetimeTest : public PluginTest { | 18 class NPObjectLifetimeTest : public PluginTest { |
19 public: | 19 public: |
20 // Constructor. | 20 // Constructor. |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 #endif | 75 #endif |
76 | 76 |
77 private: | 77 private: |
78 static NPObjectDeletePluginInNPN_Evaluate* g_npn_evaluate_test_instance_; | 78 static NPObjectDeletePluginInNPN_Evaluate* g_npn_evaluate_test_instance_; |
79 | 79 |
80 DISALLOW_IMPLICIT_CONSTRUCTORS(NPObjectDeletePluginInNPN_Evaluate); | 80 DISALLOW_IMPLICIT_CONSTRUCTORS(NPObjectDeletePluginInNPN_Evaluate); |
81 }; | 81 }; |
82 | 82 |
83 } // namespace NPAPIClient | 83 } // namespace NPAPIClient |
84 | 84 |
85 #endif // WEBKIT_PLUGINS_NPAPI_TEST_PLUGIN_NPOBJECT_LIFETIME_TEST_H_ | 85 #endif // CONTENT_TEST_PLUGIN_PLUGIN_NPOBJECT_LIFETIME_TEST_H_ |
OLD | NEW |