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

Side by Side Diff: gpu/command_buffer/client/transfer_buffer_unittest.cc

Issue 629913002: Replacing the OVERRIDE with override and FINAL with final in gpu (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Included autogen python file for OVERRIDE Created 6 years, 2 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 | « gpu/command_buffer/client/transfer_buffer.h ('k') | gpu/command_buffer/common/buffer.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 // Tests for the Command Buffer Helper. 5 // Tests for the Command Buffer Helper.
6 6
7 #include "gpu/command_buffer/client/transfer_buffer.h" 7 #include "gpu/command_buffer/client/transfer_buffer.h"
8 8
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "gpu/command_buffer/client/client_test_helper.h" 10 #include "gpu/command_buffer/client/client_test_helper.h"
(...skipping 18 matching lines...) Expand all
29 static const int32 kCommandBufferSizeBytes = 29 static const int32 kCommandBufferSizeBytes =
30 kNumCommandEntries * sizeof(CommandBufferEntry); 30 kNumCommandEntries * sizeof(CommandBufferEntry);
31 static const unsigned int kStartingOffset = 64; 31 static const unsigned int kStartingOffset = 64;
32 static const unsigned int kAlignment = 4; 32 static const unsigned int kAlignment = 4;
33 static const size_t kTransferBufferSize = 256; 33 static const size_t kTransferBufferSize = 256;
34 34
35 TransferBufferTest() 35 TransferBufferTest()
36 : transfer_buffer_id_(0) { 36 : transfer_buffer_id_(0) {
37 } 37 }
38 38
39 virtual void SetUp() OVERRIDE; 39 virtual void SetUp() override;
40 virtual void TearDown() OVERRIDE; 40 virtual void TearDown() override;
41 41
42 virtual void Initialize(unsigned int size_to_flush) { 42 virtual void Initialize(unsigned int size_to_flush) {
43 ASSERT_TRUE(transfer_buffer_->Initialize( 43 ASSERT_TRUE(transfer_buffer_->Initialize(
44 kTransferBufferSize, 44 kTransferBufferSize,
45 kStartingOffset, 45 kStartingOffset,
46 kTransferBufferSize, 46 kTransferBufferSize,
47 kTransferBufferSize, 47 kTransferBufferSize,
48 kAlignment, 48 kAlignment,
49 size_to_flush)); 49 size_to_flush));
50 } 50 }
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 static const unsigned int kStartingOffset = 64; 241 static const unsigned int kStartingOffset = 64;
242 static const unsigned int kAlignment = 4; 242 static const unsigned int kAlignment = 4;
243 static const size_t kStartTransferBufferSize = 256; 243 static const size_t kStartTransferBufferSize = 256;
244 static const size_t kMaxTransferBufferSize = 1024; 244 static const size_t kMaxTransferBufferSize = 1024;
245 static const size_t kMinTransferBufferSize = 128; 245 static const size_t kMinTransferBufferSize = 128;
246 246
247 TransferBufferExpandContractTest() 247 TransferBufferExpandContractTest()
248 : transfer_buffer_id_(0) { 248 : transfer_buffer_id_(0) {
249 } 249 }
250 250
251 virtual void SetUp() OVERRIDE; 251 virtual void SetUp() override;
252 virtual void TearDown() OVERRIDE; 252 virtual void TearDown() override;
253 253
254 MockClientCommandBufferCanFail* command_buffer() const { 254 MockClientCommandBufferCanFail* command_buffer() const {
255 return command_buffer_.get(); 255 return command_buffer_.get();
256 } 256 }
257 257
258 scoped_ptr<MockClientCommandBufferCanFail> command_buffer_; 258 scoped_ptr<MockClientCommandBufferCanFail> command_buffer_;
259 scoped_ptr<CommandBufferHelper> helper_; 259 scoped_ptr<CommandBufferHelper> helper_;
260 scoped_ptr<TransferBuffer> transfer_buffer_; 260 scoped_ptr<TransferBuffer> transfer_buffer_;
261 int32 transfer_buffer_id_; 261 int32 transfer_buffer_id_;
262 }; 262 };
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
476 476
477 // Check it's the default size. 477 // Check it's the default size.
478 EXPECT_EQ( 478 EXPECT_EQ(
479 kStartTransferBufferSize - kStartingOffset, 479 kStartTransferBufferSize - kStartingOffset,
480 transfer_buffer_->GetCurrentMaxAllocationWithoutRealloc()); 480 transfer_buffer_->GetCurrentMaxAllocationWithoutRealloc());
481 } 481 }
482 482
483 } // namespace gpu 483 } // namespace gpu
484 484
485 485
OLDNEW
« no previous file with comments | « gpu/command_buffer/client/transfer_buffer.h ('k') | gpu/command_buffer/common/buffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698