Chromium Code Reviews| 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_ |