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

Unified Diff: content/browser/gpu/gpu_util_unittest.cc

Issue 10959061: Revert 158076 - Implement blacklist's force GPU capability in dual GPU machines. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/gpu/gpu_util.cc ('k') | content/content_common.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/gpu/gpu_util_unittest.cc
===================================================================
--- content/browser/gpu/gpu_util_unittest.cc (revision 158210)
+++ content/browser/gpu/gpu_util_unittest.cc (working copy)
@@ -4,7 +4,6 @@
#include "content/browser/gpu/gpu_util.h"
#include "testing/gtest/include/gtest/gtest.h"
-#include "ui/gl/gl_switches.h"
using content::GpuFeatureType;
@@ -89,32 +88,13 @@
TEST(GpuUtilsTest, GpuSwitchingOptionFromString) {
// Test StringToGpuSwitchingOption.
- EXPECT_EQ(gpu_util::StringToGpuSwitchingOption(
- switches::kGpuSwitchingOptionNameAutomatic),
- content::GPU_SWITCHING_OPTION_AUTOMATIC);
- EXPECT_EQ(gpu_util::StringToGpuSwitchingOption(
- switches::kGpuSwitchingOptionNameForceDiscrete),
- content::GPU_SWITCHING_OPTION_FORCE_DISCRETE);
- EXPECT_EQ(gpu_util::StringToGpuSwitchingOption(
- switches::kGpuSwitchingOptionNameForceIntegrated),
- content::GPU_SWITCHING_OPTION_FORCE_INTEGRATED);
+ EXPECT_EQ(gpu_util::StringToGpuSwitchingOption("automatic"),
+ content::GPU_SWITCHING_AUTOMATIC);
+ EXPECT_EQ(gpu_util::StringToGpuSwitchingOption("force_discrete"),
+ content::GPU_SWITCHING_FORCE_DISCRETE);
+ EXPECT_EQ(gpu_util::StringToGpuSwitchingOption("force_integrated"),
+ content::GPU_SWITCHING_FORCE_INTEGRATED);
EXPECT_EQ(gpu_util::StringToGpuSwitchingOption("xxx"),
- content::GPU_SWITCHING_OPTION_UNKNOWN);
+ content::GPU_SWITCHING_UNKNOWN);
}
-TEST(GpuUtilsTest, GpuSwitchingOptionToString) {
- // Test GpuSwitchingOptionToString.
- EXPECT_STREQ(
- gpu_util::GpuSwitchingOptionToString(
- content::GPU_SWITCHING_OPTION_AUTOMATIC).c_str(),
- switches::kGpuSwitchingOptionNameAutomatic);
- EXPECT_STREQ(
- gpu_util::GpuSwitchingOptionToString(
- content::GPU_SWITCHING_OPTION_FORCE_DISCRETE).c_str(),
- switches::kGpuSwitchingOptionNameForceDiscrete);
- EXPECT_STREQ(
- gpu_util::GpuSwitchingOptionToString(
- content::GPU_SWITCHING_OPTION_FORCE_INTEGRATED).c_str(),
- switches::kGpuSwitchingOptionNameForceIntegrated);
-}
-
Property changes on: content/browser/gpu/gpu_util_unittest.cc
___________________________________________________________________
Deleted: svn:mergeinfo
« no previous file with comments | « content/browser/gpu/gpu_util.cc ('k') | content/content_common.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698