OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 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 #include "media/base/decode_status.h" |
| 6 |
| 7 #include <ostream> |
| 8 |
| 9 namespace media { |
| 10 |
| 11 std::ostream& operator<<(std::ostream& os, const DecodeStatus& status) { |
| 12 switch (status) { |
| 13 case DecodeStatus::OK: |
| 14 os << "DecodeStatus::OK"; |
| 15 break; |
| 16 case DecodeStatus::ABORTED: |
| 17 os << "DecodeStatus::ABORTED"; |
| 18 break; |
| 19 case DecodeStatus::DECODE_ERROR: |
| 20 os << "DecodeStatus::DECODE_ERROR"; |
| 21 break; |
| 22 } |
| 23 return os; |
| 24 } |
| 25 |
| 26 } // namespace media |
OLD | NEW |