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); |