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

Unified Diff: media/cast/test/loopback_transport.h

Issue 1905763002: Convert //media/cast from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | « media/cast/test/linux_output_window.h ('k') | media/cast/test/loopback_transport.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cast/test/loopback_transport.h
diff --git a/media/cast/test/loopback_transport.h b/media/cast/test/loopback_transport.h
index 60851a6867d6f0cd8a2890d6088aed4c039dbe0d..130d34fc284336b5bc4e0ce4f199891f7048b9b8 100644
--- a/media/cast/test/loopback_transport.h
+++ b/media/cast/test/loopback_transport.h
@@ -7,9 +7,10 @@
#include <stdint.h>
+#include <memory>
+
#include "base/macros.h"
#include "base/memory/ref_counted.h"
-#include "base/memory/scoped_ptr.h"
#include "media/cast/cast_environment.h"
#include "media/cast/net/cast_transport_config.h"
@@ -50,14 +51,14 @@ class LoopBackTransport : public PacketTransport {
// If |pipe| is NULL then the data flow looks like:
// SendPacket() -> Fake loopback pipe -> |packet_receiver|.
void Initialize(
- scoped_ptr<test::PacketPipe> pipe,
+ std::unique_ptr<test::PacketPipe> pipe,
const PacketReceiverCallback& packet_receiver,
const scoped_refptr<base::SingleThreadTaskRunner>& task_runner,
base::TickClock* clock);
private:
const scoped_refptr<CastEnvironment> cast_environment_;
- scoped_ptr<test::PacketPipe> packet_pipe_;
+ std::unique_ptr<test::PacketPipe> packet_pipe_;
int64_t bytes_sent_;
DISALLOW_COPY_AND_ASSIGN(LoopBackTransport);
« no previous file with comments | « media/cast/test/linux_output_window.h ('k') | media/cast/test/loopback_transport.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698