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

Side by Side Diff: media/base/mock_filter_host.h

Issue 10796074: Move VideoRenderer out of Filter heirarchy. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src
Patch Set: GetMediaTime Created 8 years, 5 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « media/base/filters.cc ('k') | media/base/mock_filter_host.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 //
5 // A FilterHost implementation based on gmock. Combined with setting a message
6 // loop on a filter, permits single-threaded testing of filters without
7 // requiring a pipeline.
8
9 #ifndef MEDIA_BASE_MOCK_FILTER_HOST_H_
10 #define MEDIA_BASE_MOCK_FILTER_HOST_H_
11
12 #include <string>
13
14 #include "media/base/filter_host.h"
15 #include "testing/gmock/include/gmock/gmock.h"
16
17 namespace media {
18
19 class MockFilterHost : public FilterHost {
20 public:
21 MockFilterHost();
22 virtual ~MockFilterHost();
23
24 // FilterHost implementation.
25 MOCK_METHOD0(InitializationComplete, void());
26 MOCK_METHOD1(SetError, void(PipelineStatus error));
27 MOCK_CONST_METHOD0(GetDuration, base::TimeDelta());
28 MOCK_CONST_METHOD0(GetTime, base::TimeDelta());
29 MOCK_METHOD1(SetNaturalVideoSize, void(const gfx::Size& size));
30 MOCK_METHOD0(NotifyEnded, void());
31 MOCK_METHOD0(DisableAudioRenderer, void());
32
33 private:
34 DISALLOW_COPY_AND_ASSIGN(MockFilterHost);
35 };
36
37 } // namespace media
38
39 #endif // MEDIA_BASE_MOCK_FILTER_HOST_H_
OLDNEW
« no previous file with comments | « media/base/filters.cc ('k') | media/base/mock_filter_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698