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

Unified Diff: media/base/mock_ffmpeg.h

Issue 126160: Moving MockFFmpeg to its own file and some media.gyp cleanup. (Closed)
Patch Set: Not ready for mac and linux yet Created 11 years, 6 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
« no previous file with comments | « no previous file | media/base/mock_ffmpeg.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/mock_ffmpeg.h
diff --git a/media/base/mock_ffmpeg.h b/media/base/mock_ffmpeg.h
new file mode 100644
index 0000000000000000000000000000000000000000..62b085c0bb7bff304d3effa1be82970db4f2144f
--- /dev/null
+++ b/media/base/mock_ffmpeg.h
@@ -0,0 +1,34 @@
+// Copyright (c) 2009 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 MEDIA_BASE_MOCK_FFMPEG_H_
+#define MEDIA_BASE_MOCK_FFMPEG_H_
+
+#include "testing/gmock/include/gmock/gmock.h"
+
+struct AVCodec;
+struct AVCodecContext;
+struct AVFrame;
+struct AVPacket;
+enum CodecID;
+
+namespace media {
+
+class MockFFmpeg {
+ public:
+ MOCK_METHOD1(AVCodecFindDecoder, AVCodec*(enum CodecID id));
+ MOCK_METHOD2(AVCodecOpen, int(AVCodecContext* avctx, AVCodec* codec));
+ MOCK_METHOD2(AVCodecThreadInit, int(AVCodecContext* avctx, int threads));
+
+ // Setter/getter for the global instance of MockFFmpeg.
+ static void set(MockFFmpeg* instance);
+ static MockFFmpeg* get();
+
+ private:
+ static MockFFmpeg* instance_;
+};
+
+} // namespace media
+
+#endif // MEDIA_BASE_MOCK_FFMPEG_H_
« no previous file with comments | « no previous file | media/base/mock_ffmpeg.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698