Lines Matching refs:serialized_message
200 std::string serialized_message;
201 EXPECT_TRUE(MessageFramer::Serialize(message, &serialized_message));
203 EXPECT_CALL(mock_socket_, Write(NotNull(), serialized_message.size(), _))
211 socket_cbs.Pop(serialized_message.size());
212 EXPECT_EQ(serialized_message, output);
222 std::string serialized_message;
223 EXPECT_TRUE(MessageFramer::Serialize(message, &serialized_message));
226 EXPECT_CALL(mock_socket_, Write(NotNull(), serialized_message.size(), _))
231 EXPECT_CALL(mock_socket_, Write(NotNull(), serialized_message.size() - 1, _))
239 EXPECT_EQ(serialized_message, output);
243 socket_cbs.Pop(serialized_message.size() - 1);
244 EXPECT_EQ(serialized_message.substr(1, serialized_message.size() - 1),
267 std::string serialized_message;
268 EXPECT_TRUE(MessageFramer::Serialize(message, &serialized_message));
269 EXPECT_CALL(mock_socket_, Write(NotNull(), serialized_message.size(), _))
271 Return(serialized_message.size())));
276 EXPECT_EQ(serialized_message, output);
285 std::string serialized_message;
286 EXPECT_TRUE(MessageFramer::Serialize(message, &serialized_message));
289 EXPECT_CALL(mock_socket_, Write(NotNull(), serialized_message.size(), _))
292 EXPECT_CALL(mock_socket_, Write(NotNull(), serialized_message.size() - 1, _))
294 Return(serialized_message.size() - 1)));
300 EXPECT_EQ(serialized_message.substr(1, serialized_message.size() - 1),
321 std::string serialized_message;
322 EXPECT_TRUE(MessageFramer::Serialize(message, &serialized_message));
327 .WillOnce(DoAll(FillBufferFromString<0>(serialized_message),
334 serialized_message.size() -
337 .WillOnce(DoAll(FillBufferFromString<0>(serialized_message.substr(
339 serialized_message.size() -
351 socket_cbs.Pop(serialized_message.size() -
359 std::string serialized_message;
360 EXPECT_TRUE(MessageFramer::Serialize(message, &serialized_message));
365 .WillOnce(DoAll(FillBufferFromString<0>(serialized_message),
372 serialized_message.size() -
375 .WillOnce(DoAll(FillBufferFromString<0>(serialized_message.substr(
377 serialized_message.size() -
384 .WillOnce(DoAll(FillBufferFromString<0>(serialized_message.substr(
385 serialized_message.size() - 1, 1)),
396 socket_cbs.Pop(serialized_message.size() -
405 std::string serialized_message;
406 EXPECT_TRUE(MessageFramer::Serialize(message, &serialized_message));
411 .WillOnce(DoAll(FillBufferFromString<0>(serialized_message),
428 std::string serialized_message;
429 EXPECT_TRUE(MessageFramer::Serialize(message, &serialized_message));
434 .WillOnce(DoAll(FillBufferFromString<0>(serialized_message),
441 serialized_message.size() -
444 .WillOnce(DoAll(FillBufferFromString<0>(serialized_message.substr(
446 serialized_message.size() -
466 std::string serialized_message;
467 EXPECT_TRUE(MessageFramer::Serialize(message, &serialized_message));
471 i < serialized_message.size();
473 serialized_message[i] = 'x';
479 .WillOnce(DoAll(FillBufferFromString<0>(serialized_message),
486 serialized_message.size() -
489 .WillOnce(DoAll(FillBufferFromString<0>(serialized_message.substr(
491 serialized_message.size() -
502 socket_cbs.Pop(serialized_message.size() -
511 std::string serialized_message;
512 EXPECT_TRUE(MessageFramer::Serialize(message, &serialized_message));
517 .WillOnce(DoAll(FillBufferFromString<0>(serialized_message),
523 serialized_message.size() -
526 .WillOnce(DoAll(FillBufferFromString<0>(serialized_message.substr(
528 serialized_message.size() -
530 Return(serialized_message.size() -
544 std::string serialized_message;
545 EXPECT_TRUE(MessageFramer::Serialize(message, &serialized_message));
550 .WillOnce(DoAll(FillBufferFromString<0>(serialized_message),
556 serialized_message.size() -
559 .WillOnce(DoAll(FillBufferFromString<0>(serialized_message.substr(
561 serialized_message.size() -
563 Return(serialized_message.size() -
568 .WillOnce(DoAll(FillBufferFromString<0>(serialized_message.substr(
569 serialized_message.size() - 1, 1)),
581 std::string serialized_message;
582 EXPECT_TRUE(MessageFramer::Serialize(message, &serialized_message));
587 .WillOnce(DoAll(FillBufferFromString<0>(serialized_message),
598 std::string serialized_message;
599 EXPECT_TRUE(MessageFramer::Serialize(message, &serialized_message));
604 .WillOnce(DoAll(FillBufferFromString<0>(serialized_message),
610 serialized_message.size() -
613 .WillOnce(DoAll(FillBufferFromString<0>(serialized_message.substr(
615 serialized_message.size() -
627 std::string serialized_message;
628 EXPECT_TRUE(MessageFramer::Serialize(message, &serialized_message));
632 i < serialized_message.size();
634 serialized_message[i] = 'x';
640 .WillOnce(DoAll(FillBufferFromString<0>(serialized_message),
646 serialized_message.size() -
649 .WillOnce(DoAll(FillBufferFromString<0>(serialized_message.substr(
651 serialized_message.size() -
653 Return(serialized_message.size() -