| Index: content/browser/renderer_host/p2p/socket_host_test_utils.h
|
| diff --git a/content/browser/renderer_host/p2p/socket_host_test_utils.h b/content/browser/renderer_host/p2p/socket_host_test_utils.h
|
| index 8d2d2440fc5cb4017318d77847d5689dea5c3b97..7b7552f9c7b8f22ed448570d1350a6bbb2c9c9b2 100644
|
| --- a/content/browser/renderer_host/p2p/socket_host_test_utils.h
|
| +++ b/content/browser/renderer_host/p2p/socket_host_test_utils.h
|
| @@ -123,4 +123,15 @@ MATCHER_P(MatchIncomingSocketMessage, address, "") {
|
| return std::get<1>(params) == address;
|
| }
|
|
|
| +MATCHER_P2(MatchSendPacketMetrics, rtc_packet_id, test_start_time, "") {
|
| + if (arg->type() != P2PMsg_OnSendComplete::ID)
|
| + return false;
|
| +
|
| + P2PMsg_OnSendComplete::Param params;
|
| + P2PMsg_OnSendComplete::Read(arg, ¶ms);
|
| + return std::get<1>(params).rtc_packet_id == rtc_packet_id &&
|
| + std::get<1>(params).send_time >= test_start_time &&
|
| + std::get<1>(params).send_time <= base::TimeTicks::Now();
|
| +}
|
| +
|
| #endif // CONTENT_BROWSER_RENDERER_HOST_P2P_SOCKET_HOST_TEST_UTILS_H_
|
|
|