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

Side by Side Diff: gpu/command_buffer/service/command_buffer_service_unittest.cc

Issue 682743002: Standardize usage of virtual/override/final specifiers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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
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 #include "base/bind.h" 5 #include "base/bind.h"
6 #include "base/bind_helpers.h" 6 #include "base/bind_helpers.h"
7 #include "base/threading/thread.h" 7 #include "base/threading/thread.h"
8 #include "gpu/command_buffer/common/cmd_buffer_common.h" 8 #include "gpu/command_buffer/common/cmd_buffer_common.h"
9 #include "gpu/command_buffer/service/command_buffer_service.h" 9 #include "gpu/command_buffer/service/command_buffer_service.h"
10 #include "gpu/command_buffer/service/transfer_buffer_manager.h" 10 #include "gpu/command_buffer/service/transfer_buffer_manager.h"
11 #include "testing/gtest/include/gtest/gtest.h" 11 #include "testing/gtest/include/gtest/gtest.h"
12 #include "testing/gmock/include/gmock/gmock.h" 12 #include "testing/gmock/include/gmock/gmock.h"
13 13
14 using base::SharedMemory; 14 using base::SharedMemory;
15 using testing::_; 15 using testing::_;
16 using testing::DoAll; 16 using testing::DoAll;
17 using testing::Return; 17 using testing::Return;
18 using testing::SetArgumentPointee; 18 using testing::SetArgumentPointee;
19 using testing::StrictMock; 19 using testing::StrictMock;
20 20
21 namespace gpu { 21 namespace gpu {
22 22
23 class CommandBufferServiceTest : public testing::Test { 23 class CommandBufferServiceTest : public testing::Test {
24 protected: 24 protected:
25 virtual void SetUp() { 25 void SetUp() override {
26 { 26 {
27 TransferBufferManager* manager = new TransferBufferManager(); 27 TransferBufferManager* manager = new TransferBufferManager();
28 transfer_buffer_manager_.reset(manager); 28 transfer_buffer_manager_.reset(manager);
29 EXPECT_TRUE(manager->Initialize()); 29 EXPECT_TRUE(manager->Initialize());
30 } 30 }
31 command_buffer_.reset( 31 command_buffer_.reset(
32 new CommandBufferService(transfer_buffer_manager_.get())); 32 new CommandBufferService(transfer_buffer_manager_.get()));
33 EXPECT_TRUE(command_buffer_->Initialize()); 33 EXPECT_TRUE(command_buffer_->Initialize());
34 } 34 }
35 35
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 147
148 TEST_F(CommandBufferServiceTest, DefaultParseErrorIsNoError) { 148 TEST_F(CommandBufferServiceTest, DefaultParseErrorIsNoError) {
149 EXPECT_EQ(0, GetError()); 149 EXPECT_EQ(0, GetError());
150 } 150 }
151 151
152 TEST_F(CommandBufferServiceTest, CanSetParseError) { 152 TEST_F(CommandBufferServiceTest, CanSetParseError) {
153 command_buffer_->SetParseError(error::kInvalidSize); 153 command_buffer_->SetParseError(error::kInvalidSize);
154 EXPECT_EQ(1, GetError()); 154 EXPECT_EQ(1, GetError());
155 } 155 }
156 } // namespace gpu 156 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/buffer_manager_unittest.cc ('k') | gpu/command_buffer/service/common_decoder_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698