Builds libwvmdrmengine.so, which is loaded by the new MediaDrm APIs to support playback of Widevine/CENC protected content. Change-Id: I6f57dd37083dfd96c402cb9dd137c7d74edc8f1c
29 lines
680 B
C++
29 lines
680 B
C++
//
|
|
// Copyright 2013 Google Inc. All Rights Reserved.
|
|
//
|
|
|
|
#ifndef WV_CRYPTO_PLUGIN_MOCK_CDM_H_
|
|
#define WV_CRYPTO_PLUGIN_MOCK_CDM_H_
|
|
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
#include "gmock/gmock.h"
|
|
#include "wv_cdm_types.h"
|
|
#include "wv_content_decryption_module.h"
|
|
|
|
|
|
namespace wvcdm {
|
|
|
|
class MockCDM : public WvContentDecryptionModule {
|
|
public:
|
|
MOCK_METHOD8(Decrypt, CdmResponseType(const CdmSessionId&, bool, const KeyId&,
|
|
const uint8_t*, size_t,
|
|
const std::vector<uint8_t>&, size_t,
|
|
void*));
|
|
};
|
|
|
|
} // namespace wvcdm
|
|
|
|
#endif // WV_CRYPTO_PLUGIN_MOCK_CDM_H_
|