summaryrefslogtreecommitdiff
path: root/chromium/media/base/decode_status.cc
blob: b01566430621b8243b76199fc2491a69e56370bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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