| 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/compiler_specific.h" |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 size_t height, | 103 size_t height, |
| 104 unsigned internalformat, | 104 unsigned internalformat, |
| 105 unsigned usage)); | 105 unsigned usage)); |
| 106 MOCK_METHOD0(InsertSyncPoint, uint32()); | 106 MOCK_METHOD0(InsertSyncPoint, uint32()); |
| 107 MOCK_METHOD0(InsertFutureSyncPoint, uint32()); | 107 MOCK_METHOD0(InsertFutureSyncPoint, uint32()); |
| 108 MOCK_METHOD1(RetireSyncPoint, void(uint32 id)); | 108 MOCK_METHOD1(RetireSyncPoint, void(uint32 id)); |
| 109 MOCK_METHOD2(SignalSyncPoint, void(uint32 id, const base::Closure& callback)); | 109 MOCK_METHOD2(SignalSyncPoint, void(uint32 id, const base::Closure& callback)); |
| 110 MOCK_METHOD2(SignalQuery, void(uint32 query, const base::Closure& callback)); | 110 MOCK_METHOD2(SignalQuery, void(uint32 query, const base::Closure& callback)); |
| 111 MOCK_METHOD1(SetSurfaceVisible, void(bool visible)); | 111 MOCK_METHOD1(SetSurfaceVisible, void(bool visible)); |
| 112 MOCK_METHOD1(CreateStreamTexture, uint32(uint32)); | 112 MOCK_METHOD1(CreateStreamTexture, uint32(uint32)); |
| 113 MOCK_METHOD1(SetLock, void(base::Lock*)); |
| 113 | 114 |
| 114 private: | 115 private: |
| 115 DISALLOW_COPY_AND_ASSIGN(MockClientGpuControl); | 116 DISALLOW_COPY_AND_ASSIGN(MockClientGpuControl); |
| 116 }; | 117 }; |
| 117 | 118 |
| 118 } // namespace gpu | 119 } // namespace gpu |
| 119 | 120 |
| 120 #endif // GPU_COMMAND_BUFFER_CLIENT_CLIENT_TEST_HELPER_H_ | 121 #endif // GPU_COMMAND_BUFFER_CLIENT_CLIENT_TEST_HELPER_H_ |
| 121 | 122 |
| OLD | NEW |