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

Unified Diff: remoting/protocol/connection_tester.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/connection_tester.h ('k') | remoting/protocol/connection_to_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/connection_tester.cc
diff --git a/remoting/protocol/connection_tester.cc b/remoting/protocol/connection_tester.cc
index 2ef402885713456e35d39fcbb86ce105110f0933..89389b098c25a0bb7faf040f71ac6183c64846e6 100644
--- a/remoting/protocol/connection_tester.cc
+++ b/remoting/protocol/connection_tester.cc
@@ -276,7 +276,7 @@ void MessagePipeConnectionTester::RunAndCheckResults() {
&MessagePipeConnectionTester::OnMessageReceived, base::Unretained(this)));
for (int i = 0; i < message_count_; ++i) {
- scoped_ptr<VideoPacket> message(new VideoPacket());
+ std::unique_ptr<VideoPacket> message(new VideoPacket());
message->mutable_data()->resize(message_size_);
for (int p = 0; p < message_size_; ++p) {
message->mutable_data()[0] = static_cast<char>(i + p);
@@ -294,7 +294,7 @@ void MessagePipeConnectionTester::RunAndCheckResults() {
}
void MessagePipeConnectionTester::OnMessageReceived(
- scoped_ptr<CompoundBuffer> message) {
+ std::unique_ptr<CompoundBuffer> message) {
received_messages_.push_back(ParseMessage<VideoPacket>(message.get()));
if (received_messages_.size() >= sent_messages_.size()) {
run_loop_.Quit();
« no previous file with comments | « remoting/protocol/connection_tester.h ('k') | remoting/protocol/connection_to_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698