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 <vector> | 5 #include <vector> |
6 | 6 |
7 #include "base/memory/scoped_ptr.h" | 7 #include "base/memory/scoped_ptr.h" |
8 #include "gpu/config/gpu_control_list.h" | 8 #include "gpu/config/gpu_control_list.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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 return rt; | 45 return rt; |
46 } | 46 } |
47 | 47 |
48 protected: | 48 protected: |
49 virtual void SetUp() { | 49 virtual void SetUp() { |
50 gpu_info_.gpu.vendor_id = kNvidiaVendorId; | 50 gpu_info_.gpu.vendor_id = kNvidiaVendorId; |
51 gpu_info_.gpu.device_id = 0x0640; | 51 gpu_info_.gpu.device_id = 0x0640; |
52 gpu_info_.driver_vendor = "NVIDIA"; | 52 gpu_info_.driver_vendor = "NVIDIA"; |
53 gpu_info_.driver_version = "1.6.18"; | 53 gpu_info_.driver_version = "1.6.18"; |
54 gpu_info_.driver_date = "7-14-2009"; | 54 gpu_info_.driver_date = "7-14-2009"; |
55 gpu_info_.machine_model = "MacBookPro 7.1"; | 55 gpu_info_.machine_model_name = "MacBookPro"; |
| 56 gpu_info_.machine_model_version = "7.1"; |
56 gpu_info_.gl_vendor = "NVIDIA Corporation"; | 57 gpu_info_.gl_vendor = "NVIDIA Corporation"; |
57 gpu_info_.gl_renderer = "NVIDIA GeForce GT 120 OpenGL Engine"; | 58 gpu_info_.gl_renderer = "NVIDIA GeForce GT 120 OpenGL Engine"; |
58 gpu_info_.performance_stats.graphics = 5.0; | 59 gpu_info_.performance_stats.graphics = 5.0; |
59 gpu_info_.performance_stats.gaming = 5.0; | 60 gpu_info_.performance_stats.gaming = 5.0; |
60 gpu_info_.performance_stats.overall = 5.0; | 61 gpu_info_.performance_stats.overall = 5.0; |
61 } | 62 } |
62 | 63 |
63 virtual void TearDown() { | 64 virtual void TearDown() { |
64 } | 65 } |
65 | 66 |
(...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
442 EXPECT_EMPTY_SET(features); | 443 EXPECT_EMPTY_SET(features); |
443 | 444 |
444 gpu_info.driver_version = "9.0"; | 445 gpu_info.driver_version = "9.0"; |
445 features = control_list->MakeDecision( | 446 features = control_list->MakeDecision( |
446 GpuControlList::kOsLinux, kOsVersion, gpu_info); | 447 GpuControlList::kOsLinux, kOsVersion, gpu_info); |
447 EXPECT_SINGLE_FEATURE(features, TEST_FEATURE_0); | 448 EXPECT_SINGLE_FEATURE(features, TEST_FEATURE_0); |
448 } | 449 } |
449 | 450 |
450 } // namespace gpu | 451 } // namespace gpu |
451 | 452 |
OLD | NEW |