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

Side by Side Diff: third_party/WebKit/Source/core/css/MediaQuerySetTest.cpp

Issue 2837023005: Move MediaQuery classes off BlinkGC heap (Closed)
Patch Set: fix Created 3 years, 7 months 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 "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 "platform/wtf/text/StringBuilder.h" 8 #include "platform/wtf/text/StringBuilder.h"
9 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/include/gtest/gtest.h"
10 10
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 {"only not", "not all"}, 175 {"only not", "not all"},
176 {"only and", "not all"}, 176 {"only and", "not all"},
177 {"only only", "not all"}, 177 {"only only", "not all"},
178 {"only or", "not all"}, 178 {"only or", "not all"},
179 {"not (orientation)", "not all"}, 179 {"not (orientation)", "not all"},
180 {"only (orientation)", "not all"}, 180 {"only (orientation)", "not all"},
181 {nullptr, nullptr} // Do not remove the terminator line. 181 {nullptr, nullptr} // Do not remove the terminator line.
182 }; 182 };
183 183
184 for (unsigned i = 0; test_cases[i].input; ++i) { 184 for (unsigned i = 0; test_cases[i].input; ++i) {
185 MediaQuerySet* query_set = MediaQuerySet::Create(test_cases[i].input); 185 RefPtr<MediaQuerySet> query_set =
186 MediaQuerySet::Create(test_cases[i].input);
186 TestMediaQuery(test_cases[i], *query_set); 187 TestMediaQuery(test_cases[i], *query_set);
187 } 188 }
188 } 189 }
189 190
190 } // namespace blink 191 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698