| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 #ifndef RuntimeEnabledFeaturesTestHelpers_h | 5 #ifndef RuntimeEnabledFeaturesTestHelpers_h |
| 6 #define RuntimeEnabledFeaturesTestHelpers_h | 6 #define RuntimeEnabledFeaturesTestHelpers_h |
| 7 | 7 |
| 8 #include "platform/RuntimeEnabledFeatures.h" | 8 #include "platform/RuntimeEnabledFeatures.h" |
| 9 #include "wtf/Assertions.h" | 9 #include "wtf/Assertions.h" |
| 10 | 10 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 { | 24 { |
| 25 CHECK_EQ(m_enabled, getter()); | 25 CHECK_EQ(m_enabled, getter()); |
| 26 setter(m_original); | 26 setter(m_original); |
| 27 } | 27 } |
| 28 | 28 |
| 29 private: | 29 private: |
| 30 bool m_enabled; | 30 bool m_enabled; |
| 31 bool m_original; | 31 bool m_original; |
| 32 }; | 32 }; |
| 33 | 33 |
| 34 typedef ScopedRuntimeEnabledFeatureForTest<RuntimeEnabledFeatures::compositeOpaq
ueFixedPositionEnabled, RuntimeEnabledFeatures::setCompositeOpaqueFixedPositionE
nabled> ScopedCompositeFixedPositionForTest; |
| 34 typedef ScopedRuntimeEnabledFeatureForTest<RuntimeEnabledFeatures::compositorWor
kerEnabled, RuntimeEnabledFeatures::setCompositorWorkerEnabled> ScopedCompositor
WorkerForTest; | 35 typedef ScopedRuntimeEnabledFeatureForTest<RuntimeEnabledFeatures::compositorWor
kerEnabled, RuntimeEnabledFeatures::setCompositorWorkerEnabled> ScopedCompositor
WorkerForTest; |
| 35 typedef ScopedRuntimeEnabledFeatureForTest<RuntimeEnabledFeatures::rootLayerScro
llingEnabled, RuntimeEnabledFeatures::setRootLayerScrollingEnabled> ScopedRootLa
yerScrollingForTest; | 36 typedef ScopedRuntimeEnabledFeatureForTest<RuntimeEnabledFeatures::rootLayerScro
llingEnabled, RuntimeEnabledFeatures::setRootLayerScrollingEnabled> ScopedRootLa
yerScrollingForTest; |
| 36 typedef ScopedRuntimeEnabledFeatureForTest<RuntimeEnabledFeatures::slimmingPaint
V2Enabled, RuntimeEnabledFeatures::setSlimmingPaintV2Enabled> ScopedSlimmingPain
tV2ForTest; | 37 typedef ScopedRuntimeEnabledFeatureForTest<RuntimeEnabledFeatures::slimmingPaint
V2Enabled, RuntimeEnabledFeatures::setSlimmingPaintV2Enabled> ScopedSlimmingPain
tV2ForTest; |
| 37 | 38 |
| 38 } // namespace blink | 39 } // namespace blink |
| 39 | 40 |
| 40 #endif // RuntimeEnabledFeaturesTestHelpers_h | 41 #endif // RuntimeEnabledFeaturesTestHelpers_h |
| OLD | NEW |