| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #include "webkit/plugins/npapi/test/plugin_thread_async_call_test.h" | 5 #include "webkit/plugins/npapi/test/plugin_thread_async_call_test.h" |
| 6 | 6 |
| 7 #include "base/at_exit.h" | 7 #include "base/at_exit.h" |
| 8 #include "base/message_loop.h" | 8 #include "base/message_loop.h" |
| 9 #include "base/thread.h" | 9 #include "base/threading/thread.h" |
| 10 #include "webkit/plugins/npapi/test/plugin_client.h" | 10 #include "webkit/plugins/npapi/test/plugin_client.h" |
| 11 | 11 |
| 12 namespace NPAPIClient { | 12 namespace NPAPIClient { |
| 13 | 13 |
| 14 namespace { | 14 namespace { |
| 15 | 15 |
| 16 // There are two plugin instances in this test. The long lived instance is used | 16 // There are two plugin instances in this test. The long lived instance is used |
| 17 // for reporting errors and signalling test completion. The short lived one is | 17 // for reporting errors and signalling test completion. The short lived one is |
| 18 // used to verify that async callbacks are not invoked after NPP_Destroy. | 18 // used to verify that async callbacks are not invoked after NPP_Destroy. |
| 19 PluginThreadAsyncCallTest* g_short_lived_instance; | 19 PluginThreadAsyncCallTest* g_short_lived_instance; |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 } | 108 } |
| 109 | 109 |
| 110 return NPERR_NO_ERROR; | 110 return NPERR_NO_ERROR; |
| 111 } | 111 } |
| 112 | 112 |
| 113 void PluginThreadAsyncCallTest::OnCallCompleted() { | 113 void PluginThreadAsyncCallTest::OnCallCompleted() { |
| 114 SignalTestCompleted(); | 114 SignalTestCompleted(); |
| 115 } | 115 } |
| 116 | 116 |
| 117 } // namespace NPAPIClient | 117 } // namespace NPAPIClient |
| OLD | NEW |