Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "core/editing/markers/GrammarMarker.h" | |
| 6 | |
| 7 #include "testing/gtest/include/gtest/gtest.h" | |
| 8 | |
| 9 namespace blink { | |
| 10 | |
| 11 const char* const kDescription = "Test description"; | |
| 12 | |
| 13 class GrammarMarkerTest : public ::testing::Test {}; | |
| 14 | |
| 15 TEST_F(GrammarMarkerTest, MarkerType) { | |
|
yosin_UTC9
2017/06/01 05:45:40
Could you add a test case for IsSpellCheckerMarker
| |
| 16 DocumentMarker* marker = new GrammarMarker(0, 1, kDescription); | |
| 17 EXPECT_EQ(DocumentMarker::kGrammar, marker->GetType()); | |
| 18 } | |
| 19 | |
| 20 TEST_F(GrammarMarkerTest, ConstructorAndGetters) { | |
| 21 GrammarMarker* marker = new GrammarMarker(0, 1, kDescription); | |
| 22 EXPECT_EQ(kDescription, marker->Description()); | |
| 23 } | |
| 24 | |
| 25 } // namespace blink | |
| OLD | NEW |