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

Side by Side Diff: gpu/command_buffer/service/id_manager_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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "gpu/command_buffer/service/id_manager.h" 5 #include "gpu/command_buffer/service/id_manager.h"
6 #include "testing/gtest/include/gtest/gtest.h" 6 #include "testing/gtest/include/gtest/gtest.h"
7 7
8 namespace gpu { 8 namespace gpu {
9 namespace gles2 { 9 namespace gles2 {
10 10
11 class IdManagerTest : public testing::Test { 11 class IdManagerTest : public testing::Test {
12 public: 12 public:
13 IdManagerTest() { 13 IdManagerTest() {
14 } 14 }
15 15
16 protected: 16 protected:
17 virtual void SetUp() { 17 void SetUp() override {}
18 }
19 18
20 virtual void TearDown() { 19 void TearDown() override {}
21 }
22 20
23 IdManager manager_; 21 IdManager manager_;
24 }; 22 };
25 23
26 TEST_F(IdManagerTest, Basic) { 24 TEST_F(IdManagerTest, Basic) {
27 const GLuint kClientId1 = 1; 25 const GLuint kClientId1 = 1;
28 const GLuint kClientId2 = 2; 26 const GLuint kClientId2 = 2;
29 const GLuint kServiceId1 = 201; 27 const GLuint kServiceId1 = 201;
30 const GLuint kServiceId2 = 202; 28 const GLuint kServiceId2 = 202;
31 // Check we can add an id 29 // Check we can add an id
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 EXPECT_FALSE(manager_.RemoveMapping(kClientId1, kServiceId2)); 65 EXPECT_FALSE(manager_.RemoveMapping(kClientId1, kServiceId2));
68 // Check we get an error if we try to map an existing id. 66 // Check we get an error if we try to map an existing id.
69 EXPECT_FALSE(manager_.AddMapping(kClientId2, kServiceId2)); 67 EXPECT_FALSE(manager_.AddMapping(kClientId2, kServiceId2));
70 EXPECT_FALSE(manager_.AddMapping(kClientId2, kServiceId1)); 68 EXPECT_FALSE(manager_.AddMapping(kClientId2, kServiceId1));
71 } 69 }
72 70
73 } // namespace gles2 71 } // namespace gles2
74 } // namespace gpu 72 } // namespace gpu
75 73
76 74
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/gpu_tracer_unittest.cc ('k') | gpu/command_buffer/service/mailbox_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698