| Index: chrome/browser/spellchecker/feedback_unittest.cc
|
| diff --git a/chrome/browser/spellchecker/feedback_unittest.cc b/chrome/browser/spellchecker/feedback_unittest.cc
|
| index 2a8cfa26397559ef9ed9d99324798d95b926cb63..dca9cedb432cf64d8cf03e4eed7389e2faaf1f70 100644
|
| --- a/chrome/browser/spellchecker/feedback_unittest.cc
|
| +++ b/chrome/browser/spellchecker/feedback_unittest.cc
|
| @@ -59,6 +59,17 @@ TEST_F(FeedbackTest, FinalizeRemovedMisspellings) {
|
| EXPECT_FALSE(remaining_misspelling->action.IsFinal());
|
| }
|
|
|
| +// Duplicate misspellings should not be finalized.
|
| +TEST_F(FeedbackTest, DuplicateMisspellingFinalization) {
|
| + AddMisspelling(kRendererProcessId, kMisspellingHash);
|
| + AddMisspelling(kRendererProcessId, kMisspellingHash);
|
| + std::vector<uint32> remaining_markers(1, kMisspellingHash);
|
| + feedback_.FinalizeRemovedMisspellings(kRendererProcessId, remaining_markers);
|
| + std::vector<Misspelling> misspellings = feedback_.GetAllMisspellings();
|
| + EXPECT_EQ(static_cast<size_t>(1), misspellings.size());
|
| + EXPECT_FALSE(misspellings[0].action.IsFinal());
|
| +}
|
| +
|
| // Misspellings should be associated with a renderer.
|
| TEST_F(FeedbackTest, RendererHasMisspellings) {
|
| EXPECT_FALSE(feedback_.RendererHasMisspellings(kRendererProcessId));
|
|
|