Searched refs:probe_packet (Results 1 – 6 of 6) sorted by relevance
/external/chromium_org/chrome/browser/net/ |
D | probe_message.cc | 25 ProbePacket* probe_packet) const { in ParseInput() 29 bool parse_result = probe_packet->ParseFromString(input_decoded); in ParseInput() 34 const ProbePacket_Header& header = probe_packet->header(); in ParseInput() 44 if (probe_packet->has_padding()) { in ParseInput() 45 DVLOG(3) << "received padding: " << probe_packet->padding(); in ParseInput() 46 uint32 computed_checksum = Checksum(probe_packet->padding()); in ParseInput() 75 ProbePacket* probe_packet) { in GenerateProbeRequest() argument 80 SetPacketHeader(ProbePacket_Type_PROBE_REQUEST, probe_packet); in GenerateProbeRequest() 81 *(probe_packet->mutable_token()) = token; in GenerateProbeRequest() 82 probe_packet->set_group_id(group_id); in GenerateProbeRequest() [all …]
|
D | probe_message_unittest.cc | 29 ProbePacket probe_packet; in TEST_F() local 35 &probe_packet); in TEST_F() 37 EXPECT_EQ(probe_packet.header().type(), ProbePacket_Type_PROBE_REQUEST); in TEST_F() 38 EXPECT_EQ(probe_packet.header().version(), ProbeMessage::kVersion); in TEST_F() 39 EXPECT_EQ(probe_packet.group_id(), group_id); in TEST_F() 40 EXPECT_EQ(probe_packet.probe_size_bytes(), probe_size); in TEST_F() 41 EXPECT_EQ(probe_packet.pacing_interval_micros(), pacing_interval_micros); in TEST_F() 42 EXPECT_EQ(probe_packet.number_probe_packets(), number_probe_packets); in TEST_F() 43 EXPECT_GE(probe_packet.ByteSize(), static_cast<int>(probe_size)); in TEST_F() 48 ProbePacket probe_packet; in TEST_F() local [all …]
|
D | network_stats_unittest.cc | 56 ProbePacket probe_packet; in MakeDeterministicMockData() local 59 &probe_packet); in MakeDeterministicMockData() 60 probe_packet.set_group_id(0); in MakeDeterministicMockData() 61 outputs_[0] = probe_message.MakeEncodedPacket(probe_packet); in MakeDeterministicMockData() 66 probe_packet = ProbePacket(); // Clear all content. in MakeDeterministicMockData() 70 token, 1, probe_bytes, 0, max_probe_packets, &probe_packet); in MakeDeterministicMockData() 71 outputs_[1] = probe_message.MakeEncodedPacket(probe_packet); in MakeDeterministicMockData() 78 probe_packet = ProbePacket(); // Clear all content. in MakeDeterministicMockData() 79 probe_message.SetPacketHeader(ProbePacket_Type_HELLO_REPLY, &probe_packet); in MakeDeterministicMockData() 80 probe_packet.set_group_id(0); in MakeDeterministicMockData() [all …]
|
D | network_stats.cc | 249 ProbePacket probe_packet; in SendHelloRequest() local 250 probe_message_.SetPacketHeader(ProbePacket_Type_HELLO_REQUEST, &probe_packet); in SendHelloRequest() 251 probe_packet.set_group_id(current_test_index_); in SendHelloRequest() 252 std::string output = probe_message_.MakeEncodedPacket(probe_packet); in SendHelloRequest() 299 ProbePacket probe_packet; in SendProbeRequest() local 305 &probe_packet); in SendProbeRequest() 306 std::string output = probe_message_.MakeEncodedPacket(probe_packet); in SendProbeRequest() 368 ProbePacket probe_packet; in ReadComplete() local 369 if (!probe_message_.ParseInput(encoded_message, &probe_packet)) in ReadComplete() 372 if (probe_packet.group_id() != current_test_index_) in ReadComplete() [all …]
|
D | probe_message.h | 32 ProbePacket* probe_packet) const;
|
D | network_stats.h | 194 bool UpdateReception(const ProbePacket& probe_packet);
|