| 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/logging.h" | 5 #include "base/logging.h" |
| 6 #include "base/memory/scoped_ptr.h" | 6 #include "base/memory/scoped_ptr.h" |
| 7 #include "gpu/config/gpu_control_list_jsons.h" | 7 #include "gpu/config/gpu_control_list_jsons.h" |
| 8 #include "gpu/config/gpu_driver_bug_list.h" | 8 #include "gpu/config/gpu_driver_bug_list.h" |
| 9 #include "gpu/config/gpu_driver_bug_workaround_type.h" | 9 #include "gpu/config/gpu_driver_bug_workaround_type.h" |
| 10 #include "gpu/config/gpu_info.h" | 10 #include "gpu/config/gpu_info.h" |
| 11 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" |
| 12 | 12 |
| 13 const char kOsVersion[] = "10.6.4"; | |
| 14 | |
| 15 namespace gpu { | 13 namespace gpu { |
| 16 | 14 |
| 17 class GpuDriverBugListTest : public testing::Test { | 15 class GpuDriverBugListTest : public testing::Test { |
| 18 public: | 16 public: |
| 19 GpuDriverBugListTest() { } | 17 GpuDriverBugListTest() { } |
| 20 | 18 |
| 21 virtual ~GpuDriverBugListTest() { } | 19 virtual ~GpuDriverBugListTest() { } |
| 22 | 20 |
| 23 const GPUInfo& gpu_info() const { | 21 const GPUInfo& gpu_info() const { |
| 24 return gpu_info_; | 22 return gpu_info_; |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 GPUInfo gpu_info; | 69 GPUInfo gpu_info; |
| 72 gpu_info.gl_vendor = "Imagination Technologies"; | 70 gpu_info.gl_vendor = "Imagination Technologies"; |
| 73 gpu_info.gl_renderer = "PowerVR SGX 540"; | 71 gpu_info.gl_renderer = "PowerVR SGX 540"; |
| 74 std::set<int> bugs = list->MakeDecision( | 72 std::set<int> bugs = list->MakeDecision( |
| 75 GpuControlList::kOsAndroid, "4.1", gpu_info); | 73 GpuControlList::kOsAndroid, "4.1", gpu_info); |
| 76 EXPECT_EQ(1u, bugs.count(USE_CLIENT_SIDE_ARRAYS_FOR_STREAM_BUFFERS)); | 74 EXPECT_EQ(1u, bugs.count(USE_CLIENT_SIDE_ARRAYS_FOR_STREAM_BUFFERS)); |
| 77 } | 75 } |
| 78 | 76 |
| 79 } // namespace gpu | 77 } // namespace gpu |
| 80 | 78 |
| OLD | NEW |