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

Unified Diff: gpu/config/gpu_control_list_number_info_unittest.cc

Issue 194303002: Blacklist GLX indirect rendering (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix android Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gpu/config/gpu_control_list_format.txt ('k') | gpu/config/gpu_info.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/config/gpu_control_list_number_info_unittest.cc
diff --git a/gpu/config/gpu_control_list_number_info_unittest.cc b/gpu/config/gpu_control_list_number_info_unittest.cc
index 5bd732cf91e11aafd6c6f6677830c1f66ae06a8f..bbddcb947fb46efda723814b5378a80a23ed7fac 100644
--- a/gpu/config/gpu_control_list_number_info_unittest.cc
+++ b/gpu/config/gpu_control_list_number_info_unittest.cc
@@ -14,6 +14,7 @@ class NumberInfoTest : public testing::Test {
typedef GpuControlList::FloatInfo FloatInfo;
typedef GpuControlList::IntInfo IntInfo;
+ typedef GpuControlList::BoolInfo BoolInfo;
};
TEST_F(NumberInfoTest, ValidFloatInfo) {
@@ -206,5 +207,18 @@ TEST_F(NumberInfoTest, IntComparison) {
}
}
+TEST_F(NumberInfoTest, Bool) {
+ {
+ BoolInfo info(true);
+ EXPECT_TRUE(info.Contains(true));
+ EXPECT_FALSE(info.Contains(false));
+ }
+ {
+ BoolInfo info(false);
+ EXPECT_FALSE(info.Contains(true));
+ EXPECT_TRUE(info.Contains(false));
+ }
+}
+
} // namespace gpu
« no previous file with comments | « gpu/config/gpu_control_list_format.txt ('k') | gpu/config/gpu_info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698