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

Unified Diff: third_party/WebKit/Source/core/editing/markers/DocumentMarkerTest.cpp

Issue 2905753002: [DMC #17] Make TextMatchMarkers constructible in single step (Closed)
Patch Set: Fix build error 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/editing/markers/DocumentMarkerTest.cpp
diff --git a/third_party/WebKit/Source/core/editing/markers/DocumentMarkerTest.cpp b/third_party/WebKit/Source/core/editing/markers/DocumentMarkerTest.cpp
index aa9d87faf163695f0c3deed254161d3f1762ebd8..1291ad29ae6391d73b7ef2e010d6a062f4d4a41c 100644
--- a/third_party/WebKit/Source/core/editing/markers/DocumentMarkerTest.cpp
+++ b/third_party/WebKit/Source/core/editing/markers/DocumentMarkerTest.cpp
@@ -4,6 +4,7 @@
#include "core/editing/markers/DocumentMarker.h"
+#include "core/editing/markers/TextMatchMarker.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace blink {
@@ -13,8 +14,8 @@ using MarkerOffsets = DocumentMarker::MarkerOffsets;
class DocumentMarkerTest : public ::testing::Test {
protected:
DocumentMarker* CreateMarker(unsigned startOffset, unsigned endOffset) {
- return new DocumentMarker(startOffset, endOffset,
- DocumentMarker::MatchStatus::kInactive);
+ return new TextMatchMarker(startOffset, endOffset,
rlanday 2017/05/31 02:03:30 This is the fix: use the new TextMatchMarker const
+ DocumentMarker::MatchStatus::kInactive);
}
};

Powered by Google App Engine
This is Rietveld 408576698