Revert "Reland c91b178b07b0d - Delete dead signin code (SigninGlobalError)"
[chromium-blink-merge.git] / gpu / command_buffer / service / async_pixel_transfer_manager_mock.h
blob3bc8b6bd03693a9cd6b6ffb9f67ecd7874db8e00
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"
11 namespace gpu {
13 class MockAsyncPixelTransferManager : public AsyncPixelTransferManager {
14 public:
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());
28 MOCK_METHOD2(
29 CreatePixelTransferDelegateImpl,
30 AsyncPixelTransferDelegate*(gles2::TextureRef* ref,
31 const AsyncTexImage2DParams& define_params));
33 private:
34 DISALLOW_COPY_AND_ASSIGN(MockAsyncPixelTransferManager);
37 } // namespace gpu
39 #endif // GPU_COMMAND_BUFFER_SERVICE_ASYNC_PIXEL_TRANSFER_MANAGER_TEST_H_