Lines Matching refs:event_handler
156 StrictMock<MockJsEventHandler> event_handler;
167 js_backend->AddHandler(&event_handler);
171 js_backend->RemoveHandler(&event_handler);
179 StrictMock<MockJsEventHandler> event_handler;
180 EXPECT_CALL(event_handler,
187 EXPECT_CALL(event_handler, HandleJsEvent("onChangesApplied", _))
189 EXPECT_CALL(event_handler, HandleJsEvent("onChangesComplete", _))
191 EXPECT_CALL(event_handler, HandleJsEvent("onSyncNotificationStateChange", _))
198 js_backend->AddHandler(&event_handler);
212 js_backend->RemoveHandler(&event_handler);
219 StrictMock<MockJsEventHandler> event_handler;
221 EXPECT_CALL(event_handler, HandleJsEvent("onChangesApplied", _))
223 EXPECT_CALL(event_handler, HandleJsEvent("onChangesComplete", _))
225 EXPECT_CALL(event_handler, HandleJsEvent("onSyncNotificationStateChange", _))
232 EXPECT_CALL(event_handler, HandleJsEvent("testMessage1", HasArgs(args1)));
238 EXPECT_CALL(event_handler,
249 js_backend->ProcessMessage("notRepliedTo", args3, &event_handler);
252 js_backend->ProcessMessage("delayTestMessage2", args2, &event_handler);
254 js_backend->AddHandler(&event_handler);
257 js_backend->ProcessMessage("testMessage1", args1, &event_handler);
263 js_backend->ProcessMessage("delayNotRepliedTo", args3, &event_handler);
265 js_backend->RemoveHandler(&event_handler);
270 js_backend->ProcessMessage("notRepliedTo", args3, &event_handler);
277 StrictMock<MockJsEventHandler> event_handler;
279 EXPECT_CALL(event_handler, HandleJsEvent("onChangesApplied", _))
281 EXPECT_CALL(event_handler, HandleJsEvent("onChangesComplete", _))
283 EXPECT_CALL(event_handler, HandleJsEvent("onSyncNotificationStateChange", _))
290 EXPECT_CALL(event_handler, HandleJsEvent("testMessage1", HasArgs(args1)));
296 EXPECT_CALL(event_handler, HandleJsEvent("testMessage2", HasArgs(args2)));
302 EXPECT_CALL(event_handler,
307 EXPECT_CALL(event_handler, HandleJsEvent("onSyncServiceStateChanged",
313 // |event_handler| is added as a handler.
314 js_backend->ProcessMessage("testMessage1", args1, &event_handler);
316 js_backend->AddHandler(&event_handler);
318 js_backend->ProcessMessage("testMessage2", args2, &event_handler);
319 js_backend->ProcessMessage("delayTestMessage3", args3, &event_handler);
328 js_backend->ProcessMessage("delayNotRepliedTo", kNoArgs, &event_handler);
330 js_backend->RemoveHandler(&event_handler);
334 js_backend->ProcessMessage("notRepliedTo", kNoArgs, &event_handler);