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