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

Unified Diff: third_party/WebKit/Source/core/events/PointerEventFactoryTest.cpp

Issue 2585283002: Migrate WTF::Vector::append() to ::push_back() [part 6 of N] (Closed)
Patch Set: Created 4 years 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/events/PointerEventFactoryTest.cpp
diff --git a/third_party/WebKit/Source/core/events/PointerEventFactoryTest.cpp b/third_party/WebKit/Source/core/events/PointerEventFactoryTest.cpp
index 890ca9f26d1f623aaad47eddf858156d6edee0c6..b51a3d75f81672ce90f19c57b4dd629079ece352 100644
--- a/third_party/WebKit/Source/core/events/PointerEventFactoryTest.cpp
+++ b/third_party/WebKit/Source/core/events/PointerEventFactoryTest.cpp
@@ -133,8 +133,9 @@ PointerEvent* PointerEventFactoryTest::createAndCheckTouchEvent(
size_t coalescedEventCount) {
Vector<PlatformTouchPoint> coalescedEvents;
for (size_t i = 0; i < coalescedEventCount; i++) {
- coalescedEvents.append(PointerEventFactoryTest::PlatformTouchPointBuilder(
- pointerType, rawId, state));
+ coalescedEvents.push_back(
+ PointerEventFactoryTest::PlatformTouchPointBuilder(pointerType, rawId,
+ state));
}
PointerEvent* pointerEvent = m_pointerEventFactory.create(
PointerEventFactoryTest::PlatformTouchPointBuilder(pointerType, rawId,
@@ -163,8 +164,9 @@ PointerEvent* PointerEventFactoryTest::createAndCheckMouseEvent(
size_t coalescedEventCount) {
Vector<PlatformMouseEvent> coalescedEvents;
for (size_t i = 0; i < coalescedEventCount; i++) {
- coalescedEvents.append(PointerEventFactoryTest::PlatformMouseEventBuilder(
- pointerType, rawId, modifiers));
+ coalescedEvents.push_back(
+ PointerEventFactoryTest::PlatformMouseEventBuilder(pointerType, rawId,
+ modifiers));
}
PointerEvent* pointerEvent = m_pointerEventFactory.create(
coalescedEventCount ? EventTypeNames::mousemove

Powered by Google App Engine
This is Rietveld 408576698