Skip to content

Commit

Permalink
Minor type fix in RTC event logging for probing events.
Browse files Browse the repository at this point in the history
Bug: webrtc:8111
Change-Id: I61cd5917c62c72571f3318411cb03b7ee74ec4cf
Reviewed-on: https://webrtc-review.googlesource.com/78940
Reviewed-by: Elad Alon <[email protected]>
Commit-Queue: Björn Terelius <[email protected]>
Cr-Commit-Position: refs/heads/master@{#23399}
  • Loading branch information
Bjorn Terelius authored and Commit Bot committed May 25, 2018
1 parent 1388b30 commit d7a076c
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@

namespace webrtc {

RtcEventProbeClusterCreated::RtcEventProbeClusterCreated(int id,
int bitrate_bps,
int min_probes,
int min_bytes)
RtcEventProbeClusterCreated::RtcEventProbeClusterCreated(int32_t id,
int32_t bitrate_bps,
uint32_t min_probes,
uint32_t min_bytes)
: id_(id),
bitrate_bps_(bitrate_bps),
min_probes_(min_probes),
Expand Down
16 changes: 8 additions & 8 deletions logging/rtc_event_log/events/rtc_event_probe_cluster_created.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,20 @@ namespace webrtc {

class RtcEventProbeClusterCreated final : public RtcEvent {
public:
RtcEventProbeClusterCreated(int id,
int bitrate_bps,
int min_probes,
int min_bytes);
RtcEventProbeClusterCreated(int32_t id,
int32_t bitrate_bps,
uint32_t min_probes,
uint32_t min_bytes);
~RtcEventProbeClusterCreated() override = default;

Type GetType() const override;

bool IsConfigEvent() const override;

const int id_;
const int bitrate_bps_;
const int min_probes_;
const int min_bytes_;
const int32_t id_;
const int32_t bitrate_bps_;
const uint32_t min_probes_;
const uint32_t min_bytes_;
};

} // namespace webrtc
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
namespace webrtc {

RtcEventProbeResultFailure::RtcEventProbeResultFailure(
int id,
int32_t id,
ProbeFailureReason failure_reason)
: id_(id), failure_reason_(failure_reason) {}

Expand Down
4 changes: 2 additions & 2 deletions logging/rtc_event_log/events/rtc_event_probe_result_failure.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@ enum class ProbeFailureReason {

class RtcEventProbeResultFailure final : public RtcEvent {
public:
RtcEventProbeResultFailure(int id, ProbeFailureReason failure_reason);
RtcEventProbeResultFailure(int32_t id, ProbeFailureReason failure_reason);
~RtcEventProbeResultFailure() override = default;

Type GetType() const override;

bool IsConfigEvent() const override;

const int id_;
const int32_t id_;
const ProbeFailureReason failure_reason_;
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@

namespace webrtc {

RtcEventProbeResultSuccess::RtcEventProbeResultSuccess(int id, int bitrate_bps)
RtcEventProbeResultSuccess::RtcEventProbeResultSuccess(int32_t id,
int32_t bitrate_bps)
: id_(id), bitrate_bps_(bitrate_bps) {}

RtcEvent::Type RtcEventProbeResultSuccess::GetType() const {
Expand Down
6 changes: 3 additions & 3 deletions logging/rtc_event_log/events/rtc_event_probe_result_success.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ namespace webrtc {

class RtcEventProbeResultSuccess final : public RtcEvent {
public:
RtcEventProbeResultSuccess(int id, int bitrate_bps);
RtcEventProbeResultSuccess(int32_t id, int32_t bitrate_bps);
~RtcEventProbeResultSuccess() override = default;

Type GetType() const override;

bool IsConfigEvent() const override;

const int id_;
const int bitrate_bps_;
const int32_t id_;
const int32_t bitrate_bps_;
};

} // namespace webrtc
Expand Down

0 comments on commit d7a076c

Please sign in to comment.