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

Unified Diff: content/renderer/media/webrtc/mock_peer_connection_dependency_factory.h

Issue 2619343003: Track SDP parse errors for SLD in chrome://webrtc-internals (Closed)
Patch Set: Created 3 years, 11 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
Index: content/renderer/media/webrtc/mock_peer_connection_dependency_factory.h
diff --git a/content/renderer/media/webrtc/mock_peer_connection_dependency_factory.h b/content/renderer/media/webrtc/mock_peer_connection_dependency_factory.h
index 42a0d0ce04e1fbceb2bf0a673f0afae614c8eef5..9455e1d3d3be849cce49f46250f9496314af4874 100644
--- a/content/renderer/media/webrtc/mock_peer_connection_dependency_factory.h
+++ b/content/renderer/media/webrtc/mock_peer_connection_dependency_factory.h
@@ -145,8 +145,14 @@ class MockPeerConnectionDependencyFactory
scoped_refptr<base::SingleThreadTaskRunner> GetWebRtcSignalingThread()
const override;
+ // If |fail| is true, subsequent calls to CreateSessionDescription will
+ // return nullptr. This can be used to fake a blob of SDP that fails to be
+ // parsed.
+ void SetFailToCreateSessionDescription(bool fail);
+
private:
base::Thread signaling_thread_;
+ bool fail_to_create_session_description_ = false;
DISALLOW_COPY_AND_ASSIGN(MockPeerConnectionDependencyFactory);
};

Powered by Google App Engine
This is Rietveld 408576698