1 // Copyright 2017 The Chromium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #ifndef STORAGE_BROWSER_TEST_MOCK_BLOB_REGISTRY_DELEGATE_H_ 6 #define STORAGE_BROWSER_TEST_MOCK_BLOB_REGISTRY_DELEGATE_H_ 7 8 #include "storage/browser/blob/blob_registry_impl.h" 9 10 namespace storage { 11 12 class MockBlobRegistryDelegate : public BlobRegistryImpl::Delegate { 13 public: 14 MockBlobRegistryDelegate() = default; 15 ~MockBlobRegistryDelegate() override = default; 16 17 bool CanReadFile(const base::FilePath& file) override; 18 bool CanReadFileSystemFile(const FileSystemURL& url) override; 19 bool CanCommitURL(const GURL& url) override; 20 21 bool can_read_file_result = true; 22 bool can_read_file_system_file_result = true; 23 bool can_commit_url_result = true; 24 }; 25 26 } // namespace storage 27 28 #endif // STORAGE_BROWSER_TEST_MOCK_BLOB_REGISTRY_DELEGATE_H_ 29