Replace typedef with using statement in cdm/core/ files.

[ Merge of http://go/wvgerrit/80805 ]

This change was used only where `typedef` was used for type aliasing,
and not for defining a new type (such as enums, structs, or function
pointer types).

Clang-format was used on the changed files.

Test: WV unit tests
Bug: 134437705
Change-Id: I730b9709a5ac773b3036daa79024caab665b3daa
This commit is contained in:
Alex Dale
2019-06-07 11:15:42 -07:00
parent a178eed57d
commit ce0ea7b20b
10 changed files with 56 additions and 56 deletions

View File

@@ -67,8 +67,8 @@ using video_widevine::LicenseIdentification;
using video_widevine::STREAMING;
using video_widevine::OFFLINE;
typedef ::video_widevine::License::KeyContainer KeyContainer;
typedef KeyContainer::VideoResolutionConstraint VideoResolutionConstraint;
using KeyContainer = ::video_widevine::License::KeyContainer;
using VideoResolutionConstraint = KeyContainer::VideoResolutionConstraint;
class LicenseKeysTest : public ::testing::Test {
protected:

View File

@@ -24,15 +24,15 @@ using video_widevine::STREAMING;
namespace wvcdm {
typedef ::video_widevine::License License;
typedef ::video_widevine::License::KeyContainer KeyContainer;
typedef ::video_widevine::License::KeyContainer::OutputProtection
OutputProtection;
typedef ::video_widevine::License::KeyContainer::
VideoResolutionConstraint VideoResolutionConstraint;
typedef ::google::protobuf::RepeatedPtrField<KeyContainer> KeyList;
typedef ::google::protobuf::RepeatedPtrField<VideoResolutionConstraint>
ConstraintList;
using License = ::video_widevine::License;
using KeyContainer = ::video_widevine::License::KeyContainer;
using OutputProtection =
::video_widevine::License::KeyContainer::OutputProtection;
using VideoResolutionConstraint =
::video_widevine::License::KeyContainer::VideoResolutionConstraint;
using KeyList = ::google::protobuf::RepeatedPtrField<KeyContainer>;
using ConstraintList =
::google::protobuf::RepeatedPtrField<VideoResolutionConstraint>;
using namespace testing;