Index: chrome/browser/spellchecker/spellcheck_message_filter_platform_mac_unittest.cc |
diff --git a/chrome/browser/spellchecker/spellcheck_message_filter_platform_mac_unittest.cc b/chrome/browser/spellchecker/spellcheck_message_filter_platform_mac_unittest.cc |
index e9810e86ad86f54625005675a8e3058e837ded78..5b18644a05b6926c13fb94a0d9fcbe2f76a53c59 100644 |
--- a/chrome/browser/spellchecker/spellcheck_message_filter_platform_mac_unittest.cc |
+++ b/chrome/browser/spellchecker/spellcheck_message_filter_platform_mac_unittest.cc |
@@ -32,9 +32,10 @@ TEST(SpellcheckMessageFilterPlatformMacTest, CombineResults) { |
SpellCheckResult(SpellCheckResult::SPELLING, 10, 5)); |
// local & remote result - must be flagged SPELLING, uses remote suggestion. |
- SpellCheckResult result(SpellCheckResult::SPELLING, 20, 5, local_suggestion); |
+ SpellCheckResult result(SpellCheckResult::SPELLING, 20, 5, |
+ std::vector<base::string16>({local_suggestion})); |
local_results.push_back(result); |
- result.replacement = remote_suggestion; |
+ result.replacements[0] = remote_suggestion; |
remote_results.push_back(result); |
SpellCheckMessageFilterPlatform::CombineResults(&remote_results, |
@@ -45,7 +46,7 @@ TEST(SpellcheckMessageFilterPlatformMacTest, CombineResults) { |
EXPECT_EQ(0, remote_results[0].location); |
EXPECT_EQ(SpellCheckResult::SPELLING, remote_results[1].decoration); |
EXPECT_EQ(20, remote_results[1].location); |
- EXPECT_EQ(remote_suggestion, remote_results[1].replacement); |
+ EXPECT_EQ(remote_suggestion, remote_results[1].replacements[0]); |
} |
TEST(SpellCheckMessageFilterPlatformMacTest, TestOverrideThread) { |