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

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

Issue 821453003: Update legacy Tuple-using code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years 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: chrome/browser/spellchecker/spellcheck_message_filter_unittest.cc
diff --git a/chrome/browser/spellchecker/spellcheck_message_filter_unittest.cc b/chrome/browser/spellchecker/spellcheck_message_filter_unittest.cc
index fc750a5c29022667ff75f021925addeed7f48bfc..0e98efeac7b12aa918c90126f4b2ee4104757a15 100644
--- a/chrome/browser/spellchecker/spellcheck_message_filter_unittest.cc
+++ b/chrome/browser/spellchecker/spellcheck_message_filter_unittest.cc
@@ -103,11 +103,11 @@ TEST(SpellCheckMessageFilterTest, OnTextCheckCompleteTestCustomDictionary) {
SpellCheckMsg_RespondSpellingService::Param params;
bool ok = SpellCheckMsg_RespondSpellingService::Read(
- filter->sent_messages[0], & params);
- int sent_identifier = params.a;
- bool sent_success = params.b;
- base::string16 sent_text = params.c;
- std::vector<SpellCheckResult> sent_results = params.d;
+ filter->sent_messages[0], &params);
+ int sent_identifier = get<0>(params);
+ bool sent_success = get<1>(params);
+ base::string16 sent_text = get<2>(params);
+ std::vector<SpellCheckResult> sent_results = get<3>(params);
EXPECT_TRUE(ok);
EXPECT_EQ(kCallbackId, sent_identifier);
EXPECT_EQ(kSuccess, sent_success);
@@ -135,8 +135,8 @@ TEST(SpellCheckMessageFilterTest, OnTextCheckCompleteTest) {
SpellCheckMsg_RespondSpellingService::Param params;
bool ok = SpellCheckMsg_RespondSpellingService::Read(
filter->sent_messages[0], & params);
- base::string16 sent_text = params.c;
- std::vector<SpellCheckResult> sent_results = params.d;
+ base::string16 sent_text = get<2>(params);
+ std::vector<SpellCheckResult> sent_results = get<3>(params);
EXPECT_TRUE(ok);
EXPECT_EQ(static_cast<size_t>(2), sent_results.size());
}

Powered by Google App Engine
This is Rietveld 408576698