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

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

Issue 283623002: Add support for passing an arbitrary parameter to an IPC message handler. The motivation is for Web… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: sync Created 6 years, 7 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: chrome/browser/spellchecker/spellcheck_message_filter_mac_browsertest.cc
===================================================================
--- chrome/browser/spellchecker/spellcheck_message_filter_mac_browsertest.cc (revision 270218)
+++ chrome/browser/spellchecker/spellcheck_message_filter_mac_browsertest.cc (working copy)
@@ -52,10 +52,11 @@
base::MessageLoopForUI::current()->Run();
EXPECT_EQ(1U, target->sent_messages_.size());
- int sent_identifier;
- std::vector<SpellCheckResult> sent_results;
+ SpellCheckMsg_RespondTextCheck::Param params;
bool ok = SpellCheckMsg_RespondTextCheck::Read(
- target->sent_messages_[0], &sent_identifier, &sent_results);
+ target->sent_messages_[0], &params);
+ std::vector<SpellCheckResult> sent_results = params.b;
+
EXPECT_TRUE(ok);
EXPECT_EQ(1U, sent_results.size());
EXPECT_EQ(sent_results[0].location, 0);
« no previous file with comments | « chrome/browser/search/instant_service_unittest.cc ('k') | chrome/browser/spellchecker/spellcheck_message_filter_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698