| 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 #ifndef UI_GL_ASYNC_TASK_DELEGATE_MOCK_H_ | 5 #ifndef UI_GL_ASYNC_TASK_DELEGATE_MOCK_H_ |
| 6 #define UI_GL_ASYNC_TASK_DELEGATE_MOCK_H_ | 6 #define UI_GL_ASYNC_TASK_DELEGATE_MOCK_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "testing/gmock/include/gmock/gmock.h" | 9 #include "testing/gmock/include/gmock/gmock.h" |
| 10 #include "ui/gl/async_pixel_transfer_delegate.h" | 10 #include "ui/gl/async_pixel_transfer_delegate.h" |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 MOCK_METHOD1(AsyncNotifyCompletion, | 35 MOCK_METHOD1(AsyncNotifyCompletion, |
| 36 void(const base::Closure& task)); | 36 void(const base::Closure& task)); |
| 37 MOCK_METHOD3(AsyncTexImage2D, | 37 MOCK_METHOD3(AsyncTexImage2D, |
| 38 void(gfx::AsyncPixelTransferState*, | 38 void(gfx::AsyncPixelTransferState*, |
| 39 const AsyncTexImage2DParams& tex_params, | 39 const AsyncTexImage2DParams& tex_params, |
| 40 const AsyncMemoryParams& mem_params)); | 40 const AsyncMemoryParams& mem_params)); |
| 41 MOCK_METHOD3(AsyncTexSubImage2D, | 41 MOCK_METHOD3(AsyncTexSubImage2D, |
| 42 void(gfx::AsyncPixelTransferState*, | 42 void(gfx::AsyncPixelTransferState*, |
| 43 const AsyncTexSubImage2DParams& tex_params, | 43 const AsyncTexSubImage2DParams& tex_params, |
| 44 const AsyncMemoryParams& mem_params)); | 44 const AsyncMemoryParams& mem_params)); |
| 45 MOCK_METHOD0(GetTextureUploadCount, uint32()); |
| 46 MOCK_METHOD0(GetTotalTextureUploadTime, base::TimeDelta()); |
| 45 | 47 |
| 46 private: | 48 private: |
| 47 DISALLOW_COPY_AND_ASSIGN(MockAsyncPixelTransferDelegate); | 49 DISALLOW_COPY_AND_ASSIGN(MockAsyncPixelTransferDelegate); |
| 48 }; | 50 }; |
| 49 | 51 |
| 50 } // namespace gfx | 52 } // namespace gfx |
| 51 | 53 |
| 52 #endif // UI_GL_ASYNC_TASK_DELEGATE_MOCK_H_ | 54 #endif // UI_GL_ASYNC_TASK_DELEGATE_MOCK_H_ |
| 53 | 55 |
| OLD | NEW |