Lines Matching refs:sender
106 SenderMock* sender = new SenderMock();
107 upload_service_->sender_.reset(sender);
109 sender->set_should_succeed(false);
113 EXPECT_EQ(1, sender->send_call_count());
114 std::string sent_string = sender->last_message();
117 EXPECT_EQ(2, sender->send_call_count());
118 EXPECT_EQ(sent_string, sender->last_message());
122 SenderMock* sender = new SenderMock();
123 upload_service_->sender_.reset(sender);
125 sender->set_should_succeed(false);
147 SenderMock* sender = new SenderMock();
148 upload_service_->sender_.reset(sender);
151 EXPECT_EQ(0, sender->send_call_count());
161 SenderMock* sender = new SenderMock();
162 upload_service_->sender_.reset(sender);
168 std::string first_message = sender->last_message();
173 EXPECT_NE(first_message, sender->last_message());
239 SenderMock* sender = new SenderMock();
240 upload_service_->sender_.reset(sender);
253 EXPECT_EQ(1, sender->send_call_count());
254 EXPECT_TRUE(sender->is_good_proto());
255 EXPECT_EQ(1, sender->last_message_proto().histogram_event().size());
257 EXPECT_NE(0, sender->last_message_proto().client_id());
258 EXPECT_NE(0, sender->last_message_proto().system_profile().build_timestamp());
259 EXPECT_NE(0, sender->last_message_proto().session_id());