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

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

Issue 2671263003: Merge 3004: Revert of Remove ScopedVector in components/spellcheck (patchset #5 id:80001 of https:/… (Closed)
Patch Set: Created 3 years, 10 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 221c182c23c9087713ac0cc080fd13fc69775567..a63411ec02a9ee61b98c8c1b4bace03780877e10 100644
--- a/components/spellcheck/renderer/spellcheck_provider_mac_unittest.cc
+++ b/components/spellcheck/renderer/spellcheck_provider_mac_unittest.cc
@@ -40,7 +40,7 @@ TEST_F(SpellCheckProviderMacTest, SingleRoundtripSuccess) {
SpellCheckHostMsg_RequestTextCheck::Param read_parameters1;
bool ok = SpellCheckHostMsg_RequestTextCheck::Read(
- provider_.messages_[0].get(), &read_parameters1);
+ provider_.messages_[0], &read_parameters1);
EXPECT_TRUE(ok);
EXPECT_EQ(std::get<2>(read_parameters1), base::ASCIIToUTF16("hello "));
@@ -64,13 +64,13 @@ TEST_F(SpellCheckProviderMacTest, TwoRoundtripSuccess) {
SpellCheckHostMsg_RequestTextCheck::Param read_parameters1;
bool ok = SpellCheckHostMsg_RequestTextCheck::Read(
- provider_.messages_[0].get(), &read_parameters1);
+ provider_.messages_[0], &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].get(),
- &read_parameters2);
+ ok = SpellCheckHostMsg_RequestTextCheck::Read(
+ provider_.messages_[1], &read_parameters2);
EXPECT_TRUE(ok);
EXPECT_EQ(std::get<2>(read_parameters2), base::UTF8ToUTF16("bye "));
« no previous file with comments | « components/spellcheck/renderer/spellcheck.cc ('k') | components/spellcheck/renderer/spellcheck_provider_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698