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

Side by Side Diff: content/common/gpu_feature_flags_unittest.cc

Issue 6672064: Move gpu_feature_flags from chrome\common to content\browser since it's only ... (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/common/gpu_feature_flags.cc ('k') | no next file » | 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 "chrome/common/gpu_feature_flags.h" 5 #include "content/common/gpu_feature_flags.h"
6 #include "testing/gtest/include/gtest/gtest.h" 6 #include "testing/gtest/include/gtest/gtest.h"
7 7
8 TEST(GpuFeatureFlagsTest, GpuFeatureFlagsBasic) { 8 TEST(GpuFeatureFlagsTest, GpuFeatureFlagsBasic) {
9 // Test that by default all flags are set to false. 9 // Test that by default all flags are set to false.
10 GpuFeatureFlags flags; 10 GpuFeatureFlags flags;
11 EXPECT_EQ(flags.flags(), 0u); 11 EXPECT_EQ(flags.flags(), 0u);
12 12
13 // Test SetFlags(). 13 // Test SetFlags().
14 GpuFeatureFlags flags2; 14 GpuFeatureFlags flags2;
15 flags2.set_flags(GpuFeatureFlags::kGpuFeatureAcceleratedCompositing | 15 flags2.set_flags(GpuFeatureFlags::kGpuFeatureAcceleratedCompositing |
(...skipping 29 matching lines...) Expand all
45 EXPECT_EQ(GpuFeatureFlags::StringToGpuFeatureType("webgl"), 45 EXPECT_EQ(GpuFeatureFlags::StringToGpuFeatureType("webgl"),
46 GpuFeatureFlags::kGpuFeatureWebgl); 46 GpuFeatureFlags::kGpuFeatureWebgl);
47 EXPECT_EQ(GpuFeatureFlags::StringToGpuFeatureType("multisampling"), 47 EXPECT_EQ(GpuFeatureFlags::StringToGpuFeatureType("multisampling"),
48 GpuFeatureFlags::kGpuFeatureMultisampling); 48 GpuFeatureFlags::kGpuFeatureMultisampling);
49 EXPECT_EQ(GpuFeatureFlags::StringToGpuFeatureType("all"), 49 EXPECT_EQ(GpuFeatureFlags::StringToGpuFeatureType("all"),
50 GpuFeatureFlags::kGpuFeatureAll); 50 GpuFeatureFlags::kGpuFeatureAll);
51 EXPECT_EQ(GpuFeatureFlags::StringToGpuFeatureType("xxx"), 51 EXPECT_EQ(GpuFeatureFlags::StringToGpuFeatureType("xxx"),
52 GpuFeatureFlags::kGpuFeatureUnknown); 52 GpuFeatureFlags::kGpuFeatureUnknown);
53 } 53 }
54 54
OLDNEW
« no previous file with comments | « content/common/gpu_feature_flags.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698