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

Unified Diff: content/browser/renderer_host/media/audio_output_delegate_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_delegate_unittest.cc
diff --git a/content/browser/renderer_host/media/audio_output_delegate_unittest.cc b/content/browser/renderer_host/media/audio_output_delegate_unittest.cc
index d508735eaae807e869fd03c1a57564c67be16b18..57f6f893c3b737a63b9caf7b12fe6b899d3c689c 100644
--- a/content/browser/renderer_host/media/audio_output_delegate_unittest.cc
+++ b/content/browser/renderer_host/media/audio_output_delegate_unittest.cc
@@ -14,6 +14,7 @@
#include "base/memory/ptr_util.h"
#include "base/message_loop/message_loop.h"
#include "base/run_loop.h"
+#include "component/arc/video_facing.h"
#include "content/browser/audio_manager_thread.h"
#include "content/browser/media/capture/audio_mirroring_manager.h"
#include "content/browser/renderer_host/media/media_stream_manager.h"
@@ -96,6 +97,12 @@ class DummyAudioOutputStream : public media::AudioOutputStream {
void Close() override {}
};
+class MockVideoCaptureObserver : public component::VideoCaptureObserver {
+ public:
+ MOCK_METHOD1(OnVideoCaptureStarted, void(component::VideoFacingMode));
+ MOCK_METHOD1(OnVideoCaptureStopped, void(component::VideoFacingMode));
+};
+
} // namespace
class AudioOutputDelegateTest : public testing::Test {
@@ -116,7 +123,7 @@ class AudioOutputDelegateTest : 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());
}
// Test bodies are here, so that we can run them on the IO thread.

Powered by Google App Engine
This is Rietveld 408576698