Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(971)

Unified Diff: media/cast/sender/video_sender_unittest.cc

Issue 1534273002: Switch to standard integer types in media/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: media/cast/sender/video_sender_unittest.cc
diff --git a/media/cast/sender/video_sender_unittest.cc b/media/cast/sender/video_sender_unittest.cc
index 60f15a5b70618b50f04dd743e5dce4c7e2523241..af271da5fb01ee9e28d5fd10d40b5f182de6e000 100644
--- a/media/cast/sender/video_sender_unittest.cc
+++ b/media/cast/sender/video_sender_unittest.cc
@@ -30,7 +30,7 @@ namespace media {
namespace cast {
namespace {
-static const uint8 kPixelValue = 123;
+static const uint8_t kPixelValue = 123;
static const int kWidth = 320;
static const int kHeight = 240;
@@ -73,7 +73,7 @@ class TestPacketSender : public PacketSender {
return true;
}
- int64 GetBytesSent() final { return 0; }
+ int64_t GetBytesSent() final { return 0; }
int number_of_rtp_packets() const { return number_of_rtp_packets_; }
@@ -126,12 +126,8 @@ class PeerVideoSender : public VideoSender {
scoped_refptr<VideoFrame> CreateFakeFrame(const gfx::Size& resolution,
bool high_frame_rate_in_metadata) {
const scoped_refptr<VideoFrame> frame = VideoFrame::WrapExternalData(
- PIXEL_FORMAT_I420,
- resolution,
- gfx::Rect(resolution),
- resolution,
- static_cast<uint8*>(nullptr) + 1,
- resolution.GetArea() * 3 / 2,
+ PIXEL_FORMAT_I420, resolution, gfx::Rect(resolution), resolution,
+ static_cast<uint8_t*>(nullptr) + 1, resolution.GetArea() * 3 / 2,
base::TimeDelta());
const double frame_rate = high_frame_rate_in_metadata ? 60.0 : 30.0;
frame->metadata()->SetTimeDelta(

Powered by Google App Engine
This is Rietveld 408576698