1 // Copyright 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.
5 #ifndef GPU_COMMAND_BUFFER_SERVICE_ASYNC_PIXEL_TRANSFER_MANAGER_TEST_H_
6 #define GPU_COMMAND_BUFFER_SERVICE_ASYNC_PIXEL_TRANSFER_MANAGER_TEST_H_
8 #include "gpu/command_buffer/service/async_pixel_transfer_manager.h"
9 #include "testing/gmock/include/gmock/gmock.h"
13 class MockAsyncPixelTransferManager
: public AsyncPixelTransferManager
{
15 MockAsyncPixelTransferManager();
16 virtual ~MockAsyncPixelTransferManager();
18 // AsyncPixelTransferManager implementation:
19 MOCK_METHOD0(BindCompletedAsyncTransfers
, void());
20 MOCK_METHOD2(AsyncNotifyCompletion
,
21 void(const AsyncMemoryParams
& mem_params
,
22 AsyncPixelTransferCompletionObserver
* observer
));
23 MOCK_METHOD0(GetTextureUploadCount
, uint32());
24 MOCK_METHOD0(GetTotalTextureUploadTime
, base::TimeDelta());
25 MOCK_METHOD0(ProcessMorePendingTransfers
, void());
26 MOCK_METHOD0(NeedsProcessMorePendingTransfers
, bool());
27 MOCK_METHOD0(WaitAllAsyncTexImage2D
, void());
29 CreatePixelTransferDelegateImpl
,
30 AsyncPixelTransferDelegate
*(gles2::TextureRef
* ref
,
31 const AsyncTexImage2DParams
& define_params
));
34 DISALLOW_COPY_AND_ASSIGN(MockAsyncPixelTransferManager
);
39 #endif // GPU_COMMAND_BUFFER_SERVICE_ASYNC_PIXEL_TRANSFER_MANAGER_TEST_H_