1 /*
2  *  Copyright (c) 2017 The WebRTC project authors. All Rights Reserved.
3  *
4  *  Use of this source code is governed by a BSD-style license
5  *  that can be found in the LICENSE file in the root of the source
6  *  tree. An additional intellectual property rights grant can be found
7  *  in the file PATENTS.  All contributing project authors may
8  *  be found in the AUTHORS file in the root of the source tree.
9  */
10 
11 #include "logging/rtc_event_log/events/rtc_event_alr_state.h"
12 
13 #include "absl/memory/memory.h"
14 
15 namespace webrtc {
16 
RtcEventAlrState(bool in_alr)17 RtcEventAlrState::RtcEventAlrState(bool in_alr) : in_alr_(in_alr) {}
18 
RtcEventAlrState(const RtcEventAlrState & other)19 RtcEventAlrState::RtcEventAlrState(const RtcEventAlrState& other)
20     : RtcEvent(other.timestamp_us_), in_alr_(other.in_alr_) {}
21 
22 RtcEventAlrState::~RtcEventAlrState() = default;
23 
GetType() const24 RtcEvent::Type RtcEventAlrState::GetType() const {
25   return RtcEvent::Type::AlrStateEvent;
26 }
27 
IsConfigEvent() const28 bool RtcEventAlrState::IsConfigEvent() const {
29   return false;
30 }
31 
Copy() const32 std::unique_ptr<RtcEventAlrState> RtcEventAlrState::Copy() const {
33   return absl::WrapUnique<RtcEventAlrState>(new RtcEventAlrState(*this));
34 }
35 
36 }  // namespace webrtc
37