Source release 18.1.0
This commit is contained in:
41
oemcrypto/test/oemcrypto_basic_test.h
Normal file
41
oemcrypto/test/oemcrypto_basic_test.h
Normal file
@@ -0,0 +1,41 @@
|
||||
// Copyright 2022 Google LLC. All Rights Reserved. This file and proprietary
|
||||
// source code may only be used and distributed under the Widevine
|
||||
// License Agreement.
|
||||
//
|
||||
// Test data for OEMCrypto unit tests.
|
||||
//
|
||||
#ifndef CDM_OEMCRYPTO_BASIC_TEST_
|
||||
#define CDM_OEMCRYPTO_BASIC_TEST_
|
||||
|
||||
#include <vector>
|
||||
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
#include "OEMCryptoCENC.h"
|
||||
#include "oemcrypto_session_tests_helper.h"
|
||||
|
||||
namespace wvoec {
|
||||
|
||||
const char* HDCPCapabilityAsString(OEMCrypto_HDCP_Capability value);
|
||||
|
||||
std::string MaybeHex(const uint8_t* data, size_t length);
|
||||
std::string MaybeHex(const std::vector<uint8_t>& data);
|
||||
|
||||
/** Tests for just basic client functionality. */
|
||||
class OEMCryptoClientTest : public ::testing::Test, public SessionUtil {
|
||||
protected:
|
||||
OEMCryptoClientTest() {}
|
||||
|
||||
void SetUp() override;
|
||||
void TearDown() override;
|
||||
const uint8_t* find(const std::vector<uint8_t>& message,
|
||||
const std::vector<uint8_t>& substring);
|
||||
OEMCryptoResult CopyBuffer(
|
||||
OEMCrypto_SESSION session, OEMCrypto_SharedMemory* input_buffer,
|
||||
size_t input_buffer_size,
|
||||
const OEMCrypto_DestBufferDesc* dest_buffer_descriptor,
|
||||
uint8_t subsample_flags);
|
||||
};
|
||||
} // namespace wvoec
|
||||
|
||||
#endif // CDM_OEMCRYPTO_BASIC_TEST_
|
||||
Reference in New Issue
Block a user