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

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

Issue 2868413002: [DMC #5.55] Add DocumentMarkerList::MarkerType() (Closed)
Patch Set: GrammarMarkerListImplTest doesn't need CreateMarker() 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/GrammarMarkerListImplTest.cpp
diff --git a/third_party/WebKit/Source/core/editing/markers/GrammarMarkerListImplTest.cpp b/third_party/WebKit/Source/core/editing/markers/GrammarMarkerListImplTest.cpp
new file mode 100644
index 0000000000000000000000000000000000000000..a457a4afb7909ceb79740da3972795028384b1d6
--- /dev/null
+++ b/third_party/WebKit/Source/core/editing/markers/GrammarMarkerListImplTest.cpp
@@ -0,0 +1,29 @@
+// Copyright 2017 The Chromium Authors. All rights reserved. Use of
+// this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "core/editing/markers/SpellCheckMarkerListImpl.h"
+
+#include "core/editing/markers/GrammarMarkerListImpl.h"
+#include "platform/heap/Handle.h"
+#include "testing/gtest/include/gtest/gtest.h"
+
+namespace blink {
+
+// Functionality implemented in SpellCheckMarkerListImpl is tested in
+// GrammarMarkerListImplTest.cpp.
yosin_UTC9 2017/05/16 04:35:18 nit: s/GrammarMarkerListImplTest.cpp/SpellingMarke
+
+class GrammarMarkerListImplTest : public ::testing::Test {
+ protected:
+ GrammarMarkerListImplTest() : marker_list_(new GrammarMarkerListImpl()) {}
+
+ Persistent<GrammarMarkerListImpl> marker_list_;
+};
+
+// Test cases for functionality implemented by GrammarMarkerListImpl.
+
+TEST_F(GrammarMarkerListImplTest, MarkerType) {
+ EXPECT_EQ(DocumentMarker::kGrammar, marker_list_->MarkerType());
+}
+
+} // namespace

Powered by Google App Engine
This is Rietveld 408576698