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 "core/css/MediaQuery.h" | 5 #include "core/css/MediaQuery.h" |
6 | 6 |
7 #include "core/css/MediaList.h" | 7 #include "core/css/MediaList.h" |
8 #include "testing/gtest/include/gtest/gtest.h" | 8 #include "testing/gtest/include/gtest/gtest.h" |
9 #include "wtf/PassOwnPtr.h" | 9 #include "wtf/PassOwnPtr.h" |
10 #include "wtf/text/StringBuilder.h" | 10 #include "wtf/text/StringBuilder.h" |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 {"only not", "not all", true}, | 164 {"only not", "not all", true}, |
165 {"only and", "not all", true}, | 165 {"only and", "not all", true}, |
166 {"only only", "not all", true}, | 166 {"only only", "not all", true}, |
167 {"only or", "not all", true}, | 167 {"only or", "not all", true}, |
168 {"not (orientation)", "not all", true}, | 168 {"not (orientation)", "not all", true}, |
169 {"only (orientation)", "not all", true}, | 169 {"only (orientation)", "not all", true}, |
170 {0, 0} // Do not remove the terminator line. | 170 {0, 0} // Do not remove the terminator line. |
171 }; | 171 }; |
172 | 172 |
173 for (unsigned i = 0; testCases[i].input; ++i) { | 173 for (unsigned i = 0; testCases[i].input; ++i) { |
174 RawPtr<MediaQuerySet> oldParserQuerySet = MediaQuerySet::create(testCase
s[i].input); | 174 MediaQuerySet* oldParserQuerySet = MediaQuerySet::create(testCases[i].in
put); |
175 RawPtr<MediaQuerySet> threadSafeQuerySet = MediaQuerySet::createOffMainT
hread(testCases[i].input); | 175 MediaQuerySet* threadSafeQuerySet = MediaQuerySet::createOffMainThread(t
estCases[i].input); |
176 testMediaQuery(testCases[i], *oldParserQuerySet, true); | 176 testMediaQuery(testCases[i], *oldParserQuerySet, true); |
177 testMediaQuery(testCases[i], *threadSafeQuerySet, false); | 177 testMediaQuery(testCases[i], *threadSafeQuerySet, false); |
178 } | 178 } |
179 } | 179 } |
180 | 180 |
181 } // namespace blink | 181 } // namespace blink |
OLD | NEW |