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

Side by Side Diff: media/audio/audio_output_proxy_unittest.cc

Issue 2538793002: Log audio system used to WebRTC log. (Closed)
Patch Set: Code review. Created 4 years 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/audio/audio_manager.h ('k') | media/audio/cras/audio_manager_cras.h » ('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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 <stdint.h> 5 #include <stdint.h>
6 6
7 #include <memory> 7 #include <memory>
8 #include <string> 8 #include <string>
9 9
10 #include "base/message_loop/message_loop.h" 10 #include "base/message_loop/message_loop.h"
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 MOCK_METHOD3(MakeAudioInputStream, 109 MOCK_METHOD3(MakeAudioInputStream,
110 AudioInputStream*(const AudioParameters& params, 110 AudioInputStream*(const AudioParameters& params,
111 const std::string& device_id, 111 const std::string& device_id,
112 const LogCallback& log_callback)); 112 const LogCallback& log_callback));
113 MOCK_METHOD0(ShowAudioInputSettings, void()); 113 MOCK_METHOD0(ShowAudioInputSettings, void());
114 MOCK_METHOD0(GetTaskRunner, scoped_refptr<base::SingleThreadTaskRunner>()); 114 MOCK_METHOD0(GetTaskRunner, scoped_refptr<base::SingleThreadTaskRunner>());
115 MOCK_METHOD0(GetWorkerTaskRunner, 115 MOCK_METHOD0(GetWorkerTaskRunner,
116 scoped_refptr<base::SingleThreadTaskRunner>()); 116 scoped_refptr<base::SingleThreadTaskRunner>());
117 MOCK_METHOD1(GetAudioInputDeviceNames, void( 117 MOCK_METHOD1(GetAudioInputDeviceNames, void(
118 media::AudioDeviceNames* device_name)); 118 media::AudioDeviceNames* device_name));
119 MOCK_METHOD0(GetName, const char*());
119 120
120 MOCK_METHOD2(MakeLinearOutputStream, 121 MOCK_METHOD2(MakeLinearOutputStream,
121 AudioOutputStream*(const AudioParameters& params, 122 AudioOutputStream*(const AudioParameters& params,
122 const LogCallback& log_callback)); 123 const LogCallback& log_callback));
123 MOCK_METHOD3(MakeLowLatencyOutputStream, 124 MOCK_METHOD3(MakeLowLatencyOutputStream,
124 AudioOutputStream*(const AudioParameters& params, 125 AudioOutputStream*(const AudioParameters& params,
125 const std::string& device_id, 126 const std::string& device_id,
126 const LogCallback& log_callback)); 127 const LogCallback& log_callback));
127 MOCK_METHOD3(MakeLinearInputStream, 128 MOCK_METHOD3(MakeLinearInputStream,
128 AudioInputStream*(const AudioParameters& params, 129 AudioInputStream*(const AudioParameters& params,
(...skipping 612 matching lines...) Expand 10 before | Expand all | Expand 10 after
741 .WillOnce(Return(&real_stream)); 742 .WillOnce(Return(&real_stream));
742 743
743 // Stream1 should be able to successfully open and start. 744 // Stream1 should be able to successfully open and start.
744 EXPECT_CALL(real_stream, Open()).WillOnce(Return(true)); 745 EXPECT_CALL(real_stream, Open()).WillOnce(Return(true));
745 proxy = new AudioOutputProxy(resampler_.get()); 746 proxy = new AudioOutputProxy(resampler_.get());
746 EXPECT_TRUE(proxy->Open()); 747 EXPECT_TRUE(proxy->Open());
747 CloseAndWaitForCloseTimer(proxy, &real_stream); 748 CloseAndWaitForCloseTimer(proxy, &real_stream);
748 } 749 }
749 750
750 } // namespace media 751 } // namespace media
OLDNEW
« no previous file with comments | « media/audio/audio_manager.h ('k') | media/audio/cras/audio_manager_cras.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698