| OLD | NEW |
| 1 // Use of this source code is governed by a BSD-style license that can be | 1 // Use of this source code is governed by a BSD-style license that can be |
| 2 // Copyright 2014 The Chromium Authors. All rights reserved. | 2 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 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/MediaValues.h" | 6 #include "sky/engine/core/css/MediaValues.h" |
| 7 | 7 |
| 8 #include "core/css/CSSPrimitiveValue.h" | 8 #include "sky/engine/core/css/CSSPrimitiveValue.h" |
| 9 #include "wtf/text/StringBuilder.h" | 9 #include "sky/engine/wtf/text/StringBuilder.h" |
| 10 | 10 |
| 11 #include <gtest/gtest.h> | 11 #include <gtest/gtest.h> |
| 12 | 12 |
| 13 namespace blink { | 13 namespace blink { |
| 14 | 14 |
| 15 struct TestCase { | 15 struct TestCase { |
| 16 double value; | 16 double value; |
| 17 CSSPrimitiveValue::UnitType type; | 17 CSSPrimitiveValue::UnitType type; |
| 18 unsigned fontSize; | 18 unsigned fontSize; |
| 19 unsigned viewportWidth; | 19 unsigned viewportWidth; |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 testCases[i].viewportWidth, | 52 testCases[i].viewportWidth, |
| 53 testCases[i].viewportHeight, | 53 testCases[i].viewportHeight, |
| 54 output); | 54 output); |
| 55 ASSERT_EQ(testCases[i].success, success); | 55 ASSERT_EQ(testCases[i].success, success); |
| 56 if (success) | 56 if (success) |
| 57 ASSERT_EQ(testCases[i].output, output); | 57 ASSERT_EQ(testCases[i].output, output); |
| 58 } | 58 } |
| 59 } | 59 } |
| 60 | 60 |
| 61 } // namespace | 61 } // namespace |
| OLD | NEW |