Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(878)

Side by Side Diff: sky/engine/core/css/parser/SizesCalcParserTest.cpp

Issue 746023002: Make absolute and sort all Sky headers (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « sky/engine/core/css/parser/SizesCalcParser.cpp ('k') | sky/engine/core/css/resolver/AnimatedStyleBuilder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698