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

Side by Side Diff: media/cast/net/rtp/frame_buffer_unittest.cc

Issue 1542013004: Switch to standard integer types in media/, take 2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more stddef 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 unified diff | Download patch
« no previous file with comments | « media/cast/net/rtp/frame_buffer.h ('k') | media/cast/net/rtp/framer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <stdint.h>
6
7 #include "base/macros.h"
8 #include "media/cast/net/cast_transport_defines.h"
5 #include "media/cast/net/rtp/frame_buffer.h" 9 #include "media/cast/net/rtp/frame_buffer.h"
6 #include "media/cast/net/cast_transport_defines.h"
7 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
8 11
9 namespace media { 12 namespace media {
10 namespace cast { 13 namespace cast {
11 14
12 class FrameBufferTest : public ::testing::Test { 15 class FrameBufferTest : public ::testing::Test {
13 protected: 16 protected:
14 FrameBufferTest() { 17 FrameBufferTest() {
15 payload_.assign(kMaxIpPacketSize, 0); 18 payload_.assign(kMaxIpPacketSize, 0);
16 } 19 }
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 buffer_.InsertPacket(&payload_[0], payload_.size(), rtp_header_); 85 buffer_.InsertPacket(&payload_[0], payload_.size(), rtp_header_);
83 EXPECT_FALSE(buffer_.Complete()); 86 EXPECT_FALSE(buffer_.Complete());
84 // Insert missing packet. 87 // Insert missing packet.
85 rtp_header_.packet_id = 2; 88 rtp_header_.packet_id = 2;
86 buffer_.InsertPacket(&payload_[0], payload_.size(), rtp_header_); 89 buffer_.InsertPacket(&payload_[0], payload_.size(), rtp_header_);
87 EXPECT_TRUE(buffer_.Complete()); 90 EXPECT_TRUE(buffer_.Complete());
88 } 91 }
89 92
90 } // namespace media 93 } // namespace media
91 } // namespace cast 94 } // namespace cast
OLDNEW
« no previous file with comments | « media/cast/net/rtp/frame_buffer.h ('k') | media/cast/net/rtp/framer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698