void set_last_access_time(PP_Time time) { info_.last_access_time = time; }
void set_last_modified_time(PP_Time time) { info_.last_modified_time = time; }
+ const std::vector<uint8_t>& contents() const { return contents_; }
+
private:
PP_FileInfo info_;
std::vector<uint8_t> contents_;
virtual PP_Resource Create(PP_Resource file_system, const char* path);
virtual PP_Var GetName(PP_Resource file_ref);
virtual int32_t MakeDirectory(PP_Resource directory_ref,
- int32_t make_directory_flags,
+ PP_Bool make_parents,
PP_CompletionCallback callback);
virtual int32_t Delete(PP_Resource file_ref, PP_CompletionCallback callback);
virtual int32_t Query(PP_Resource file_ref,
virtual int32_t ReadDirectoryEntries(PP_Resource file_ref,
const PP_ArrayOutput& output,
PP_CompletionCallback callback);
+ virtual int32_t Rename(PP_Resource file_ref,
+ PP_Resource new_file_ref,
+ PP_CompletionCallback callback);
private:
FakeCoreInterface* core_interface_; // Weak reference.
private:
void Init();
+ FakeResourceManager resource_manager_;
FakeCoreInterface core_interface_;
FakeVarInterface var_interface_;
FakeVarManager var_manager_;