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

Unified Diff: remoting/protocol/connection_tester.h

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_unittest.cc ('k') | remoting/protocol/connection_tester.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/connection_tester.h
diff --git a/remoting/protocol/connection_tester.h b/remoting/protocol/connection_tester.h
index 59ce49e64eb70ba402aed16b5b4d4c68b7559cc3..4fbf33891c6cd11028a444a0b3becff62c4dcce6 100644
--- a/remoting/protocol/connection_tester.h
+++ b/remoting/protocol/connection_tester.h
@@ -6,10 +6,10 @@
#define REMOTING_PROTOCOL_CONNECTION_TESTER_H_
#include <list>
+#include <memory>
#include <vector>
#include "base/memory/ref_counted.h"
-#include "base/memory/scoped_ptr.h"
#include "base/run_loop.h"
namespace base {
@@ -123,7 +123,7 @@ class MessagePipeConnectionTester {
void RunAndCheckResults();
protected:
- void OnMessageReceived(scoped_ptr<CompoundBuffer> message);
+ void OnMessageReceived(std::unique_ptr<CompoundBuffer> message);
private:
base::RunLoop run_loop_;
@@ -132,8 +132,8 @@ class MessagePipeConnectionTester {
int message_size_;
int message_count_;
- std::vector<scoped_ptr<VideoPacket>> sent_messages_;
- std::vector<scoped_ptr<VideoPacket>> received_messages_;
+ std::vector<std::unique_ptr<VideoPacket>> sent_messages_;
+ std::vector<std::unique_ptr<VideoPacket>> received_messages_;
};
} // namespace protocol
« no previous file with comments | « remoting/protocol/client_video_dispatcher_unittest.cc ('k') | remoting/protocol/connection_tester.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698