It is a step in the big refactoring to introduce new network emulation layer for peer connection level e2e test, which will be based on system sockets level injection. Bug: webrtc:10138 Change-Id: Ie3854d22aa3eec289617bc432026ea670646556a Reviewed-on: https://webrtc-review.googlesource.com/c/115943 Reviewed-by: Sebastian Jansson <srte@webrtc.org> Commit-Queue: Artem Titov <titovartem@webrtc.org> Cr-Commit-Position: refs/heads/master@{#26137}
33 lines
1.1 KiB
C++
33 lines
1.1 KiB
C++
/*
|
|
* Copyright (c) 2018 The WebRTC project authors. All Rights Reserved.
|
|
*
|
|
* Use of this source code is governed by a BSD-style license
|
|
* that can be found in the LICENSE file in the root of the source
|
|
* tree. An additional intellectual property rights grant can be found
|
|
* in the file PATENTS. All contributing project authors may
|
|
* be found in the AUTHORS file in the root of the source tree.
|
|
*/
|
|
|
|
#include "test/scenario/network/network_emulation.h"
|
|
|
|
#include <memory>
|
|
|
|
namespace webrtc {
|
|
|
|
EmulatedIpPacket::EmulatedIpPacket(const rtc::SocketAddress& from,
|
|
const rtc::SocketAddress& to,
|
|
uint64_t dest_endpoint_id,
|
|
rtc::CopyOnWriteBuffer data,
|
|
Timestamp arrival_time)
|
|
: from(from),
|
|
to(to),
|
|
dest_endpoint_id(dest_endpoint_id),
|
|
data(data),
|
|
arrival_time(arrival_time) {}
|
|
|
|
EmulatedIpPacket::~EmulatedIpPacket() = default;
|
|
|
|
EmulatedIpPacket::EmulatedIpPacket(EmulatedIpPacket&&) = default;
|
|
|
|
} // namespace webrtc
|