| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 "base/memory/scoped_ptr.h" | 5 #include "base/memory/scoped_ptr.h" |
| 6 #include "gpu/config/gpu_blacklist.h" | 6 #include "gpu/config/gpu_blacklist.h" |
| 7 #include "gpu/config/gpu_control_list_jsons.h" | 7 #include "gpu/config/gpu_control_list_jsons.h" |
| 8 #include "gpu/config/gpu_feature_type.h" | 8 #include "gpu/config/gpu_feature_type.h" |
| 9 #include "gpu/config/gpu_info.h" | 9 #include "gpu/config/gpu_info.h" |
| 10 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 void SetUp() override { | 58 void SetUp() override { |
| 59 gpu_info_.gpu.vendor_id = 0x10de; | 59 gpu_info_.gpu.vendor_id = 0x10de; |
| 60 gpu_info_.gpu.device_id = 0x0640; | 60 gpu_info_.gpu.device_id = 0x0640; |
| 61 gpu_info_.driver_vendor = "NVIDIA"; | 61 gpu_info_.driver_vendor = "NVIDIA"; |
| 62 gpu_info_.driver_version = "1.6.18"; | 62 gpu_info_.driver_version = "1.6.18"; |
| 63 gpu_info_.driver_date = "7-14-2009"; | 63 gpu_info_.driver_date = "7-14-2009"; |
| 64 gpu_info_.machine_model_name = "MacBookPro"; | 64 gpu_info_.machine_model_name = "MacBookPro"; |
| 65 gpu_info_.machine_model_version = "7.1"; | 65 gpu_info_.machine_model_version = "7.1"; |
| 66 gpu_info_.gl_vendor = "NVIDIA Corporation"; | 66 gpu_info_.gl_vendor = "NVIDIA Corporation"; |
| 67 gpu_info_.gl_renderer = "NVIDIA GeForce GT 120 OpenGL Engine"; | 67 gpu_info_.gl_renderer = "NVIDIA GeForce GT 120 OpenGL Engine"; |
| 68 gpu_info_.performance_stats.graphics = 5.0; | |
| 69 gpu_info_.performance_stats.gaming = 5.0; | |
| 70 gpu_info_.performance_stats.overall = 5.0; | |
| 71 } | 68 } |
| 72 | 69 |
| 73 void TearDown() override {} | 70 void TearDown() override {} |
| 74 | 71 |
| 75 private: | 72 private: |
| 76 GPUInfo gpu_info_; | 73 GPUInfo gpu_info_; |
| 77 }; | 74 }; |
| 78 | 75 |
| 79 TEST_F(GpuBlacklistTest, CurrentBlacklistValidation) { | 76 TEST_F(GpuBlacklistTest, CurrentBlacklistValidation) { |
| 80 scoped_ptr<GpuBlacklist> blacklist(GpuBlacklist::Create()); | 77 scoped_ptr<GpuBlacklist> blacklist(GpuBlacklist::Create()); |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 | 118 |
| 122 GPU_BLACKLIST_FEATURE_TEST(PanelFitting, | 119 GPU_BLACKLIST_FEATURE_TEST(PanelFitting, |
| 123 "panel_fitting", | 120 "panel_fitting", |
| 124 GPU_FEATURE_TYPE_PANEL_FITTING) | 121 GPU_FEATURE_TYPE_PANEL_FITTING) |
| 125 | 122 |
| 126 GPU_BLACKLIST_FEATURE_TEST(GpuRasterization, | 123 GPU_BLACKLIST_FEATURE_TEST(GpuRasterization, |
| 127 "gpu_rasterization", | 124 "gpu_rasterization", |
| 128 GPU_FEATURE_TYPE_GPU_RASTERIZATION) | 125 GPU_FEATURE_TYPE_GPU_RASTERIZATION) |
| 129 | 126 |
| 130 } // namespace gpu | 127 } // namespace gpu |
| OLD | NEW |