OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2013 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 GPU_COMMAND_BUFFER_SERVICE_ASYNC_PIXEL_TRANSFER_MANAGER_TEST_H_ |
| 6 #define GPU_COMMAND_BUFFER_SERVICE_ASYNC_PIXEL_TRANSFER_MANAGER_TEST_H_ |
| 7 |
| 8 #include "gpu/command_buffer/service/async_pixel_transfer_manager.h" |
| 9 |
| 10 #include "gpu/command_buffer/service/async_pixel_transfer_delegate_mock.h" |
| 11 |
| 12 namespace gpu { |
| 13 |
| 14 class AsyncPixelTransferManagerTest : public AsyncPixelTransferManager { |
| 15 public: |
| 16 AsyncPixelTransferManagerTest(); |
| 17 virtual ~AsyncPixelTransferManagerTest(); |
| 18 |
| 19 // AsyncPixelTransferManager implementation: |
| 20 virtual AsyncPixelTransferDelegate* GetAsyncPixelTransferDelegate() OVERRIDE; |
| 21 |
| 22 ::testing::StrictMock<MockAsyncPixelTransferDelegate>* GetMockDelegate() { |
| 23 return delegate_.get(); |
| 24 } |
| 25 |
| 26 private: |
| 27 scoped_ptr< ::testing::StrictMock<MockAsyncPixelTransferDelegate> > delegate_; |
| 28 |
| 29 DISALLOW_COPY_AND_ASSIGN(AsyncPixelTransferManagerTest); |
| 30 }; |
| 31 |
| 32 } // namespace gpu |
| 33 |
| 34 #endif // GPU_COMMAND_BUFFER_SERVICE_ASYNC_PIXEL_TRANSFER_MANAGER_TEST_H_ |
OLD | NEW |