1 // Copyright 2017 The Chromium Authors. All rights reserved. Use of 2 // this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #include "third_party/blink/renderer/core/editing/markers/spell_check_marker_list_impl.h" 6 7 #include "testing/gtest/include/gtest/gtest.h" 8 #include "third_party/blink/renderer/core/editing/markers/grammar_marker_list_impl.h" 9 #include "third_party/blink/renderer/platform/heap/persistent.h" 10 11 namespace blink { 12 13 // Functionality implemented in SpellCheckMarkerListImpl is tested in 14 // spelling_marker_list_impl_test.cc. 15 16 class GrammarMarkerListImplTest : public testing::Test { 17 protected: GrammarMarkerListImplTest()18 GrammarMarkerListImplTest() 19 : marker_list_(MakeGarbageCollected<GrammarMarkerListImpl>()) {} 20 21 Persistent<GrammarMarkerListImpl> marker_list_; 22 }; 23 24 // Test cases for functionality implemented by GrammarMarkerListImpl. 25 TEST_F(GrammarMarkerListImplTest,MarkerType)26TEST_F(GrammarMarkerListImplTest, MarkerType) { 27 EXPECT_EQ(DocumentMarker::kGrammar, marker_list_->MarkerType()); 28 } 29 30 } // namespace 31