22 lines
730 B
C++
22 lines
730 B
C++
// Copyright 2018 Google LLC. All Rights Reserved. This file and proprietary
|
|
// source code may only be used and distributed under the Widevine License
|
|
// Agreement.
|
|
// This file adds some print methods so that when unit tests fail, the
|
|
// will print the name of an enumeration instead of the numeric value.
|
|
|
|
#ifndef WVCDM_CDM_TEST_CDM_TEST_PRINTERS_H_
|
|
#define WVCDM_CDM_TEST_CDM_TEST_PRINTERS_H_
|
|
|
|
#include <iostream>
|
|
#include "cdm.h"
|
|
|
|
namespace CDM_NAMESPACE {
|
|
|
|
void PrintTo(const Cdm::MessageType& value, ::std::ostream* os);
|
|
void PrintTo(const Cdm::Status& value, ::std::ostream* os);
|
|
void PrintTo(const Cdm::KeyStatus& value, ::std::ostream* os);
|
|
|
|
} // namespace CDM_NAMESPACE
|
|
|
|
#endif // WVCDM_CDM_TEST_CDM_TEST_PRINTERS_H_
|