OLD | NEW |
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 Loading... |
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 |
OLD | NEW |