OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // Helper classes for implementing gpu client side unit tests. | 5 // Helper classes for implementing gpu client side unit tests. |
6 | 6 |
7 #ifndef GPU_COMMAND_BUFFER_CLIENT_CLIENT_TEST_HELPER_H_ | 7 #ifndef GPU_COMMAND_BUFFER_CLIENT_CLIENT_TEST_HELPER_H_ |
8 #define GPU_COMMAND_BUFFER_CLIENT_CLIENT_TEST_HELPER_H_ | 8 #define GPU_COMMAND_BUFFER_CLIENT_CLIENT_TEST_HELPER_H_ |
9 | 9 |
| 10 #include "base/compiler_specific.h" |
10 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
11 #include "gpu/command_buffer/common/cmd_buffer_common.h" | 12 #include "gpu/command_buffer/common/cmd_buffer_common.h" |
12 #include "gpu/command_buffer/common/command_buffer.h" | 13 #include "gpu/command_buffer/common/command_buffer.h" |
13 #include "gpu/command_buffer/common/compiler_specific.h" | |
14 #include "gpu/command_buffer/common/gpu_control.h" | 14 #include "gpu/command_buffer/common/gpu_control.h" |
15 #include "gpu/command_buffer/common/gpu_memory_allocation.h" | 15 #include "gpu/command_buffer/common/gpu_memory_allocation.h" |
16 #include "testing/gmock/include/gmock/gmock.h" | 16 #include "testing/gmock/include/gmock/gmock.h" |
17 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/include/gtest/gtest.h" |
18 | 18 |
19 namespace gpu { | 19 namespace gpu { |
20 | 20 |
21 class CommandBufferHelper; | 21 class CommandBufferHelper; |
22 | 22 |
23 class MockCommandBufferBase : public CommandBuffer { | 23 class MockCommandBufferBase : public CommandBuffer { |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 void(const ManagedMemoryStats& stats)); | 105 void(const ManagedMemoryStats& stats)); |
106 | 106 |
107 private: | 107 private: |
108 DISALLOW_COPY_AND_ASSIGN(MockClientGpuControl); | 108 DISALLOW_COPY_AND_ASSIGN(MockClientGpuControl); |
109 }; | 109 }; |
110 | 110 |
111 } // namespace gpu | 111 } // namespace gpu |
112 | 112 |
113 #endif // GPU_COMMAND_BUFFER_CLIENT_CLIENT_TEST_HELPER_H_ | 113 #endif // GPU_COMMAND_BUFFER_CLIENT_CLIENT_TEST_HELPER_H_ |
114 | 114 |
OLD | NEW |