OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 "gpu/gpu_plugin/gpu_plugin.h" | 5 #include "gpu/gpu_plugin/gpu_plugin.h" |
6 #include "gpu/gpu_plugin/gpu_plugin_object.h" | 6 #include "gpu/gpu_plugin/gpu_plugin_object.h" |
7 #include "gpu/np_utils/np_object_mock.h" | 7 #include "gpu/np_utils/np_object_mock.h" |
8 #include "gpu/np_utils/np_plugin_object_factory_mock.h" | 8 #include "gpu/np_utils/np_plugin_object_factory_mock.h" |
9 #include "gpu/np_utils/np_plugin_object_mock.h" | 9 #include "gpu/np_utils/np_plugin_object_mock.h" |
10 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
11 | |
12 #if defined(O3D_IN_CHROME) | |
13 #include "webkit/glue/plugins/nphostapi.h" | 11 #include "webkit/glue/plugins/nphostapi.h" |
14 #else | |
15 #include "o3d/third_party/npapi/include/npfunctions.h" | |
16 #endif | |
17 | 12 |
18 #if defined(OS_LINUX) | 13 #if defined(OS_LINUX) |
19 #define INITIALIZE_PLUGIN_FUNCS , &plugin_funcs_ | 14 #define INITIALIZE_PLUGIN_FUNCS , &plugin_funcs_ |
20 #else | 15 #else |
21 #define INITIALIZE_PLUGIN_FUNCS | 16 #define INITIALIZE_PLUGIN_FUNCS |
22 #endif | 17 #endif |
23 | 18 |
24 using np_utils::MockPluginObject; | 19 using np_utils::MockPluginObject; |
25 using np_utils::PluginObject; | 20 using np_utils::PluginObject; |
26 using testing::_; | 21 using testing::_; |
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
298 int* result = NULL; | 293 int* result = NULL; |
299 EXPECT_EQ(NPERR_GENERIC_ERROR, plugin_funcs_.getvalue( | 294 EXPECT_EQ(NPERR_GENERIC_ERROR, plugin_funcs_.getvalue( |
300 &npp_, NPPVjavaClass, &result)); | 295 &npp_, NPPVjavaClass, &result)); |
301 | 296 |
302 EXPECT_EQ(NPERR_NO_ERROR, plugin_funcs_.destroy(&npp_, NULL)); | 297 EXPECT_EQ(NPERR_NO_ERROR, plugin_funcs_.destroy(&npp_, NULL)); |
303 | 298 |
304 gpu_plugin::NP_Shutdown(); | 299 gpu_plugin::NP_Shutdown(); |
305 } | 300 } |
306 | 301 |
307 } // namespace gpu_plugin | 302 } // namespace gpu_plugin |
OLD | NEW |