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

Unified Diff: remoting/protocol/rtp_video_writer_unittest.cc

Issue 8116021: Switch remoting/protocol to new callbacks (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 2 months 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: remoting/protocol/rtp_video_writer_unittest.cc
diff --git a/remoting/protocol/rtp_video_writer_unittest.cc b/remoting/protocol/rtp_video_writer_unittest.cc
index e80d4fb4e8dc0058b0ad22b4add241c8d868ad3a..e993e5ac33b8f067aa75b6df6c4b22aae6677e62 100644
--- a/remoting/protocol/rtp_video_writer_unittest.cc
+++ b/remoting/protocol/rtp_video_writer_unittest.cc
@@ -131,7 +131,8 @@ class RtpVideoWriterTest : public testing::Test {
TEST_F(RtpVideoWriterTest, NotFragmented_FirstPacket) {
InitPacket(1024, true, false);
- writer_.ProcessVideoPacket(packet_, new DeleteTask<VideoPacket>(packet_));
+ writer_.ProcessVideoPacket(
+ packet_, base::Bind(&DeletePointer<VideoPacket>, packet_));
message_loop_.RunAllPending();
ExpectedPacket expected[] = {
@@ -142,7 +143,8 @@ TEST_F(RtpVideoWriterTest, NotFragmented_FirstPacket) {
TEST_F(RtpVideoWriterTest, NotFragmented_LastPackes) {
InitPacket(1024, false, true);
- writer_.ProcessVideoPacket(packet_, new DeleteTask<VideoPacket>(packet_));
+ writer_.ProcessVideoPacket(
+ packet_, base::Bind(&DeletePointer<VideoPacket>, packet_));
message_loop_.RunAllPending();
ExpectedPacket expected[] = {
@@ -153,7 +155,8 @@ TEST_F(RtpVideoWriterTest, NotFragmented_LastPackes) {
TEST_F(RtpVideoWriterTest, TwoFragments_FirstPacket) {
InitPacket(2000, true, false);
- writer_.ProcessVideoPacket(packet_, new DeleteTask<VideoPacket>(packet_));
+ writer_.ProcessVideoPacket(
+ packet_, base::Bind(&DeletePointer<VideoPacket>, packet_));
message_loop_.RunAllPending();
ExpectedPacket expected[] = {
@@ -165,7 +168,8 @@ TEST_F(RtpVideoWriterTest, TwoFragments_FirstPacket) {
TEST_F(RtpVideoWriterTest, TwoFragments_LastPacket) {
InitPacket(2000, false, true);
- writer_.ProcessVideoPacket(packet_, new DeleteTask<VideoPacket>(packet_));
+ writer_.ProcessVideoPacket(
+ packet_, base::Bind(&DeletePointer<VideoPacket>, packet_));
message_loop_.RunAllPending();
ExpectedPacket expected[] = {
@@ -177,7 +181,8 @@ TEST_F(RtpVideoWriterTest, TwoFragments_LastPacket) {
TEST_F(RtpVideoWriterTest, ThreeFragments) {
InitPacket(3000, true, true);
- writer_.ProcessVideoPacket(packet_, new DeleteTask<VideoPacket>(packet_));
+ writer_.ProcessVideoPacket(
+ packet_, base::Bind(&DeletePointer<VideoPacket>, packet_));
message_loop_.RunAllPending();
ExpectedPacket expected[] = {

Powered by Google App Engine
This is Rietveld 408576698