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

Unified Diff: chrome/renderer/media/audio_renderer_impl_unittest.cc

Issue 4192012: Convert implicit scoped_refptr constructor calls to explicit ones, part 1 (Closed) Base URL: http://git.chromium.org/git/chromium.git
Patch Set: fix presubmit Created 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/renderer/audio_message_filter_unittest.cc ('k') | chrome/renderer/render_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/media/audio_renderer_impl_unittest.cc
diff --git a/chrome/renderer/media/audio_renderer_impl_unittest.cc b/chrome/renderer/media/audio_renderer_impl_unittest.cc
index 2c0ee960c8f26c9a2156f65d8a11a08658088e0c..6dd3dc77e16fbdbada0d9d86e3f4891db8ae3241 100644
--- a/chrome/renderer/media/audio_renderer_impl_unittest.cc
+++ b/chrome/renderer/media/audio_renderer_impl_unittest.cc
@@ -127,7 +127,7 @@ TEST_F(AudioRendererImplTest, Stop) {
renderer_->OnVolume(0.5);
// It's possible that the upstream decoder replies right after being stopped.
- scoped_refptr<media::Buffer> buffer = new media::DataBuffer(kSize);
+ scoped_refptr<media::Buffer> buffer(new media::DataBuffer(kSize));
renderer_->ConsumeAudioSamples(buffer);
}
@@ -152,7 +152,7 @@ TEST_F(AudioRendererImplTest, DestroyedMessageLoop_SetVolume) {
TEST_F(AudioRendererImplTest, DestroyedMessageLoop_ConsumeAudioSamples) {
// Kill the message loop and verify OnReadComplete() still works.
message_loop_.reset();
- scoped_refptr<media::Buffer> buffer = new media::DataBuffer(kSize);
+ scoped_refptr<media::Buffer> buffer(new media::DataBuffer(kSize));
renderer_->ConsumeAudioSamples(buffer);
EXPECT_CALL(stop_callback_, OnFilterCallback());
renderer_->Stop(stop_callback_.NewCallback());
« no previous file with comments | « chrome/renderer/audio_message_filter_unittest.cc ('k') | chrome/renderer/render_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698