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

Unified Diff: content/browser/renderer_host/media/media_stream_dispatcher_host_unittest.cc

Issue 10177008: Shift media_stream::StreamOptions to align with the new getUserMedia spec (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: rebase Created 8 years, 8 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/browser/renderer_host/media/media_stream_dispatcher_host_unittest.cc
diff --git a/content/browser/renderer_host/media/media_stream_dispatcher_host_unittest.cc b/content/browser/renderer_host/media/media_stream_dispatcher_host_unittest.cc
index 16179da50304b17c5b58b38f1aa6a8f1d7c0c9c5..83a503eb98c23138cd6488936b16198c92f48c13 100644
--- a/content/browser/renderer_host/media/media_stream_dispatcher_host_unittest.cc
+++ b/content/browser/renderer_host/media/media_stream_dispatcher_host_unittest.cc
@@ -207,7 +207,7 @@ class MediaStreamDispatcherHostTest : public testing::Test {
};
TEST_F(MediaStreamDispatcherHostTest, GenerateStream) {
- StreamOptions options(false, StreamOptions::kFacingUser);
+ StreamOptions options(false, true);
EXPECT_CALL(*host_, OnStreamGenerated(kRenderId, kPageRequestId, 0, 1));
host_->OnGenerateStream(kPageRequestId, options);
@@ -228,7 +228,7 @@ TEST_F(MediaStreamDispatcherHostTest, GenerateThreeStreams) {
// This test opens three video capture devices. Two fake devices exists and it
// is expected the last call to |Open()| will open the first device again, but
// with a different label.
- StreamOptions options(false, StreamOptions::kFacingUser);
+ StreamOptions options(false, true);
// Generate first stream.
EXPECT_CALL(*host_, OnStreamGenerated(kRenderId, kPageRequestId, 0, 1));
@@ -288,7 +288,7 @@ TEST_F(MediaStreamDispatcherHostTest, GenerateThreeStreams) {
}
TEST_F(MediaStreamDispatcherHostTest, FailDevice) {
- StreamOptions options(false, StreamOptions::kFacingUser);
+ StreamOptions options(false, true);
EXPECT_CALL(*host_, OnStreamGenerated(kRenderId, kPageRequestId, 0, 1));
host_->OnGenerateStream(kPageRequestId, options);

Powered by Google App Engine
This is Rietveld 408576698