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

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

Issue 180633008: Add different error codes for getUserMedia. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed comments Created 6 years, 9 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/media_stream_dispatcher_unittest.cc
diff --git a/content/renderer/media/media_stream_dispatcher_unittest.cc b/content/renderer/media/media_stream_dispatcher_unittest.cc
index 635d22fa04c714583cca529c7dfedb908d87e2bb..6ab0cf78817409365a98fa9d95a8d2f06139535f 100644
--- a/content/renderer/media/media_stream_dispatcher_unittest.cc
+++ b/content/renderer/media/media_stream_dispatcher_unittest.cc
@@ -53,7 +53,9 @@ class MockMediaStreamDispatcherEventHandler
}
}
- virtual void OnStreamGenerationFailed(int request_id) OVERRIDE {
+ virtual void OnStreamGenerationFailed(
+ int request_id,
+ content::MediaStreamRequestResult result) OVERRIDE {
request_id_ = request_id;
}
@@ -313,7 +315,7 @@ TEST_F(MediaStreamDispatcherTest, TestFailure) {
dispatcher->GenerateStream(kRequestId1, handler.get()->AsWeakPtr(),
components, security_origin);
dispatcher->OnMessageReceived(MediaStreamMsg_StreamGenerationFailed(
- kRouteId, ipc_request_id1));
+ kRouteId, ipc_request_id1, MEDIA_DEVICE_PERMISSION_DENIED));
// Verify that the request have been completed.
EXPECT_EQ(handler->request_id_, kRequestId1);
« no previous file with comments | « content/renderer/media/media_stream_dispatcher_eventhandler.h ('k') | content/renderer/media/media_stream_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698