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

Side by Side Diff: media/cast/test/loopback_transport.cc

Issue 623263003: replace OVERRIDE and FINAL with override and final in media/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 unified diff | Download patch
« no previous file with comments | « media/cast/test/loopback_transport.h ('k') | media/cast/test/receiver.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "media/cast/test/loopback_transport.h" 5 #include "media/cast/test/loopback_transport.h"
6 6
7 #include "base/single_thread_task_runner.h" 7 #include "base/single_thread_task_runner.h"
8 #include "base/time/tick_clock.h" 8 #include "base/time/tick_clock.h"
9 #include "media/cast/test/utility/udp_proxy.h" 9 #include "media/cast/test/utility/udp_proxy.h"
10 10
11 namespace media { 11 namespace media {
12 namespace cast { 12 namespace cast {
13 namespace { 13 namespace {
14 14
15 // Shim that turns forwards packets from a test::PacketPipe to a 15 // Shim that turns forwards packets from a test::PacketPipe to a
16 // PacketReceiverCallback. 16 // PacketReceiverCallback.
17 class LoopBackPacketPipe : public test::PacketPipe { 17 class LoopBackPacketPipe : public test::PacketPipe {
18 public: 18 public:
19 LoopBackPacketPipe( 19 LoopBackPacketPipe(
20 const PacketReceiverCallback& packet_receiver) 20 const PacketReceiverCallback& packet_receiver)
21 : packet_receiver_(packet_receiver) {} 21 : packet_receiver_(packet_receiver) {}
22 22
23 virtual ~LoopBackPacketPipe() {} 23 virtual ~LoopBackPacketPipe() {}
24 24
25 // PacketPipe implementations. 25 // PacketPipe implementations.
26 virtual void Send(scoped_ptr<Packet> packet) OVERRIDE { 26 virtual void Send(scoped_ptr<Packet> packet) override {
27 packet_receiver_.Run(packet.Pass()); 27 packet_receiver_.Run(packet.Pass());
28 } 28 }
29 29
30 private: 30 private:
31 PacketReceiverCallback packet_receiver_; 31 PacketReceiverCallback packet_receiver_;
32 32
33 DISALLOW_COPY_AND_ASSIGN(LoopBackPacketPipe); 33 DISALLOW_COPY_AND_ASSIGN(LoopBackPacketPipe);
34 }; 34 };
35 35
36 } // namespace 36 } // namespace
(...skipping 28 matching lines...) Expand all
65 scoped_ptr<test::PacketPipe> loopback_pipe( 65 scoped_ptr<test::PacketPipe> loopback_pipe(
66 new LoopBackPacketPipe(packet_receiver)); 66 new LoopBackPacketPipe(packet_receiver));
67 // Append the loopback pipe to the end. 67 // Append the loopback pipe to the end.
68 pipe->AppendToPipe(loopback_pipe.Pass()); 68 pipe->AppendToPipe(loopback_pipe.Pass());
69 packet_pipe_ = pipe.Pass(); 69 packet_pipe_ = pipe.Pass();
70 packet_pipe_->InitOnIOThread(task_runner, clock); 70 packet_pipe_->InitOnIOThread(task_runner, clock);
71 } 71 }
72 72
73 } // namespace cast 73 } // namespace cast
74 } // namespace media 74 } // namespace media
OLDNEW
« no previous file with comments | « media/cast/test/loopback_transport.h ('k') | media/cast/test/receiver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698