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

Unified Diff: chrome/browser/spellchecker/spellcheck_action_unittest.cc

Issue 15934002: Add IN_DICTIONARY feedback type for spelling service (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 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
« no previous file with comments | « chrome/browser/spellchecker/spellcheck_action.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/spellchecker/spellcheck_action_unittest.cc
diff --git a/chrome/browser/spellchecker/spellcheck_action_unittest.cc b/chrome/browser/spellchecker/spellcheck_action_unittest.cc
index c09d87bd6c54282c08d3e480a70e5c59f4e660cc..f7d1b30412861693b4e210b1c98181c349cc3eab 100644
--- a/chrome/browser/spellchecker/spellcheck_action_unittest.cc
+++ b/chrome/browser/spellchecker/spellcheck_action_unittest.cc
@@ -14,6 +14,7 @@ TEST(SpellcheckActionTest, FinalActionsTest) {
static const SpellcheckAction::SpellcheckActionType kFinalActions[] = {
SpellcheckAction::TYPE_ADD_TO_DICT,
SpellcheckAction::TYPE_IGNORE,
+ SpellcheckAction::TYPE_IN_DICTIONARY,
SpellcheckAction::TYPE_MANUALLY_CORRECTED,
SpellcheckAction::TYPE_NO_ACTION,
SpellcheckAction::TYPE_SELECT,
@@ -61,6 +62,9 @@ TEST(SpellcheckActionTest, SerializeTest) {
SpellcheckAction::TYPE_IGNORE, -1, ASCIIToUTF16("nothing")),
"{\"actionType\": \"IGNORE\"}" },
{ SpellcheckAction(
+ SpellcheckAction::TYPE_IN_DICTIONARY, -1, ASCIIToUTF16("nothing")),
+ "{\"actionType\": \"IN_DICTIONARY\"}" },
+ { SpellcheckAction(
SpellcheckAction::TYPE_MANUALLY_CORRECTED, -1, ASCIIToUTF16("hello")),
"{\"actionTargetValue\": \"hello\","
"\"actionType\": \"MANUALLY_CORRECTED\"}" },
« no previous file with comments | « chrome/browser/spellchecker/spellcheck_action.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698