blob: 9fbcbdbddb8c11764e1bc0092a673b2821cd5522 [file] [log] [blame]
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef STORAGE_BROWSER_TEST_MOCK_BLOB_REGISTRY_DELEGATE_H_
#define STORAGE_BROWSER_TEST_MOCK_BLOB_REGISTRY_DELEGATE_H_
#include "storage/browser/blob/blob_registry_impl.h"
namespace storage {
class MockBlobRegistryDelegate : public BlobRegistryImpl::Delegate {
public:
MockBlobRegistryDelegate() = default;
~MockBlobRegistryDelegate() override = default;
bool CanReadFile(const base::FilePath& file) override;
bool CanAccessDataForOrigin(const url::Origin& origin) override;
bool can_read_file_result = true;
bool can_access_data_for_origin = true;
};
} // namespace storage
#endif // STORAGE_BROWSER_TEST_MOCK_BLOB_REGISTRY_DELEGATE_H_