Export media_cas_packager_sdk
This commit is contained in:
31
testing/BUILD
Normal file
31
testing/BUILD
Normal 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
14
testing/gmock.h
Normal 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
19
testing/gunit.h
Normal 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_
|
||||
Reference in New Issue
Block a user