Index: components/spellcheck/renderer/spellcheck_provider_mac_unittest.cc |
diff --git a/components/spellcheck/renderer/spellcheck_provider_mac_unittest.cc b/components/spellcheck/renderer/spellcheck_provider_mac_unittest.cc |
index 1440313d4efeca9e25d54c64ba5c67321598192c..d706308036b9bac3adc685d2aaada1f3dff3346d 100644 |
--- a/components/spellcheck/renderer/spellcheck_provider_mac_unittest.cc |
+++ b/components/spellcheck/renderer/spellcheck_provider_mac_unittest.cc |
@@ -42,7 +42,7 @@ TEST_F(SpellCheckProviderMacTest, SingleRoundtripSuccess) { |
SpellCheckHostMsg_RequestTextCheck::Param read_parameters1; |
bool ok = SpellCheckHostMsg_RequestTextCheck::Read( |
- provider_.messages_[0], &read_parameters1); |
+ provider_.messages_[0].get(), &read_parameters1); |
EXPECT_TRUE(ok); |
EXPECT_EQ(std::get<2>(read_parameters1), base::UTF8ToUTF16("hello ")); |
@@ -68,13 +68,13 @@ TEST_F(SpellCheckProviderMacTest, TwoRoundtripSuccess) { |
SpellCheckHostMsg_RequestTextCheck::Param read_parameters1; |
bool ok = SpellCheckHostMsg_RequestTextCheck::Read( |
- provider_.messages_[0], &read_parameters1); |
+ provider_.messages_[0].get(), &read_parameters1); |
EXPECT_TRUE(ok); |
EXPECT_EQ(std::get<2>(read_parameters1), base::UTF8ToUTF16("hello ")); |
SpellCheckHostMsg_RequestTextCheck::Param read_parameters2; |
- ok = SpellCheckHostMsg_RequestTextCheck::Read( |
- provider_.messages_[1], &read_parameters2); |
+ ok = SpellCheckHostMsg_RequestTextCheck::Read(provider_.messages_[1].get(), |
+ &read_parameters2); |
EXPECT_TRUE(ok); |
EXPECT_EQ(std::get<2>(read_parameters2), base::UTF8ToUTF16("bye ")); |