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

Unified Diff: media/audio/audio_input_controller_unittest.cc

Issue 16297002: Update media/ to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 7 years, 7 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/audio/audio_input_controller.cc ('k') | media/audio/audio_manager_base.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/audio_input_controller_unittest.cc
diff --git a/media/audio/audio_input_controller_unittest.cc b/media/audio/audio_input_controller_unittest.cc
index 43d3e69a42f360d430322ab6c1c0fcc793147aa3..50d5328e70aa669dde2af02343755a1eaed2bb85 100644
--- a/media/audio/audio_input_controller_unittest.cc
+++ b/media/audio/audio_input_controller_unittest.cc
@@ -90,7 +90,7 @@ TEST_F(AudioInputControllerTest, CreateAndClose) {
message_loop_.Run();
// Close the AudioInputController synchronously.
- CloseAudioController(controller);
+ CloseAudioController(controller.get());
}
// Test a normal call sequence of create, record and close.
@@ -128,7 +128,7 @@ TEST_F(AudioInputControllerTest, RecordAndClose) {
message_loop_.Run();
// Close the AudioInputController synchronously.
- CloseAudioController(controller);
+ CloseAudioController(controller.get());
}
// Test that the AudioInputController reports an error when the input stream
@@ -179,7 +179,7 @@ TEST_F(AudioInputControllerTest, RecordAndError) {
message_loop_.Run();
// Close the AudioInputController synchronously.
- CloseAudioController(controller);
+ CloseAudioController(controller.get());
}
// Test that AudioInputController rejects insanely large packet sizes.
@@ -196,7 +196,7 @@ TEST_F(AudioInputControllerTest, SamplesPerPacketTooLarge) {
kSampleRate, kBitsPerSample, kSamplesPerPacket * 1000);
scoped_refptr<AudioInputController> controller =
AudioInputController::Create(audio_manager.get(), &event_handler, params);
- ASSERT_FALSE(controller);
+ ASSERT_FALSE(controller.get());
}
// Test calling AudioInputController::Close multiple times.
« no previous file with comments | « media/audio/audio_input_controller.cc ('k') | media/audio/audio_manager_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698