| 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 15 matching lines...) Expand all Loading... |
| 26 private: | 26 private: |
| 27 bool m_enabled; | 27 bool m_enabled; |
| 28 bool m_original; | 28 bool m_original; |
| 29 }; | 29 }; |
| 30 | 30 |
| 31 typedef ScopedRuntimeEnabledFeatureForTest< | 31 typedef ScopedRuntimeEnabledFeatureForTest< |
| 32 RuntimeEnabledFeatures::compositeOpaqueFixedPositionEnabled, | 32 RuntimeEnabledFeatures::compositeOpaqueFixedPositionEnabled, |
| 33 RuntimeEnabledFeatures::setCompositeOpaqueFixedPositionEnabled> | 33 RuntimeEnabledFeatures::setCompositeOpaqueFixedPositionEnabled> |
| 34 ScopedCompositeFixedPositionForTest; | 34 ScopedCompositeFixedPositionForTest; |
| 35 typedef ScopedRuntimeEnabledFeatureForTest< | 35 typedef ScopedRuntimeEnabledFeatureForTest< |
| 36 RuntimeEnabledFeatures::compositeOpaqueScrollersEnabled, |
| 37 RuntimeEnabledFeatures::setCompositeOpaqueScrollersEnabled> |
| 38 ScopedCompositeOpaqueScrollersForTest; |
| 39 typedef ScopedRuntimeEnabledFeatureForTest< |
| 36 RuntimeEnabledFeatures::compositorWorkerEnabled, | 40 RuntimeEnabledFeatures::compositorWorkerEnabled, |
| 37 RuntimeEnabledFeatures::setCompositorWorkerEnabled> | 41 RuntimeEnabledFeatures::setCompositorWorkerEnabled> |
| 38 ScopedCompositorWorkerForTest; | 42 ScopedCompositorWorkerForTest; |
| 39 typedef ScopedRuntimeEnabledFeatureForTest< | 43 typedef ScopedRuntimeEnabledFeatureForTest< |
| 40 RuntimeEnabledFeatures::rootLayerScrollingEnabled, | 44 RuntimeEnabledFeatures::rootLayerScrollingEnabled, |
| 41 RuntimeEnabledFeatures::setRootLayerScrollingEnabled> | 45 RuntimeEnabledFeatures::setRootLayerScrollingEnabled> |
| 42 ScopedRootLayerScrollingForTest; | 46 ScopedRootLayerScrollingForTest; |
| 43 typedef ScopedRuntimeEnabledFeatureForTest< | 47 typedef ScopedRuntimeEnabledFeatureForTest< |
| 44 RuntimeEnabledFeatures::slimmingPaintV2Enabled, | 48 RuntimeEnabledFeatures::slimmingPaintV2Enabled, |
| 45 RuntimeEnabledFeatures::setSlimmingPaintV2Enabled> | 49 RuntimeEnabledFeatures::setSlimmingPaintV2Enabled> |
| 46 ScopedSlimmingPaintV2ForTest; | 50 ScopedSlimmingPaintV2ForTest; |
| 47 | 51 |
| 48 } // namespace blink | 52 } // namespace blink |
| 49 | 53 |
| 50 #endif // RuntimeEnabledFeaturesTestHelpers_h | 54 #endif // RuntimeEnabledFeaturesTestHelpers_h |
| OLD | NEW |