| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "config.h" | 5 #include "sky/engine/config.h" |
| 6 #include "core/css/parser/SizesCalcParser.h" | 6 #include "sky/engine/core/css/parser/SizesCalcParser.h" |
| 7 | 7 |
| 8 #include "gen/sky/core/MediaTypeNames.h" | 8 #include "gen/sky/core/MediaTypeNames.h" |
| 9 #include "core/css/CSSPrimitiveValue.h" | 9 #include "sky/engine/core/css/CSSPrimitiveValue.h" |
| 10 #include "core/css/MediaValuesCached.h" | 10 #include "sky/engine/core/css/MediaValuesCached.h" |
| 11 #include "core/css/StylePropertySet.h" | 11 #include "sky/engine/core/css/StylePropertySet.h" |
| 12 #include "core/css/parser/MediaQueryTokenizer.h" | 12 #include "sky/engine/core/css/parser/MediaQueryTokenizer.h" |
| 13 | 13 |
| 14 #include <gtest/gtest.h> | 14 #include <gtest/gtest.h> |
| 15 | 15 |
| 16 namespace blink { | 16 namespace blink { |
| 17 | 17 |
| 18 struct TestCase { | 18 struct TestCase { |
| 19 const char* input; | 19 const char* input; |
| 20 const unsigned output; | 20 const unsigned output; |
| 21 const bool valid; | 21 const bool valid; |
| 22 const bool dontRunInCSSCalc; | 22 const bool dontRunInCSSCalc; |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 } | 129 } |
| 130 | 130 |
| 131 for (unsigned i = 0; testCases[i].input; ++i) { | 131 for (unsigned i = 0; testCases[i].input; ++i) { |
| 132 if (testCases[i].dontRunInCSSCalc) | 132 if (testCases[i].dontRunInCSSCalc) |
| 133 continue; | 133 continue; |
| 134 verifyCSSCalc(testCases[i].input, testCases[i].output, testCases[i].vali
d, data.defaultFontSize, data.viewportWidth, data.viewportHeight); | 134 verifyCSSCalc(testCases[i].input, testCases[i].output, testCases[i].vali
d, data.defaultFontSize, data.viewportWidth, data.viewportHeight); |
| 135 } | 135 } |
| 136 } | 136 } |
| 137 | 137 |
| 138 } // namespace | 138 } // namespace |
| OLD | NEW |