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

Side by Side Diff: content/browser/gpu_blacklist_unittest.cc

Issue 6673003: Move GPU messages to content. I've also switched the IPC structs to use the ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 9 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 | « content/browser/gpu_blacklist.cc ('k') | content/browser/gpu_process_host.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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/base_paths.h" 7 #include "base/base_paths.h"
8 #include "base/file_path.h" 8 #include "base/file_path.h"
9 #include "base/file_util.h" 9 #include "base/file_util.h"
10 #include "base/path_service.h" 10 #include "base/path_service.h"
11 #include "base/scoped_ptr.h" 11 #include "base/scoped_ptr.h"
12 #include "base/version.h" 12 #include "base/version.h"
13 #include "chrome/common/gpu_info.h"
14 #include "content/browser/gpu_blacklist.h" 13 #include "content/browser/gpu_blacklist.h"
14 #include "content/common/gpu_info.h"
15 #include "testing/gtest/include/gtest/gtest.h" 15 #include "testing/gtest/include/gtest/gtest.h"
16 16
17 class GpuBlacklistTest : public testing::Test { 17 class GpuBlacklistTest : public testing::Test {
18 public: 18 public:
19 GpuBlacklistTest() { } 19 GpuBlacklistTest() { }
20 20
21 virtual ~GpuBlacklistTest() { } 21 virtual ~GpuBlacklistTest() { }
22 22
23 const GPUInfo& gpu_info() const { 23 const GPUInfo& gpu_info() const {
24 return gpu_info_; 24 return gpu_info_;
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after
382 flags = blacklist.DetermineGpuFeatureFlags( 382 flags = blacklist.DetermineGpuFeatureFlags(
383 GpuBlacklist::kOsWin, os_version.get(), gpu_info()); 383 GpuBlacklist::kOsWin, os_version.get(), gpu_info());
384 EXPECT_EQ(flags.flags(), 384 EXPECT_EQ(flags.flags(),
385 static_cast<uint32>(GpuFeatureFlags::kGpuFeatureMultisampling)); 385 static_cast<uint32>(GpuFeatureFlags::kGpuFeatureMultisampling));
386 flags = blacklist.DetermineGpuFeatureFlags( 386 flags = blacklist.DetermineGpuFeatureFlags(
387 GpuBlacklist::kOsLinux, os_version.get(), gpu_info()); 387 GpuBlacklist::kOsLinux, os_version.get(), gpu_info());
388 EXPECT_EQ(flags.flags(), 388 EXPECT_EQ(flags.flags(),
389 static_cast<uint32>(GpuFeatureFlags::kGpuFeatureMultisampling)); 389 static_cast<uint32>(GpuFeatureFlags::kGpuFeatureMultisampling));
390 } 390 }
391 391
OLDNEW
« no previous file with comments | « content/browser/gpu_blacklist.cc ('k') | content/browser/gpu_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698