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

Unified Diff: chrome/browser/extensions/api/alarms/alarms_api_unittest.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
« no previous file with comments | « no previous file | chrome/browser/search/instant_service_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/api/alarms/alarms_api_unittest.cc
===================================================================
--- chrome/browser/extensions/api/alarms/alarms_api_unittest.cc (revision 270218)
+++ chrome/browser/extensions/api/alarms/alarms_api_unittest.cc (working copy)
@@ -283,9 +283,10 @@
const IPC::Message* warning = sink.GetUniqueMessageMatching(
ExtensionMsg_AddMessageToConsole::ID);
ASSERT_TRUE(warning);
- content::ConsoleMessageLevel level = content::CONSOLE_MESSAGE_LEVEL_DEBUG;
- std::string message;
- ExtensionMsg_AddMessageToConsole::Read(warning, &level, &message);
+ ExtensionMsg_AddMessageToConsole::Param params;
+ ExtensionMsg_AddMessageToConsole::Read(warning, &params);
+ content::ConsoleMessageLevel level = params.a;
+ std::string message = params.b;
EXPECT_EQ(content::CONSOLE_MESSAGE_LEVEL_WARNING, level);
EXPECT_THAT(message, testing::HasSubstr("delay is less than minimum of 1"));
}
« no previous file with comments | « no previous file | chrome/browser/search/instant_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698