diff options
Diffstat (limited to 'chromium/third_party/blink/renderer/core/editing/markers/unsorted_document_marker_list_editor_test.cc')
-rw-r--r-- | chromium/third_party/blink/renderer/core/editing/markers/unsorted_document_marker_list_editor_test.cc | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/chromium/third_party/blink/renderer/core/editing/markers/unsorted_document_marker_list_editor_test.cc b/chromium/third_party/blink/renderer/core/editing/markers/unsorted_document_marker_list_editor_test.cc index 2783c293fa1..71bc279b670 100644 --- a/chromium/third_party/blink/renderer/core/editing/markers/unsorted_document_marker_list_editor_test.cc +++ b/chromium/third_party/blink/renderer/core/editing/markers/unsorted_document_marker_list_editor_test.cc @@ -16,12 +16,13 @@ namespace blink { class UnsortedDocumentMarkerListEditorTest : public testing::Test { public: UnsortedDocumentMarkerListEditorTest() - : marker_list_(new HeapVector<Member<DocumentMarker>>) {} + : marker_list_( + MakeGarbageCollected<HeapVector<Member<DocumentMarker>>>()) {} protected: DocumentMarker* CreateMarker(unsigned start_offset, unsigned end_offset) { - return new SuggestionMarker(start_offset, end_offset, - SuggestionMarkerProperties()); + return MakeGarbageCollected<SuggestionMarker>(start_offset, end_offset, + SuggestionMarkerProperties()); } Persistent<HeapVector<Member<DocumentMarker>>> marker_list_; @@ -40,7 +41,8 @@ TEST_F(UnsortedDocumentMarkerListEditorTest, MoveMarkers) { marker_list_->push_back(CreateMarker(10, 20)); marker_list_->push_back(CreateMarker(11, 21)); - DocumentMarkerList* dst_list = new SuggestionMarkerListImpl(); + DocumentMarkerList* dst_list = + MakeGarbageCollected<SuggestionMarkerListImpl>(); // The markers with start and end offset < 11 should be moved to dst_list. // Markers that start before 11 and end at 11 or later should be removed. // Markers that start at 11 or later should not be moved. |