OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "app/gfx/gl/gl_implementation.h" | |
6 #include "base/memory/scoped_ptr.h" | 5 #include "base/memory/scoped_ptr.h" |
7 #include "content/common/gpu_info.h" | 6 #include "content/common/gpu_info.h" |
8 #include "content/gpu/gpu_info_collector.h" | 7 #include "content/gpu/gpu_info_collector.h" |
9 #include "gpu/command_buffer/common/gl_mock.h" | 8 #include "gpu/command_buffer/common/gl_mock.h" |
10 #include "testing/gmock/include/gmock/gmock.h" | 9 #include "testing/gmock/include/gmock/gmock.h" |
11 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
| 11 #include "ui/gfx/gl/gl_implementation.h" |
12 | 12 |
13 using ::gfx::MockGLInterface; | 13 using ::gfx::MockGLInterface; |
14 using ::testing::Return; | 14 using ::testing::Return; |
15 | 15 |
16 class GPUInfoCollectorTest : public testing::Test { | 16 class GPUInfoCollectorTest : public testing::Test { |
17 public: | 17 public: |
18 GPUInfoCollectorTest() {} | 18 GPUInfoCollectorTest() {} |
19 virtual ~GPUInfoCollectorTest() { } | 19 virtual ~GPUInfoCollectorTest() { } |
20 | 20 |
21 void SetUp() { | 21 void SetUp() { |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 EXPECT_EQ(test_values_.gl_vendor, | 167 EXPECT_EQ(test_values_.gl_vendor, |
168 gpu_info.gl_vendor); | 168 gpu_info.gl_vendor); |
169 } | 169 } |
170 | 170 |
171 TEST_F(GPUInfoCollectorTest, GLExtensionsGL) { | 171 TEST_F(GPUInfoCollectorTest, GLExtensionsGL) { |
172 GPUInfo gpu_info; | 172 GPUInfo gpu_info; |
173 gpu_info_collector::CollectGraphicsInfoGL(&gpu_info); | 173 gpu_info_collector::CollectGraphicsInfoGL(&gpu_info); |
174 EXPECT_EQ(test_values_.gl_extensions, | 174 EXPECT_EQ(test_values_.gl_extensions, |
175 gpu_info.gl_extensions); | 175 gpu_info.gl_extensions); |
176 } | 176 } |
OLD | NEW |