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

Unified Diff: chrome/browser/media/webrtc_rtp_dump_handler_unittest.cc

Issue 1550593002: Switch to standard integer types in chrome/browser/, part 2 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « chrome/browser/media/webrtc_rtp_dump_handler.cc ('k') | chrome/browser/media/webrtc_rtp_dump_writer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/media/webrtc_rtp_dump_handler_unittest.cc
diff --git a/chrome/browser/media/webrtc_rtp_dump_handler_unittest.cc b/chrome/browser/media/webrtc_rtp_dump_handler_unittest.cc
index 6fefb3fc7cd6562690753844a2708a105a2c4de6..9694aaba93b34d3ec8df70fd60d4dba12a444f18 100644
--- a/chrome/browser/media/webrtc_rtp_dump_handler_unittest.cc
+++ b/chrome/browser/media/webrtc_rtp_dump_handler_unittest.cc
@@ -2,6 +2,9 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include <stddef.h>
+#include <stdint.h>
+
#include "base/bind.h"
#include "base/files/file_util.h"
#include "base/files/scoped_temp_dir.h"
@@ -31,7 +34,7 @@ class FakeDumpWriter : public WebRtcRtpDumpWriter {
max_size_reached_callback_(max_size_reached_callback),
end_dump_success_(end_dump_success) {}
- void WriteRtpPacket(const uint8* packet_header,
+ void WriteRtpPacket(const uint8_t* packet_header,
size_t header_length,
size_t packet_length,
bool incoming) override {
@@ -163,7 +166,7 @@ TEST_F(WebRtcRtpDumpHandlerTest, StoppedWhenMaxSizeReached) {
EXPECT_TRUE(handler_->StartDump(RTP_DUMP_INCOMING, &error));
- std::vector<uint8> buffer(100, 0);
+ std::vector<uint8_t> buffer(100, 0);
handler_->OnRtpPacket(&buffer[0], buffer.size(), buffer.size(), true);
base::RunLoop().RunUntilIdle();
@@ -173,7 +176,7 @@ TEST_F(WebRtcRtpDumpHandlerTest, StoppedWhenMaxSizeReached) {
}
TEST_F(WebRtcRtpDumpHandlerTest, PacketIgnoredIfDumpingNotStarted) {
- std::vector<uint8> buffer(100, 0);
+ std::vector<uint8_t> buffer(100, 0);
handler_->OnRtpPacket(&buffer[0], buffer.size(), buffer.size(), true);
handler_->OnRtpPacket(&buffer[0], buffer.size(), buffer.size(), false);
base::RunLoop().RunUntilIdle();
@@ -189,7 +192,7 @@ TEST_F(WebRtcRtpDumpHandlerTest, PacketIgnoredIfDumpingStopped) {
base::Bind(&WebRtcRtpDumpHandlerTest::OnStopDumpFinished,
base::Unretained(this)));
- std::vector<uint8> buffer(100, 0);
+ std::vector<uint8_t> buffer(100, 0);
handler_->OnRtpPacket(&buffer[0], buffer.size(), buffer.size(), true);
base::RunLoop().RunUntilIdle();
}
« no previous file with comments | « chrome/browser/media/webrtc_rtp_dump_handler.cc ('k') | chrome/browser/media/webrtc_rtp_dump_writer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698