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

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

Issue 10832197: Add a lot of Pipeline tests to cover stopping/error handling while in a variety of states. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src
Patch Set: todo Created 8 years, 4 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/mock_filters.h ('k') | media/base/pipeline.cc » ('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) 2012 The Chromium Authors. All rights reserved. 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 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 #ifndef MEDIA_BASE_PIPELINE_H_ 5 #ifndef MEDIA_BASE_PIPELINE_H_
6 #define MEDIA_BASE_PIPELINE_H_ 6 #define MEDIA_BASE_PIPELINE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/gtest_prod_util.h" 10 #include "base/gtest_prod_util.h"
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 void GetNaturalVideoSize(gfx::Size* out_size) const; 210 void GetNaturalVideoSize(gfx::Size* out_size) const;
211 211
212 // Return true if loading progress has been made since the last time this 212 // Return true if loading progress has been made since the last time this
213 // method was called. 213 // method was called.
214 bool DidLoadingProgress() const; 214 bool DidLoadingProgress() const;
215 215
216 // Gets the current pipeline statistics. 216 // Gets the current pipeline statistics.
217 PipelineStatistics GetStatistics() const; 217 PipelineStatistics GetStatistics() const;
218 218
219 void SetClockForTesting(Clock* clock); 219 void SetClockForTesting(Clock* clock);
220 void SetErrorForTesting(PipelineStatus status);
220 221
221 private: 222 private:
222 FRIEND_TEST_ALL_PREFIXES(PipelineTest, GetBufferedTimeRanges); 223 FRIEND_TEST_ALL_PREFIXES(PipelineTest, GetBufferedTimeRanges);
223 FRIEND_TEST_ALL_PREFIXES(PipelineTest, DisableAudioRenderer); 224 FRIEND_TEST_ALL_PREFIXES(PipelineTest, DisableAudioRenderer);
224 FRIEND_TEST_ALL_PREFIXES(PipelineTest, DisableAudioRendererDuringInit); 225 FRIEND_TEST_ALL_PREFIXES(PipelineTest, DisableAudioRendererDuringInit);
225 FRIEND_TEST_ALL_PREFIXES(PipelineTest, EndedCallback); 226 FRIEND_TEST_ALL_PREFIXES(PipelineTest, EndedCallback);
226 FRIEND_TEST_ALL_PREFIXES(PipelineTest, AudioStreamShorterThanVideo); 227 FRIEND_TEST_ALL_PREFIXES(PipelineTest, AudioStreamShorterThanVideo);
227 friend class MediaLog; 228 friend class MediaLog;
228 229
229 // Only allow ourselves to be deleted by reference counting. 230 // Only allow ourselves to be deleted by reference counting.
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after
562 base::Time creation_time_; 563 base::Time creation_time_;
563 564
564 scoped_ptr<SerialRunner> pending_callbacks_; 565 scoped_ptr<SerialRunner> pending_callbacks_;
565 566
566 DISALLOW_COPY_AND_ASSIGN(Pipeline); 567 DISALLOW_COPY_AND_ASSIGN(Pipeline);
567 }; 568 };
568 569
569 } // namespace media 570 } // namespace media
570 571
571 #endif // MEDIA_BASE_PIPELINE_H_ 572 #endif // MEDIA_BASE_PIPELINE_H_
OLDNEW
« no previous file with comments | « media/base/mock_filters.h ('k') | media/base/pipeline.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698