Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / gpu / config / gpu_info_unittest.cc
blob21dd4ffc51c0956e676113e4811bd3cab0fdc484
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
3 // found in the LICENSE file.
5 #include "gpu/config/gpu_info.h"
6 #include "testing/gtest/include/gtest/gtest.h"
8 namespace gpu {
10 // Test that an empty GPUInfo has valid members
11 TEST(GPUInfoBasicTest, EmptyGPUInfo) {
12 GPUInfo gpu_info;
13 EXPECT_EQ(gpu_info.initialization_time.ToInternalValue(), 0);
14 EXPECT_EQ(gpu_info.gpu.vendor_id, 0u);
15 EXPECT_EQ(gpu_info.gpu.device_id, 0u);
16 EXPECT_EQ(gpu_info.secondary_gpus.size(), 0u);
17 EXPECT_EQ(gpu_info.driver_vendor, "");
18 EXPECT_EQ(gpu_info.driver_version, "");
19 EXPECT_EQ(gpu_info.driver_date, "");
20 EXPECT_EQ(gpu_info.pixel_shader_version, "");
21 EXPECT_EQ(gpu_info.vertex_shader_version, "");
22 EXPECT_EQ(gpu_info.max_msaa_samples, "");
23 EXPECT_EQ(gpu_info.gl_version, "");
24 EXPECT_EQ(gpu_info.gl_vendor, "");
25 EXPECT_EQ(gpu_info.gl_renderer, "");
26 EXPECT_EQ(gpu_info.gl_extensions, "");
27 EXPECT_EQ(gpu_info.gl_ws_vendor, "");
28 EXPECT_EQ(gpu_info.gl_ws_version, "");
29 EXPECT_EQ(gpu_info.gl_ws_extensions, "");
30 EXPECT_EQ(gpu_info.can_lose_context, false);
31 EXPECT_EQ(gpu_info.basic_info_state, kCollectInfoNone);
32 EXPECT_EQ(gpu_info.context_info_state, kCollectInfoNone);
33 #if defined(OS_WIN)
34 EXPECT_EQ(gpu_info.dx_diagnostics_info_state, kCollectInfoNone);
35 #endif
36 EXPECT_EQ(gpu_info.video_decode_accelerator_supported_profiles.size(), 0u);
37 EXPECT_EQ(gpu_info.video_encode_accelerator_supported_profiles.size(), 0u);
40 } // namespace gpu