Source release v3.5.0
This commit is contained in:
34
cdm/test/level3_file_system_ce_test.h
Normal file
34
cdm/test/level3_file_system_ce_test.h
Normal file
@@ -0,0 +1,34 @@
|
||||
// Copyright 2017 Google Inc. All Rights Reserved
|
||||
|
||||
/*********************************************************************
|
||||
* level3_file_system_ce_test.h
|
||||
*
|
||||
* Test file system for CE CDM for OEMCrypto Level3 File Operations.
|
||||
*********************************************************************/
|
||||
|
||||
#ifndef LEVEL3_FILE_SYSTEM_CE_TEST_H_
|
||||
#define LEVEL3_FILE_SYSTEM_CE_TEST_H_
|
||||
|
||||
#include "cdm.h"
|
||||
#include "file_store.h"
|
||||
#include "level3_file_system.h"
|
||||
|
||||
namespace wvoec3 {
|
||||
|
||||
class OEMCrypto_Level3CETestFileSystem : public OEMCrypto_Level3FileSystem {
|
||||
public:
|
||||
OEMCrypto_Level3CETestFileSystem() {};
|
||||
~OEMCrypto_Level3CETestFileSystem() override {};
|
||||
ssize_t Read(const char *filename, void *buffer, size_t size) override;
|
||||
ssize_t Write(const char *filename, const void *buffer, size_t size) override;
|
||||
bool Exists(const char *filename) override;
|
||||
ssize_t FileSize(const char *filename) override;
|
||||
bool Remove(const char *filename) override;
|
||||
|
||||
private:
|
||||
static std::map<std::string, std::string> files_;
|
||||
};
|
||||
|
||||
} // namespace wvoec3
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user