| 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" | 5 #include "app/gfx/gl/gl_implementation.h" |
| 6 #include "base/scoped_ptr.h" | 6 #include "base/scoped_ptr.h" |
| 7 #include "chrome/common/gpu_info.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 "gpu/command_buffer/common/gl_mock.h" | 9 #include "gpu/command_buffer/common/gl_mock.h" |
| 10 #include "testing/gmock/include/gmock/gmock.h" | 10 #include "testing/gmock/include/gmock/gmock.h" |
| 11 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.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() {} |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 std::string gl_vendor = gpu_info.gl_vendor; | 168 std::string gl_vendor = gpu_info.gl_vendor; |
| 169 EXPECT_EQ(test_values_.gl_vendor, gl_vendor); | 169 EXPECT_EQ(test_values_.gl_vendor, gl_vendor); |
| 170 } | 170 } |
| 171 | 171 |
| 172 TEST_F(GPUInfoCollectorTest, GLExtensionsGL) { | 172 TEST_F(GPUInfoCollectorTest, GLExtensionsGL) { |
| 173 GPUInfo gpu_info; | 173 GPUInfo gpu_info; |
| 174 gpu_info_collector::CollectGraphicsInfoGL(&gpu_info); | 174 gpu_info_collector::CollectGraphicsInfoGL(&gpu_info); |
| 175 std::string gl_extensions = gpu_info.gl_extensions; | 175 std::string gl_extensions = gpu_info.gl_extensions; |
| 176 EXPECT_EQ(test_values_.gl_extensions, gl_extensions); | 176 EXPECT_EQ(test_values_.gl_extensions, gl_extensions); |
| 177 } | 177 } |
| OLD | NEW |