Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(597)

Side by Side Diff: gpu/gpu_plugin/gpu_plugin_unittest.cc

Issue 436017: Branched gpu process and command buffer code into Chrome tree. Fixed up paths... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « gpu/gpu_plugin/gpu_plugin_object_unittest.cc ('k') | gpu/np_utils/np_browser.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « gpu/gpu_plugin/gpu_plugin_object_unittest.cc ('k') | gpu/np_utils/np_browser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698