| 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 "testing/gtest/include/gtest/gtest.h" | 6 #include "testing/gtest/include/gtest/gtest.h" |
| 7 | 7 |
| 8 namespace gpu { | 8 namespace gpu { |
| 9 | 9 |
| 10 // Test that an empty GPUInfo has valid members | 10 // Test that an empty GPUInfo has valid members |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 EXPECT_EQ(gpu_info.gl_extensions, ""); | 26 EXPECT_EQ(gpu_info.gl_extensions, ""); |
| 27 EXPECT_EQ(gpu_info.gl_ws_vendor, ""); | 27 EXPECT_EQ(gpu_info.gl_ws_vendor, ""); |
| 28 EXPECT_EQ(gpu_info.gl_ws_version, ""); | 28 EXPECT_EQ(gpu_info.gl_ws_version, ""); |
| 29 EXPECT_EQ(gpu_info.gl_ws_extensions, ""); | 29 EXPECT_EQ(gpu_info.gl_ws_extensions, ""); |
| 30 EXPECT_EQ(gpu_info.can_lose_context, false); | 30 EXPECT_EQ(gpu_info.can_lose_context, false); |
| 31 EXPECT_EQ(gpu_info.basic_info_state, kCollectInfoNone); | 31 EXPECT_EQ(gpu_info.basic_info_state, kCollectInfoNone); |
| 32 EXPECT_EQ(gpu_info.context_info_state, kCollectInfoNone); | 32 EXPECT_EQ(gpu_info.context_info_state, kCollectInfoNone); |
| 33 #if defined(OS_WIN) | 33 #if defined(OS_WIN) |
| 34 EXPECT_EQ(gpu_info.dx_diagnostics_info_state, kCollectInfoNone); | 34 EXPECT_EQ(gpu_info.dx_diagnostics_info_state, kCollectInfoNone); |
| 35 #endif | 35 #endif |
| 36 EXPECT_EQ(gpu_info.video_decode_accelerator_supported_profiles.size(), 0u); | 36 EXPECT_EQ(gpu_info.video_decode_accelerator_capabilities.flags, 0); |
| 37 EXPECT_EQ( |
| 38 gpu_info.video_decode_accelerator_capabilities.supported_profiles.size(), |
| 39 0u); |
| 37 EXPECT_EQ(gpu_info.video_encode_accelerator_supported_profiles.size(), 0u); | 40 EXPECT_EQ(gpu_info.video_encode_accelerator_supported_profiles.size(), 0u); |
| 38 } | 41 } |
| 39 | 42 |
| 40 } // namespace gpu | 43 } // namespace gpu |
| 41 | 44 |
| OLD | NEW |