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

Unified Diff: remoting/protocol/fake_connection_to_client.h

Issue 2254673002: Remove dependency on AudioStub in ConnectionToClient (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: win Created 4 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 | « remoting/protocol/connection_unittest.cc ('k') | remoting/protocol/fake_connection_to_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/fake_connection_to_client.h
diff --git a/remoting/protocol/fake_connection_to_client.h b/remoting/protocol/fake_connection_to_client.h
index 4dfe7cc633d9e9d2957943fb01021b49975b89cb..4bdb01088debe1b81547d3e4e503989997c5572d 100644
--- a/remoting/protocol/fake_connection_to_client.h
+++ b/remoting/protocol/fake_connection_to_client.h
@@ -53,8 +53,9 @@ class FakeConnectionToClient : public ConnectionToClient {
std::unique_ptr<VideoStream> StartVideoStream(
std::unique_ptr<webrtc::DesktopCapturer> desktop_capturer) override;
+ std::unique_ptr<AudioStream> StartAudioStream(
+ std::unique_ptr<AudioSource> audio_source) override;
- AudioStub* audio_stub() override;
ClientStub* client_stub() override;
void Disconnect(ErrorCode disconnect_error) override;
@@ -69,7 +70,6 @@ class FakeConnectionToClient : public ConnectionToClient {
return last_video_stream_;
}
- void set_audio_stub(AudioStub* audio_stub) { audio_stub_ = audio_stub; }
void set_client_stub(ClientStub* client_stub) { client_stub_ = client_stub; }
void set_video_stub(VideoStub* video_stub) { video_stub_ = video_stub; }
void set_video_encode_task_runner(
@@ -93,7 +93,6 @@ class FakeConnectionToClient : public ConnectionToClient {
base::WeakPtr<FakeVideoStream> last_video_stream_;
- AudioStub* audio_stub_ = nullptr;
ClientStub* client_stub_ = nullptr;
ClipboardStub* clipboard_stub_ = nullptr;
« no previous file with comments | « remoting/protocol/connection_unittest.cc ('k') | remoting/protocol/fake_connection_to_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698