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

Side by Side Diff: gpu/config/gpu_test_config_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 "gpu/config/gpu_info.h" 5 #include "gpu/config/gpu_info.h"
6 #include "gpu/config/gpu_test_config.h" 6 #include "gpu/config/gpu_test_config.h"
7 #include "testing/gtest/include/gtest/gtest.h" 7 #include "testing/gtest/include/gtest/gtest.h"
8 8
9 namespace gpu { 9 namespace gpu {
10 10
11 class GPUTestConfigTest : public testing::Test { 11 class GPUTestConfigTest : public testing::Test {
12 public: 12 public:
13 GPUTestConfigTest() { } 13 GPUTestConfigTest() { }
14 14
15 virtual ~GPUTestConfigTest() { } 15 ~GPUTestConfigTest() override {}
16 16
17 protected: 17 protected:
18 virtual void SetUp() { } 18 void SetUp() override {}
19 19
20 virtual void TearDown() { } 20 void TearDown() override {}
21 }; 21 };
22 22
23 TEST_F(GPUTestConfigTest, EmptyValues) { 23 TEST_F(GPUTestConfigTest, EmptyValues) {
24 GPUTestConfig config; 24 GPUTestConfig config;
25 EXPECT_EQ(GPUTestConfig::kOsUnknown, config.os()); 25 EXPECT_EQ(GPUTestConfig::kOsUnknown, config.os());
26 EXPECT_EQ(0u, config.gpu_vendor().size()); 26 EXPECT_EQ(0u, config.gpu_vendor().size());
27 EXPECT_EQ(0u, config.gpu_device_id()); 27 EXPECT_EQ(0u, config.gpu_device_id());
28 EXPECT_EQ(GPUTestConfig::kBuildTypeUnknown, config.build_type()); 28 EXPECT_EQ(GPUTestConfig::kBuildTypeUnknown, config.build_type());
29 } 29 }
30 30
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 GPUTestBotConfig config; 246 GPUTestBotConfig config;
247 GPUInfo gpu_info; 247 GPUInfo gpu_info;
248 gpu_info.gpu.vendor_id = 0x10de; 248 gpu_info.gpu.vendor_id = 0x10de;
249 gpu_info.gpu.device_id = 0x0640; 249 gpu_info.gpu.device_id = 0x0640;
250 EXPECT_TRUE(config.LoadCurrentConfig(&gpu_info)); 250 EXPECT_TRUE(config.LoadCurrentConfig(&gpu_info));
251 EXPECT_TRUE(config.IsValid()); 251 EXPECT_TRUE(config.IsValid());
252 } 252 }
253 253
254 } // namespace gpu 254 } // namespace gpu
255 255
OLDNEW
« no previous file with comments | « gpu/config/gpu_info_collector_unittest.cc ('k') | gpu/config/gpu_test_expectations_parser_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698