Index: media/base/pipeline.cc |
diff --git a/media/base/pipeline.cc b/media/base/pipeline.cc |
index 470f1868e734b483ea57375a7cd4fad05735712b..bc75cb4f94b2e7eb08f2a4e071d87e051afff98a 100644 |
--- a/media/base/pipeline.cc |
+++ b/media/base/pipeline.cc |
@@ -259,6 +259,10 @@ void Pipeline::SetClockForTesting(Clock* clock) { |
clock_.reset(clock); |
} |
+void Pipeline::SetErrorForTesting(PipelineStatus status) { |
+ SetError(status); |
+} |
+ |
void Pipeline::SetState(State next_state) { |
if (state_ != kStarted && next_state == kStarted && |
!creation_time_.is_null()) { |