(This is a merge of http://go/wvgerrit/13400 from the Widevine CDM repository.) Replace "}; // namespace" with "} // namespace": ag -l --ignore-dir third_party "}; //" | \ while read f; do sed -r -i 's/\}; \/\//} \/\//' $f ; done Replace "// unnamed namespace" with "// namespace": ag -l --ignore-dir third_party "unnamed namespace" | \ while read f; do sed -r -i 's/unnamed namespace/namespace/' $f ; done Change-Id: I50ece9a127ce669f15cd532dfae1dd741338a075
20 lines
718 B
C++
20 lines
718 B
C++
// Copyright 2013 Google Inc. All Rights Reserved.
|
|
// 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 CDM_TEST_PRINTERS_H_
|
|
#define CDM_TEST_PRINTERS_H_
|
|
|
|
#include <iostream>
|
|
#include "wv_cdm_types.h"
|
|
|
|
namespace wvcdm {
|
|
void PrintTo(const enum CdmResponseType& value, ::std::ostream* os);
|
|
void PrintTo(const enum CdmEventType& value, ::std::ostream* os);
|
|
void PrintTo(const enum CdmLicenseType& value, ::std::ostream* os);
|
|
void PrintTo(const enum CdmSecurityLevel& value, ::std::ostream* os);
|
|
void PrintTo(const enum CdmCertificateType& value, ::std::ostream* os);
|
|
} // namespace wvcdm
|
|
|
|
#endif // CDM_TEST_PRINTERS_H_
|