OLD | NEW |
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 "base/scoped_ptr.h" | 5 #include "base/scoped_ptr.h" |
6 #include "chrome/common/gpu_info.h" | |
7 #include "chrome/gpu/gpu_idirect3d9_mock_win.h" | 6 #include "chrome/gpu/gpu_idirect3d9_mock_win.h" |
8 #include "chrome/gpu/gpu_info_collector.h" | 7 #include "chrome/gpu/gpu_info_collector.h" |
| 8 #include "content/common/gpu_info.h" |
9 #include "testing/gmock/include/gmock/gmock.h" | 9 #include "testing/gmock/include/gmock/gmock.h" |
10 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
11 | 11 |
12 using ::testing::_; | 12 using ::testing::_; |
13 using ::testing::Return; | 13 using ::testing::Return; |
14 using ::testing::SetArgumentPointee; | 14 using ::testing::SetArgumentPointee; |
15 | 15 |
16 class GPUInfoTest : public testing::Test { | 16 class GPUInfoTest : public testing::Test { |
17 public: | 17 public: |
18 GPUInfoTest() { } | 18 GPUInfoTest() { } |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 uint32 ps_version = gpu_info.pixel_shader_version; | 50 uint32 ps_version = gpu_info.pixel_shader_version; |
51 EXPECT_EQ(ps_version, D3DPS_VERSION(3, 0)); | 51 EXPECT_EQ(ps_version, D3DPS_VERSION(3, 0)); |
52 } | 52 } |
53 | 53 |
54 TEST_F(GPUInfoTest, VertexShaderVersionD3D) { | 54 TEST_F(GPUInfoTest, VertexShaderVersionD3D) { |
55 GPUInfo gpu_info; | 55 GPUInfo gpu_info; |
56 ASSERT_TRUE(gpu_info_collector::CollectGraphicsInfoD3D(&d3d_, &gpu_info)); | 56 ASSERT_TRUE(gpu_info_collector::CollectGraphicsInfoD3D(&d3d_, &gpu_info)); |
57 uint32 vs_version = gpu_info.vertex_shader_version; | 57 uint32 vs_version = gpu_info.vertex_shader_version; |
58 EXPECT_EQ(vs_version, D3DVS_VERSION(3, 0)); | 58 EXPECT_EQ(vs_version, D3DVS_VERSION(3, 0)); |
59 } | 59 } |
OLD | NEW |