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

Unified Diff: remoting/protocol/client_video_dispatcher_unittest.cc

Issue 1864213002: Convert //remoting to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Mac IWYU Created 4 years, 8 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
« no previous file with comments | « remoting/protocol/client_video_dispatcher.cc ('k') | remoting/protocol/connection_tester.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/client_video_dispatcher_unittest.cc
diff --git a/remoting/protocol/client_video_dispatcher_unittest.cc b/remoting/protocol/client_video_dispatcher_unittest.cc
index 067049da5020e55fd344ef78fcb1d9f0d8224af5..f847ef96c41fb363a02b714fe2700b3dd9ef4bcf 100644
--- a/remoting/protocol/client_video_dispatcher_unittest.cc
+++ b/remoting/protocol/client_video_dispatcher_unittest.cc
@@ -29,7 +29,7 @@ class ClientVideoDispatcherTest : public testing::Test,
ClientVideoDispatcherTest();
// VideoStub interface.
- void ProcessVideoPacket(scoped_ptr<VideoPacket> video_packet,
+ void ProcessVideoPacket(std::unique_ptr<VideoPacket> video_packet,
const base::Closure& done) override;
// ChannelDispatcherBase::EventHandler interface.
@@ -38,7 +38,7 @@ class ClientVideoDispatcherTest : public testing::Test,
protected:
void OnChannelError(int error);
- void OnMessageReceived(scoped_ptr<CompoundBuffer> buffer);
+ void OnMessageReceived(std::unique_ptr<CompoundBuffer> buffer);
void OnReadError(int error);
base::MessageLoop message_loop_;
@@ -85,7 +85,7 @@ ClientVideoDispatcherTest::ClientVideoDispatcherTest()
}
void ClientVideoDispatcherTest::ProcessVideoPacket(
- scoped_ptr<VideoPacket> video_packet,
+ std::unique_ptr<VideoPacket> video_packet,
const base::Closure& done) {
video_packets_.push_back(video_packet.release());
packet_done_callbacks_.push_back(done);
@@ -102,8 +102,8 @@ void ClientVideoDispatcherTest::OnChannelError(int error) {
}
void ClientVideoDispatcherTest::OnMessageReceived(
- scoped_ptr<CompoundBuffer> buffer) {
- scoped_ptr<VideoAck> ack = ParseMessage<VideoAck>(buffer.get());
+ std::unique_ptr<CompoundBuffer> buffer) {
+ std::unique_ptr<VideoAck> ack = ParseMessage<VideoAck>(buffer.get());
EXPECT_TRUE(ack);
ack_messages_.push_back(ack.release());
}
« no previous file with comments | « remoting/protocol/client_video_dispatcher.cc ('k') | remoting/protocol/connection_tester.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698