Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(482)

Side by Side Diff: gpu/command_buffer/client/client_test_helper.h

Issue 2532763002: gpu: Cleanup class/struct forward declarations (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | gpu/command_buffer/client/gpu_control.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 <stddef.h> 10 #include <stddef.h>
11 #include <stdint.h> 11 #include <stdint.h>
12 12
13 #include <memory> 13 #include <memory>
14 14
15 #include "base/compiler_specific.h" 15 #include "base/compiler_specific.h"
16 #include "base/macros.h" 16 #include "base/macros.h"
17 #include "gpu/command_buffer/client/gpu_control.h" 17 #include "gpu/command_buffer/client/gpu_control.h"
18 #include "gpu/command_buffer/common/cmd_buffer_common.h" 18 #include "gpu/command_buffer/common/cmd_buffer_common.h"
19 #include "gpu/command_buffer/common/gpu_memory_allocation.h" 19 #include "gpu/command_buffer/common/gpu_memory_allocation.h"
20 #include "gpu/command_buffer/common/sync_token.h" 20 #include "gpu/command_buffer/common/sync_token.h"
21 #include "gpu/command_buffer/service/command_buffer_service.h" 21 #include "gpu/command_buffer/service/command_buffer_service.h"
22 #include "testing/gmock/include/gmock/gmock.h" 22 #include "testing/gmock/include/gmock/gmock.h"
23 #include "testing/gtest/include/gtest/gtest.h" 23 #include "testing/gtest/include/gtest/gtest.h"
24 24
25 namespace gpu { 25 namespace gpu {
26 26
27 class CommandBufferHelper;
28
29 class MockCommandBufferBase : public CommandBufferServiceBase { 27 class MockCommandBufferBase : public CommandBufferServiceBase {
30 public: 28 public:
31 static const int32_t kTransferBufferBaseId = 0x123; 29 static const int32_t kTransferBufferBaseId = 0x123;
32 static const int32_t kMaxTransferBuffers = 32; 30 static const int32_t kMaxTransferBuffers = 32;
33 31
34 MockCommandBufferBase(); 32 MockCommandBufferBase();
35 ~MockCommandBufferBase() override; 33 ~MockCommandBufferBase() override;
36 34
37 State GetLastState() override; 35 State GetLastState() override;
38 int32_t GetLastToken() override; 36 int32_t GetLastToken() override;
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 MOCK_METHOD1(CanWaitUnverifiedSyncToken, bool(const SyncToken*)); 124 MOCK_METHOD1(CanWaitUnverifiedSyncToken, bool(const SyncToken*));
127 125
128 private: 126 private:
129 DISALLOW_COPY_AND_ASSIGN(MockClientGpuControl); 127 DISALLOW_COPY_AND_ASSIGN(MockClientGpuControl);
130 }; 128 };
131 129
132 } // namespace gpu 130 } // namespace gpu
133 131
134 #endif // GPU_COMMAND_BUFFER_CLIENT_CLIENT_TEST_HELPER_H_ 132 #endif // GPU_COMMAND_BUFFER_CLIENT_CLIENT_TEST_HELPER_H_
135 133
OLDNEW
« no previous file with comments | « no previous file | gpu/command_buffer/client/gpu_control.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698