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/command_buffer/common/command_buffer_mock.h" | 5 #include "gpu/command_buffer/common/command_buffer_mock.h" |
6 #include "gpu/gpu_plugin/gpu_plugin_object.h" | 6 #include "gpu/gpu_plugin/gpu_plugin_object.h" |
7 #include "gpu/command_buffer/service/gpu_processor_mock.h" | 7 #include "gpu/command_buffer/service/gpu_processor_mock.h" |
8 #include "gpu/np_utils/np_browser_mock.h" | 8 #include "gpu/np_utils/np_browser_mock.h" |
9 #include "gpu/np_utils/dynamic_np_object.h" | 9 #include "gpu/np_utils/dynamic_np_object.h" |
10 #include "gpu/np_utils/np_object_mock.h" | 10 #include "gpu/np_utils/np_object_mock.h" |
11 #include "gpu/np_utils/np_object_pointer.h" | 11 #include "gpu/np_utils/np_object_pointer.h" |
12 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
13 #include "testing/gmock/include/gmock/gmock.h" | 13 #include "testing/gmock/include/gmock/gmock.h" |
14 | |
15 #if defined(O3D_IN_CHROME) | |
16 #include "webkit/glue/plugins/nphostapi.h" | 14 #include "webkit/glue/plugins/nphostapi.h" |
17 #else | |
18 #include "o3d/third_party/npapi/include/npfunctions.h" | |
19 #endif | |
20 | 15 |
21 using ::base::SharedMemory; | 16 using ::base::SharedMemory; |
22 using command_buffer::GPUProcessor; | 17 using command_buffer::GPUProcessor; |
23 using command_buffer::MockCommandBuffer; | 18 using command_buffer::MockCommandBuffer; |
24 using command_buffer::MockGPUProcessor; | 19 using command_buffer::MockGPUProcessor; |
25 using np_utils::MockNPBrowser; | 20 using np_utils::MockNPBrowser; |
26 using np_utils::NPBrowser; | 21 using np_utils::NPBrowser; |
27 using np_utils::NPObjectPointer; | 22 using np_utils::NPObjectPointer; |
28 using testing::_; | 23 using testing::_; |
29 using testing::DoAll; | 24 using testing::DoAll; |
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
315 window.y = 10; | 310 window.y = 10; |
316 window.width = 100; | 311 window.width = 100; |
317 window.height = 200; | 312 window.height = 200; |
318 | 313 |
319 plugin_object_->SetWindow(&window); | 314 plugin_object_->SetWindow(&window); |
320 | 315 |
321 EXPECT_EQ(NPERR_NO_ERROR, plugin_object_->Destroy(NULL)); | 316 EXPECT_EQ(NPERR_NO_ERROR, plugin_object_->Destroy(NULL)); |
322 } | 317 } |
323 | 318 |
324 } // namespace gpu_plugin | 319 } // namespace gpu_plugin |
OLD | NEW |