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

Unified Diff: gpu/command_buffer/service/gpu_processor_mock.h

Issue 465040: Added CommandBufferClient, CommandBufferStub and some IPC messages.... (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gpu/command_buffer/service/gpu_processor.cc ('k') | gpu/command_buffer/service/gpu_processor_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/gpu_processor_mock.h
===================================================================
--- gpu/command_buffer/service/gpu_processor_mock.h (revision 34314)
+++ gpu/command_buffer/service/gpu_processor_mock.h (working copy)
@@ -1,4 +1,4 @@
-// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
+// Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -8,7 +8,7 @@
#include "gpu/command_buffer/service/gpu_processor.h"
#include "testing/gmock/include/gmock/gmock.h"
-namespace command_buffer {
+namespace gpu {
class MockGPUProcessor : public GPUProcessor {
public:
@@ -16,17 +16,12 @@
: GPUProcessor(command_buffer) {
}
-#if defined(OS_WIN)
- MOCK_METHOD1(Initialize, bool(HWND handle));
-#endif
-
+ MOCK_METHOD1(Initialize, bool(gfx::PluginWindowHandle handle));
MOCK_METHOD0(Destroy, void());
MOCK_METHOD0(ProcessCommands, void());
-
-#if defined(OS_WIN)
- MOCK_METHOD3(SetWindow, bool(HWND handle, int width, int height));
-#endif
-
+ MOCK_METHOD3(SetWindow, bool(gfx::PluginWindowHandle handle,
+ int width,
+ int height));
MOCK_METHOD1(GetSharedMemoryAddress, void*(int32 shm_id));
MOCK_METHOD1(GetSharedMemorySize, size_t(int32 shm_id));
MOCK_METHOD1(set_token, void(int32 token));
@@ -35,6 +30,6 @@
DISALLOW_COPY_AND_ASSIGN(MockGPUProcessor);
};
-} // namespace command_buffer
+} // namespace gpu
#endif // GPU_COMMAND_BUFFER_SERVICE_GPU_PROCESSOR_MOCK_H_
« no previous file with comments | « gpu/command_buffer/service/gpu_processor.cc ('k') | gpu/command_buffer/service/gpu_processor_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698