Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(188)

Side by Side Diff: gpu/config/gpu_driver_bug_list_unittest.cc

Issue 24579003: Clean up remaining unused globals (on mac). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: staticmedia Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « gpu/config/gpu_control_list_unittest.cc ('k') | jingle/glue/pseudotcp_adapter_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « gpu/config/gpu_control_list_unittest.cc ('k') | jingle/glue/pseudotcp_adapter_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698