| 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 "sky/engine/config.h" | |
| 6 #include "sky/engine/core/css/MediaQuery.h" | 5 #include "sky/engine/core/css/MediaQuery.h" |
| 7 | 6 |
| 8 #include "sky/engine/core/css/MediaList.h" | 7 #include "sky/engine/core/css/MediaList.h" |
| 9 #include "sky/engine/wtf/PassOwnPtr.h" | 8 #include "sky/engine/wtf/PassOwnPtr.h" |
| 10 #include "sky/engine/wtf/text/StringBuilder.h" | 9 #include "sky/engine/wtf/text/StringBuilder.h" |
| 11 | 10 |
| 12 #include <gtest/gtest.h> | 11 #include <gtest/gtest.h> |
| 13 | 12 |
| 14 namespace blink { | 13 namespace blink { |
| 15 | 14 |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 | 161 |
| 163 for (unsigned i = 0; testCases[i].input; ++i) { | 162 for (unsigned i = 0; testCases[i].input; ++i) { |
| 164 RefPtr<MediaQuerySet> oldParserQuerySet = MediaQuerySet::create(testCase
s[i].input); | 163 RefPtr<MediaQuerySet> oldParserQuerySet = MediaQuerySet::create(testCase
s[i].input); |
| 165 RefPtr<MediaQuerySet> threadSafeQuerySet = MediaQuerySet::createOffMainT
hread(testCases[i].input); | 164 RefPtr<MediaQuerySet> threadSafeQuerySet = MediaQuerySet::createOffMainT
hread(testCases[i].input); |
| 166 testMediaQuery(testCases[i], *oldParserQuerySet, true); | 165 testMediaQuery(testCases[i], *oldParserQuerySet, true); |
| 167 testMediaQuery(testCases[i], *threadSafeQuerySet, false); | 166 testMediaQuery(testCases[i], *threadSafeQuerySet, false); |
| 168 } | 167 } |
| 169 } | 168 } |
| 170 | 169 |
| 171 } // namespace | 170 } // namespace |
| OLD | NEW |