blob: 9e77a01c6c92f74f6464286370ce82a99e9893b2 [file] [log] [blame]
/*
* Copyright (c) 2017 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 "logging/rtc_event_log/events/rtc_event_probe_result_failure.h"
#include <cstdint>
#include <memory>
#include "absl/memory/memory.h"
#include "api/rtc_event_log/rtc_event.h"
namespace webrtc {
RtcEventProbeResultFailure::RtcEventProbeResultFailure(
int32_t id,
ProbeFailureReason failure_reason)
: id_(id), failure_reason_(failure_reason) {}
RtcEventProbeResultFailure::RtcEventProbeResultFailure(
const RtcEventProbeResultFailure& other)
: RtcEvent(other.timestamp_us_),
id_(other.id_),
failure_reason_(other.failure_reason_) {}
std::unique_ptr<RtcEventProbeResultFailure> RtcEventProbeResultFailure::Copy()
const {
return absl::WrapUnique<RtcEventProbeResultFailure>(
new RtcEventProbeResultFailure(*this));
}
} // namespace webrtc