| OLD | NEW |
| 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 "gpu/config/gpu_control_list.h" | 5 #include "gpu/config/gpu_control_list.h" |
| 6 #include "testing/gtest/include/gtest/gtest.h" | 6 #include "testing/gtest/include/gtest/gtest.h" |
| 7 | 7 |
| 8 namespace gpu { | 8 namespace gpu { |
| 9 | 9 |
| 10 class NumberInfoTest : public testing::Test { | 10 class NumberInfoTest : public testing::Test { |
| 11 public: | 11 public: |
| 12 NumberInfoTest() { } | 12 NumberInfoTest() { } |
| 13 virtual ~NumberInfoTest() { } | 13 ~NumberInfoTest() override {} |
| 14 | 14 |
| 15 typedef GpuControlList::FloatInfo FloatInfo; | 15 typedef GpuControlList::FloatInfo FloatInfo; |
| 16 typedef GpuControlList::IntInfo IntInfo; | 16 typedef GpuControlList::IntInfo IntInfo; |
| 17 typedef GpuControlList::BoolInfo BoolInfo; | 17 typedef GpuControlList::BoolInfo BoolInfo; |
| 18 }; | 18 }; |
| 19 | 19 |
| 20 TEST_F(NumberInfoTest, ValidFloatInfo) { | 20 TEST_F(NumberInfoTest, ValidFloatInfo) { |
| 21 const std::string op[] = { | 21 const std::string op[] = { |
| 22 "=", | 22 "=", |
| 23 "<", | 23 "<", |
| (...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 215 } | 215 } |
| 216 { | 216 { |
| 217 BoolInfo info(false); | 217 BoolInfo info(false); |
| 218 EXPECT_FALSE(info.Contains(true)); | 218 EXPECT_FALSE(info.Contains(true)); |
| 219 EXPECT_TRUE(info.Contains(false)); | 219 EXPECT_TRUE(info.Contains(false)); |
| 220 } | 220 } |
| 221 } | 221 } |
| 222 | 222 |
| 223 } // namespace gpu | 223 } // namespace gpu |
| 224 | 224 |
| OLD | NEW |