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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef O3D_GPU_PLUGIN_SYSTEM_SERVICES_SHARED_MEMORY_MOCK_H_
6 #define O3D_GPU_PLUGIN_SYSTEM_SERVICES_SHARED_MEMORY_MOCK_H_
7
8 #include "o3d/gpu_plugin/system_services/shared_memory.h"
9 #include "testing/gmock/include/gmock/gmock.h"
10
11 namespace o3d {
12 namespace gpu_plugin {
13
14 class MockSharedMemory : public SharedMemory {
15 public:
16 explicit MockSharedMemory(NPP npp) : SharedMemory(npp) {
17 }
18
19 MOCK_METHOD1(Initialize, bool(int32));
20 MOCK_METHOD0(GetSize, int32());
21 MOCK_METHOD0(Map, bool());
22
23 private:
24 DISALLOW_COPY_AND_ASSIGN(MockSharedMemory);
25 };
26
27 } // namespace gpu_plugin
28 } // namespace o3d
29
30 #endif // O3D_GPU_PLUGIN_SYSTEM_SERVICES_SHARED_MEMORY_MOCK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698