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

Unified Diff: talk/media/webrtc/fakewebrtcvoiceengine.h

Issue 1344083004: Remove the SetLocalMonitor() API. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: rebase Created 5 years, 3 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 | « talk/media/base/mediaengine.h ('k') | talk/media/webrtc/webrtcvoiceengine.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: talk/media/webrtc/fakewebrtcvoiceengine.h
diff --git a/talk/media/webrtc/fakewebrtcvoiceengine.h b/talk/media/webrtc/fakewebrtcvoiceengine.h
index 4ce5a38a09a74e97a9a0974473b5a62d9bc68584..3ea59a80c14a5244ce467562f3bb55567b416cd4 100644
--- a/talk/media/webrtc/fakewebrtcvoiceengine.h
+++ b/talk/media/webrtc/fakewebrtcvoiceengine.h
@@ -295,8 +295,6 @@ class FakeWebRtcVoiceEngine
observer_(NULL),
playout_fail_channel_(-1),
send_fail_channel_(-1),
- fail_start_recording_microphone_(false),
- recording_microphone_(false),
recording_sample_rate_(-1),
playout_sample_rate_(-1),
media_processor_(NULL) {
@@ -331,9 +329,6 @@ class FakeWebRtcVoiceEngine
bool GetSend(int channel) {
return channels_[channel]->send;
}
- bool GetRecordingMicrophone() {
- return recording_microphone_;
- }
bool GetVAD(int channel) {
return channels_[channel]->vad;
}
@@ -392,10 +387,6 @@ class FakeWebRtcVoiceEngine
void set_send_fail_channel(int channel) {
send_fail_channel_ = channel;
}
- void set_fail_start_recording_microphone(
- bool fail_start_recording_microphone) {
- fail_start_recording_microphone_ = fail_start_recording_microphone;
- }
void set_fail_create_channel(bool fail_create_channel) {
fail_create_channel_ = fail_create_channel;
}
@@ -780,25 +771,13 @@ class FakeWebRtcVoiceEngine
WEBRTC_FUNC(StartRecordingMicrophone, (const char* fileNameUTF8,
webrtc::CodecInst* compression,
int maxSizeBytes)) {
- if (fail_start_recording_microphone_) {
- return -1;
- }
- recording_microphone_ = true;
return 0;
}
WEBRTC_FUNC(StartRecordingMicrophone, (webrtc::OutStream* stream,
webrtc::CodecInst* compression)) {
- if (fail_start_recording_microphone_) {
- return -1;
- }
- recording_microphone_ = true;
return 0;
}
WEBRTC_FUNC(StopRecordingMicrophone, ()) {
- if (!recording_microphone_) {
- return -1;
- }
- recording_microphone_ = false;
return 0;
}
@@ -1277,8 +1256,6 @@ class FakeWebRtcVoiceEngine
webrtc::VoiceEngineObserver* observer_;
int playout_fail_channel_;
int send_fail_channel_;
- bool fail_start_recording_microphone_;
- bool recording_microphone_;
int recording_sample_rate_;
int playout_sample_rate_;
DtmfInfo dtmf_info_;
« no previous file with comments | « talk/media/base/mediaengine.h ('k') | talk/media/webrtc/webrtcvoiceengine.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698