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

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

Issue 1101013002: Update {virtual,override} to follow C++11 style in gpu. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 months 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 | no next file » | 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 "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 scoped_refptr<Buffer> transfer_buffer_buffers_[kMaxTransferBuffers]; 56 scoped_refptr<Buffer> transfer_buffer_buffers_[kMaxTransferBuffers];
57 CommandBufferEntry* ring_buffer_; 57 CommandBufferEntry* ring_buffer_;
58 scoped_refptr<Buffer> ring_buffer_buffer_; 58 scoped_refptr<Buffer> ring_buffer_buffer_;
59 State state_; 59 State state_;
60 int32 put_offset_; 60 int32 put_offset_;
61 }; 61 };
62 62
63 class MockClientCommandBuffer : public MockCommandBufferBase { 63 class MockClientCommandBuffer : public MockCommandBufferBase {
64 public: 64 public:
65 MockClientCommandBuffer(); 65 MockClientCommandBuffer();
66 virtual ~MockClientCommandBuffer(); 66 ~MockClientCommandBuffer() override;
67 67
68 // This is so we can use all the gmock functions when Flush is called. 68 // This is so we can use all the gmock functions when Flush is called.
69 MOCK_METHOD0(OnFlush, void()); 69 MOCK_METHOD0(OnFlush, void());
70 MOCK_METHOD1(DestroyTransferBuffer, void(int32 id)); 70 MOCK_METHOD1(DestroyTransferBuffer, void(int32 id));
71 71
72 virtual void Flush(int32 put_offset) override; 72 void Flush(int32 put_offset) override;
73 virtual void OrderingBarrier(int32 put_offset) override; 73 void OrderingBarrier(int32 put_offset) override;
74 74
75 void DelegateToFake(); 75 void DelegateToFake();
76 }; 76 };
77 77
78 class MockClientCommandBufferMockFlush : public MockClientCommandBuffer { 78 class MockClientCommandBufferMockFlush : public MockClientCommandBuffer {
79 public: 79 public:
80 MockClientCommandBufferMockFlush(); 80 MockClientCommandBufferMockFlush();
81 virtual ~MockClientCommandBufferMockFlush(); 81 virtual ~MockClientCommandBufferMockFlush();
82 82
83 MOCK_METHOD1(Flush, void(int32 put_offset)); 83 MOCK_METHOD1(Flush, void(int32 put_offset));
(...skipping 29 matching lines...) Expand all
113 MOCK_METHOD1(SetLock, void(base::Lock*)); 113 MOCK_METHOD1(SetLock, void(base::Lock*));
114 114
115 private: 115 private:
116 DISALLOW_COPY_AND_ASSIGN(MockClientGpuControl); 116 DISALLOW_COPY_AND_ASSIGN(MockClientGpuControl);
117 }; 117 };
118 118
119 } // namespace gpu 119 } // namespace gpu
120 120
121 #endif // GPU_COMMAND_BUFFER_CLIENT_CLIENT_TEST_HELPER_H_ 121 #endif // GPU_COMMAND_BUFFER_CLIENT_CLIENT_TEST_HELPER_H_
122 122
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698