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

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

Issue 2634263002: Pass camera facing info to audio client (Closed)
Patch Set: Pass VideoCaptureObserver as ctor parameter 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/browser/renderer_host/media/audio_output_authorization_handler_unittest.cc
diff --git a/content/browser/renderer_host/media/audio_output_authorization_handler_unittest.cc b/content/browser/renderer_host/media/audio_output_authorization_handler_unittest.cc
index ab19418b909b1edcf26627c3b7351e98738a6ef5..366cf395dae17fdf0d068833d5a467baed53b345 100644
--- a/content/browser/renderer_host/media/audio_output_authorization_handler_unittest.cc
+++ b/content/browser/renderer_host/media/audio_output_authorization_handler_unittest.cc
@@ -10,6 +10,7 @@
#include "base/command_line.h"
#include "base/memory/ptr_util.h"
#include "base/run_loop.h"
+#include "component/arc/video_facing.h"
#include "content/browser/audio_manager_thread.h"
#include "content/browser/browser_thread_impl.h"
#include "content/public/browser/browser_thread.h"
@@ -54,6 +55,12 @@ struct MockListener {
}
};
+class MockVideoCaptureObserver : public component::VideoCaptureObserver {
+ public:
+ MOCK_METHOD1(OnVideoCaptureStarted, void(component::VideoFacingMode));
+ MOCK_METHOD1(OnVideoCaptureStopped, void(component::VideoFacingMode));
+};
+
url::Origin SecurityOrigin() {
return url::Origin(GURL(kSecurityOriginString));
}
@@ -77,7 +84,7 @@ class AudioOutputAuthorizationHandlerTest : public testing::Test {
audio_thread_->task_runner(), audio_thread_->worker_task_runner(),
&log_factory_));
media_stream_manager_ =
- base::MakeUnique<MediaStreamManager>(audio_manager_.get());
+ base::MakeUnique<MediaStreamManager>(audio_manager_.get(), new MockVideoCaptureObserver());
// Make sure everything is done initializing:
SyncWithAllThreads();
}

Powered by Google App Engine
This is Rietveld 408576698