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

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

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/resolver/MatchResult.h" 5 #include "core/css/resolver/MatchResult.h"
6 6
7 #include "core/css/StylePropertySet.h" 7 #include "core/css/StylePropertySet.h"
8 #include "testing/gtest/include/gtest/gtest.h" 8 #include "testing/gtest/include/gtest/gtest.h"
9 9
10 namespace blink { 10 namespace blink {
11 11
12 class MatchResultTest : public ::testing::Test { 12 class MatchResultTest : public ::testing::Test {
13 protected: 13 protected:
14 void SetUp() override; 14 void SetUp() override;
15 15
16 const StylePropertySet* propertySet(unsigned index) const 16 const StylePropertySet* propertySet(unsigned index) const
17 { 17 {
18 return propertySets[index].get(); 18 return propertySets[index].get();
19 } 19 }
20 20
21 private: 21 private:
22 WillBePersistentHeapVector<RefPtrWillBeMember<MutableStylePropertySet>, 6> p ropertySets; 22 PersistentHeapVector<Member<MutableStylePropertySet>, 6> propertySets;
23 }; 23 };
24 24
25 void MatchResultTest::SetUp() 25 void MatchResultTest::SetUp()
26 { 26 {
27 for (unsigned i = 0; i < 6; i++) 27 for (unsigned i = 0; i < 6; i++)
28 propertySets.append(MutableStylePropertySet::create(HTMLQuirksMode)); 28 propertySets.append(MutableStylePropertySet::create(HTMLQuirksMode));
29 } 29 }
30 30
31 void testMatchedPropertiesRange(const MatchedPropertiesRange& range, int expecte dLength, const StylePropertySet** expectedSets) 31 void testMatchedPropertiesRange(const MatchedPropertiesRange& range, int expecte dLength, const StylePropertySet** expectedSets)
32 { 32 {
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 163
164 ++iter; 164 ++iter;
165 EXPECT_NE(important.end(), iter); 165 EXPECT_NE(important.end(), iter);
166 testMatchedPropertiesRange(*iter, 2, authorSets); 166 testMatchedPropertiesRange(*iter, 2, authorSets);
167 167
168 ++iter; 168 ++iter;
169 EXPECT_EQ(important.end(), iter); 169 EXPECT_EQ(important.end(), iter);
170 } 170 }
171 171
172 } // namespace blink 172 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698