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

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

Issue 2050123002: Remove OwnPtr from Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: First attempt to land. Created 4 years, 6 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 "testing/gtest/include/gtest/gtest.h" 8 #include "testing/gtest/include/gtest/gtest.h"
9 #include "wtf/PassOwnPtr.h"
10 #include "wtf/text/StringBuilder.h" 9 #include "wtf/text/StringBuilder.h"
11 10
12 namespace blink { 11 namespace blink {
13 12
14 typedef struct { 13 typedef struct {
15 const char* input; 14 const char* input;
16 const char* output; 15 const char* output;
17 bool shouldWorkOnOldParser; 16 bool shouldWorkOnOldParser;
18 } TestCase; 17 } TestCase;
19 18
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 171
173 for (unsigned i = 0; testCases[i].input; ++i) { 172 for (unsigned i = 0; testCases[i].input; ++i) {
174 MediaQuerySet* oldParserQuerySet = MediaQuerySet::create(testCases[i].in put); 173 MediaQuerySet* oldParserQuerySet = MediaQuerySet::create(testCases[i].in put);
175 MediaQuerySet* threadSafeQuerySet = MediaQuerySet::createOffMainThread(t estCases[i].input); 174 MediaQuerySet* threadSafeQuerySet = MediaQuerySet::createOffMainThread(t estCases[i].input);
176 testMediaQuery(testCases[i], *oldParserQuerySet, true); 175 testMediaQuery(testCases[i], *oldParserQuerySet, true);
177 testMediaQuery(testCases[i], *threadSafeQuerySet, false); 176 testMediaQuery(testCases[i], *threadSafeQuerySet, false);
178 } 177 }
179 } 178 }
180 179
181 } // namespace blink 180 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698