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

Unified Diff: chromecast/media/cma/test/mock_media_pipeline_backend_factory.h

Issue 2879703003: [chromecast] Moves CastAudioOutputStream::Backend to CMA thread. (Closed)
Patch Set: cleanup Created 3 years, 7 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: chromecast/media/cma/test/mock_media_pipeline_backend_factory.h
diff --git a/chromecast/media/cma/test/mock_media_pipeline_backend_factory.h b/chromecast/media/cma/test/mock_media_pipeline_backend_factory.h
new file mode 100644
index 0000000000000000000000000000000000000000..f8d87aa2314038e947a69c6d781ca231c99b7f4d
--- /dev/null
+++ b/chromecast/media/cma/test/mock_media_pipeline_backend_factory.h
@@ -0,0 +1,29 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROMECAST_MEDIA_CMA_TEST_MOCK_MEDIA_PIPELINE_BACKEND_FACTORY_H_
+#define CHROMECAST_MEDIA_CMA_TEST_MOCK_MEDIA_PIPELINE_BACKEND_FACTORY_H_
+
+#include "chromecast/media/cma/backend/media_pipeline_backend_factory.h"
+#include "chromecast/public/media/media_pipeline_backend.h"
slan 2017/05/30 16:26:01 needed?
alokp 2017/05/30 23:19:33 yes because otherwise the compiler will complain e
+#include "chromecast/public/media/media_pipeline_device_params.h"
slan 2017/05/30 16:26:01 needed?
alokp 2017/05/30 23:19:33 ditto
+#include "testing/gmock/include/gmock/gmock.h"
+
+namespace chromecast {
+namespace media {
+
+class MockMediaPipelineBackendFactory : public MediaPipelineBackendFactory {
+ public:
+ MockMediaPipelineBackendFactory();
+ ~MockMediaPipelineBackendFactory() override;
+
+ MOCK_METHOD1(
+ CreateBackend,
+ std::unique_ptr<MediaPipelineBackend>(const MediaPipelineDeviceParams&));
+};
+
+} // namespace media
+} // namespace chromecast
+
+#endif // CHROMECAST_MEDIA_CMA_TEST_MOCK_MEDIA_PIPELINE_BACKEND_FACTORY_H_

Powered by Google App Engine
This is Rietveld 408576698