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

Unified Diff: media/base/mock_demuxer_host.h

Issue 8936014: Removing DataSource from Filter hierarchy (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Moved preload into a separate file. Created 9 years 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: media/base/mock_demuxer_host.h
diff --git a/media/base/mock_demuxer_host.h b/media/base/mock_demuxer_host.h
new file mode 100644
index 0000000000000000000000000000000000000000..ae864738407c0b8dc8573f24b73d4e280d1d5eb2
--- /dev/null
+++ b/media/base/mock_demuxer_host.h
@@ -0,0 +1,38 @@
+// Copyright (c) 2011 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_DEMUXER_HOST_H_
+#define MEDIA_BASE_MOCK_DEMUXER_HOST_H_
+
+#include <string>
+
+#include "base/memory/scoped_ptr.h"
+#include "media/base/demuxer.h"
+#include "testing/gmock/include/gmock/gmock.h"
+
+namespace media {
+
+class MockDemuxerHost : public DemuxerHost {
+ public:
+ MockDemuxerHost();
+ virtual ~MockDemuxerHost();
+
+ // DataSourceHost implementation.
+ MOCK_METHOD1(SetTotalBytes, void(int64 total_bytes));
+ MOCK_METHOD1(SetBufferedBytes, void(int64 buffered_bytes));
+ MOCK_METHOD1(SetNetworkActivity, void(bool network_activity));
+
+ // DemuxerHost implementation.
+ MOCK_METHOD1(OnDemuxerError, void(PipelineStatus error));
+ MOCK_METHOD1(SetDuration, void(base::TimeDelta duration));
+ MOCK_METHOD1(SetBufferedTime, void(base::TimeDelta buffered_time));
+ MOCK_METHOD1(SetCurrentReadPosition, void(int64 offset));
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(MockDemuxerHost);
+};
+
+} // namespace media
+
+#endif // MEDIA_BASE_MOCK_DEMUXER_HOST_H_

Powered by Google App Engine
This is Rietveld 408576698