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

Unified Diff: components/spellcheck/renderer/spellcheck_provider_mac_unittest.cc

Issue 2658013002: Remove ScopedVector in components/spellcheck (Closed)
Patch Set: Remove ScopedVector in components/spellcheck Created 3 years, 11 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
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 "));

Powered by Google App Engine
This is Rietveld 408576698