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

Unified Diff: remoting/base/codec_test.cc

Issue 9720019: Use scoped_ptr<> to pass ownership in more places. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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 | « no previous file | remoting/base/encoder.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/base/codec_test.cc
diff --git a/remoting/base/codec_test.cc b/remoting/base/codec_test.cc
index aa761d8d6647f2ee117ad5c64a7b40d75de6d7b7..5fd58edd610181a28e2805ae59334b1ef55d14ad 100644
--- a/remoting/base/codec_test.cc
+++ b/remoting/base/codec_test.cc
@@ -211,16 +211,14 @@ class EncoderTester {
EXPECT_GT(data_available_, 0);
}
- void DataAvailable(VideoPacket *packet) {
+ void DataAvailable(scoped_ptr<VideoPacket> packet) {
++data_available_;
- message_tester_->ReceivedPacket(packet);
+ message_tester_->ReceivedPacket(packet.get());
// Send the message to the DecoderTester.
if (decoder_tester_) {
- decoder_tester_->ReceivedPacket(packet);
+ decoder_tester_->ReceivedPacket(packet.get());
}
-
- delete packet;
}
void AddRects(const SkIRect* rects, int count) {
« no previous file with comments | « no previous file | remoting/base/encoder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698