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

Unified Diff: content/renderer/media/user_media_client_impl_unittest.cc

Issue 937293002: Unify request failure handling in content::UserMediaClientImpl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed remaining breaks + updated unit test code Created 5 years, 10 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 | « content/renderer/media/user_media_client_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/user_media_client_impl_unittest.cc
diff --git a/content/renderer/media/user_media_client_impl_unittest.cc b/content/renderer/media/user_media_client_impl_unittest.cc
index 35c41a064cd95929646141c3afd66e8c6c958b66..08d5c8ab2dfd69f0f446d4a77f05e2a1146cc09d 100644
--- a/content/renderer/media/user_media_client_impl_unittest.cc
+++ b/content/renderer/media/user_media_client_impl_unittest.cc
@@ -84,15 +84,7 @@ class UserMediaClientImplUnderTest : public UserMediaClientImpl {
void GetUserMediaRequestFailed(
blink::WebUserMediaRequest* request_info,
- content::MediaStreamRequestResult result) override {
- last_generated_stream_.reset();
- state_ = REQUEST_FAILED;
- result_ = result;
- }
-
- void GetUserMediaRequestTrackStartedFailed(
- blink::WebUserMediaRequest* request_info,
- MediaStreamRequestResult result,
+ content::MediaStreamRequestResult result,
const blink::WebString& result_name) override {
last_generated_stream_.reset();
state_ = REQUEST_FAILED;
« no previous file with comments | « content/renderer/media/user_media_client_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698