Index: media/base/decode_status.cc |
diff --git a/media/base/decode_status.cc b/media/base/decode_status.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..b01566430621b8243b76199fc2491a69e56370bb |
--- /dev/null |
+++ b/media/base/decode_status.cc |
@@ -0,0 +1,26 @@ |
+// Copyright 2016 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. |
+ |
+#include "media/base/decode_status.h" |
+ |
+#include <ostream> |
+ |
+namespace media { |
+ |
+std::ostream& operator<<(std::ostream& os, const DecodeStatus& status) { |
+ switch (status) { |
+ case DecodeStatus::OK: |
+ os << "DecodeStatus::OK"; |
+ break; |
+ case DecodeStatus::ABORTED: |
+ os << "DecodeStatus::ABORTED"; |
+ break; |
+ case DecodeStatus::DECODE_ERROR: |
+ os << "DecodeStatus::DECODE_ERROR"; |
+ break; |
+ } |
+ return os; |
+} |
+ |
+} // namespace media |