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

Unified Diff: o3d/gpu_plugin/system_services/shared_memory_mock.h

Issue 194049: Implemented shared memory as an NPObject. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 3 months 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
Index: o3d/gpu_plugin/system_services/shared_memory_mock.h
===================================================================
--- o3d/gpu_plugin/system_services/shared_memory_mock.h (revision 0)
+++ o3d/gpu_plugin/system_services/shared_memory_mock.h (revision 0)
@@ -0,0 +1,30 @@
+// Copyright (c) 2006-2008 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.
+
+#ifndef O3D_GPU_PLUGIN_SYSTEM_SERVICES_SHARED_MEMORY_MOCK_H_
+#define O3D_GPU_PLUGIN_SYSTEM_SERVICES_SHARED_MEMORY_MOCK_H_
+
+#include "o3d/gpu_plugin/system_services/shared_memory.h"
+#include "testing/gmock/include/gmock/gmock.h"
+
+namespace o3d {
+namespace gpu_plugin {
+
+class MockSharedMemory : public SharedMemory {
+ public:
+ explicit MockSharedMemory(NPP npp) : SharedMemory(npp) {
+ }
+
+ MOCK_METHOD1(Initialize, bool(int32));
+ MOCK_METHOD0(GetSize, int32());
+ MOCK_METHOD0(Map, bool());
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(MockSharedMemory);
+};
+
+} // namespace gpu_plugin
+} // namespace o3d
+
+#endif // O3D_GPU_PLUGIN_SYSTEM_SERVICES_SHARED_MEMORY_MOCK_H_

Powered by Google App Engine
This is Rietveld 408576698