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 "content/test/gpu/gpu_test_config.h" | 5 #include "content/test/gpu/gpu_test_config.h" |
6 #include "content/public/common/gpu_info.h" | 6 #include "content/public/common/gpu_info.h" |
7 #include "testing/gtest/include/gtest/gtest.h" | 7 #include "testing/gtest/include/gtest/gtest.h" |
8 | 8 |
9 class GPUTestConfigTest : public testing::Test { | 9 class GPUTestConfigTest : public testing::Test { |
10 public: | 10 public: |
11 GPUTestConfigTest() { } | 11 GPUTestConfigTest() { } |
12 | 12 |
13 virtual ~GPUTestConfigTest() { } | 13 virtual ~GPUTestConfigTest() { } |
14 | 14 |
15 protected: | 15 protected: |
16 void SetUp() { } | 16 virtual void SetUp() { } |
17 | 17 |
18 void TearDown() { } | 18 virtual void TearDown() { } |
19 }; | 19 }; |
20 | 20 |
21 TEST_F(GPUTestConfigTest, EmptyValues) { | 21 TEST_F(GPUTestConfigTest, EmptyValues) { |
22 GPUTestConfig config; | 22 GPUTestConfig config; |
23 EXPECT_EQ(GPUTestConfig::kOsUnknown, config.os()); | 23 EXPECT_EQ(GPUTestConfig::kOsUnknown, config.os()); |
24 EXPECT_EQ(0u, config.gpu_vendor().size()); | 24 EXPECT_EQ(0u, config.gpu_vendor().size()); |
25 EXPECT_EQ(0u, config.gpu_device_id()); | 25 EXPECT_EQ(0u, config.gpu_device_id()); |
26 EXPECT_EQ(GPUTestConfig::kBuildTypeUnknown, config.build_type()); | 26 EXPECT_EQ(GPUTestConfig::kBuildTypeUnknown, config.build_type()); |
27 } | 27 } |
28 | 28 |
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
242 | 242 |
243 TEST_F(GPUTestConfigTest, LoadCurrentConfig) { | 243 TEST_F(GPUTestConfigTest, LoadCurrentConfig) { |
244 GPUTestBotConfig config; | 244 GPUTestBotConfig config; |
245 content::GPUInfo gpu_info; | 245 content::GPUInfo gpu_info; |
246 gpu_info.gpu.vendor_id = 0x10de; | 246 gpu_info.gpu.vendor_id = 0x10de; |
247 gpu_info.gpu.device_id = 0x0640; | 247 gpu_info.gpu.device_id = 0x0640; |
248 EXPECT_TRUE(config.LoadCurrentConfig(&gpu_info)); | 248 EXPECT_TRUE(config.LoadCurrentConfig(&gpu_info)); |
249 EXPECT_TRUE(config.IsValid()); | 249 EXPECT_TRUE(config.IsValid()); |
250 } | 250 } |
251 | 251 |
OLD | NEW |