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 14 matching lines...) Expand all Loading... |
25 EXPECT_EQ(gpu_info.gl_extensions, ""); | 25 EXPECT_EQ(gpu_info.gl_extensions, ""); |
26 EXPECT_EQ(gpu_info.gl_ws_vendor, ""); | 26 EXPECT_EQ(gpu_info.gl_ws_vendor, ""); |
27 EXPECT_EQ(gpu_info.gl_ws_version, ""); | 27 EXPECT_EQ(gpu_info.gl_ws_version, ""); |
28 EXPECT_EQ(gpu_info.gl_ws_extensions, ""); | 28 EXPECT_EQ(gpu_info.gl_ws_extensions, ""); |
29 EXPECT_EQ(gpu_info.can_lose_context, false); | 29 EXPECT_EQ(gpu_info.can_lose_context, false); |
30 EXPECT_EQ(gpu_info.basic_info_state, kCollectInfoNone); | 30 EXPECT_EQ(gpu_info.basic_info_state, kCollectInfoNone); |
31 EXPECT_EQ(gpu_info.context_info_state, kCollectInfoNone); | 31 EXPECT_EQ(gpu_info.context_info_state, kCollectInfoNone); |
32 #if defined(OS_WIN) | 32 #if defined(OS_WIN) |
33 EXPECT_EQ(gpu_info.dx_diagnostics_info_state, kCollectInfoNone); | 33 EXPECT_EQ(gpu_info.dx_diagnostics_info_state, kCollectInfoNone); |
34 #endif | 34 #endif |
| 35 EXPECT_EQ(gpu_info.video_encode_accelerator_supported_profiles.size(), 0u); |
35 } | 36 } |
36 | 37 |
37 } // namespace gpu | 38 } // namespace gpu |
38 | 39 |
OLD | NEW |