OLD | NEW |
(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_ |
OLD | NEW |