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

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

Issue 2085012: Reporting a more accurate buffered time for the video tag (Closed)
Patch Set: Added checks to fix some edgecase bugs. Created 10 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 unified diff | Download patch
« no previous file with comments | « media/base/filter_host.h ('k') | media/base/pipeline.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 // 4 //
5 // A FilterHost implementation based on gmock. Combined with setting a message 5 // A FilterHost implementation based on gmock. Combined with setting a message
6 // loop on a filter, permits single-threaded testing of filters without 6 // loop on a filter, permits single-threaded testing of filters without
7 // requiring a pipeline. 7 // requiring a pipeline.
8 8
9 #ifndef MEDIA_BASE_MOCK_FILTER_HOST_H_ 9 #ifndef MEDIA_BASE_MOCK_FILTER_HOST_H_
10 #define MEDIA_BASE_MOCK_FILTER_HOST_H_ 10 #define MEDIA_BASE_MOCK_FILTER_HOST_H_
(...skipping 24 matching lines...) Expand all
35 MOCK_METHOD1(SetDuration, void(base::TimeDelta duration)); 35 MOCK_METHOD1(SetDuration, void(base::TimeDelta duration));
36 MOCK_METHOD1(SetBufferedTime, void(base::TimeDelta buffered_time)); 36 MOCK_METHOD1(SetBufferedTime, void(base::TimeDelta buffered_time));
37 MOCK_METHOD1(SetTotalBytes, void(int64 total_bytes)); 37 MOCK_METHOD1(SetTotalBytes, void(int64 total_bytes));
38 MOCK_METHOD1(SetBufferedBytes, void(int64 buffered_bytes)); 38 MOCK_METHOD1(SetBufferedBytes, void(int64 buffered_bytes));
39 MOCK_METHOD2(SetVideoSize, void(size_t width, size_t height)); 39 MOCK_METHOD2(SetVideoSize, void(size_t width, size_t height));
40 MOCK_METHOD1(SetStreaming, void(bool streamed)); 40 MOCK_METHOD1(SetStreaming, void(bool streamed));
41 MOCK_METHOD1(SetLoaded, void(bool loaded)); 41 MOCK_METHOD1(SetLoaded, void(bool loaded));
42 MOCK_METHOD1(SetNetworkActivity, void(bool network_activity)); 42 MOCK_METHOD1(SetNetworkActivity, void(bool network_activity));
43 MOCK_METHOD0(NotifyEnded, void()); 43 MOCK_METHOD0(NotifyEnded, void());
44 MOCK_METHOD0(DisableAudioRenderer, void()); 44 MOCK_METHOD0(DisableAudioRenderer, void());
45 MOCK_METHOD1(SetCurrentReadPosition, void(int64 offset));
46 MOCK_METHOD0(GetCurrentReadPosition, int64());
45 47
46 private: 48 private:
47 DISALLOW_COPY_AND_ASSIGN(MockFilterHost); 49 DISALLOW_COPY_AND_ASSIGN(MockFilterHost);
48 }; 50 };
49 51
50 } // namespace media 52 } // namespace media
51 53
52 #endif // MEDIA_BASE_MOCK_FILTER_HOST_H_ 54 #endif // MEDIA_BASE_MOCK_FILTER_HOST_H_
OLDNEW
« no previous file with comments | « media/base/filter_host.h ('k') | media/base/pipeline.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698