Export media_cas_proxy_sdk

This commit is contained in:
Fang Yu
2018-11-14 09:05:33 -08:00
parent 6d0d9d825c
commit 5031d1bc6f
146 changed files with 24654 additions and 0 deletions

31
testing/BUILD Normal file
View File

@@ -0,0 +1,31 @@
################################################################################
# Copyright 2017 Google LLC.
#
# This software is licensed under the terms defined in the Widevine Master
# License Agreement. For a copy of this agreement, please contact
# widevine-licensing@google.com.
################################################################################
package(
default_visibility = ["//visibility:public"],
)
cc_library(
name = "gunit",
hdrs = [
"gmock.h",
"gunit.h",
],
deps = [
"//external:gtest",
"//util:status",
],
)
cc_library(
name = "gunit_main",
deps = [
":gunit",
"//external:gtest_main",
],
)

14
testing/gmock.h Normal file
View File

@@ -0,0 +1,14 @@
////////////////////////////////////////////////////////////////////////////////
// Copyright 2017 Google LLC.
//
// This software is licensed under the terms defined in the Widevine Master
// License Agreement. For a copy of this agreement, please contact
// widevine-licensing@google.com.
////////////////////////////////////////////////////////////////////////////////
#ifndef TESTING_GMOCK_H_
#define TESTING_GMOCK_H_
#include <gmock/gmock.h>
#endif // TESTING_GMOCK_H_

19
testing/gunit.h Normal file
View File

@@ -0,0 +1,19 @@
////////////////////////////////////////////////////////////////////////////////
// Copyright 2017 Google LLC.
//
// This software is licensed under the terms defined in the Widevine Master
// License Agreement. For a copy of this agreement, please contact
// widevine-licensing@google.com.
////////////////////////////////////////////////////////////////////////////////
#ifndef TESTING_GUNIT_H_
#define TESTING_GUNIT_H_
#include <gtest/gtest.h>
#define EXPECT_OK(expression) \
EXPECT_EQ(util::error::OK, expression.error_code())
#define ASSERT_OK(expression) \
ASSERT_EQ(util::error::OK, expression.error_code())
#endif // TESTING_GUNIT_H_