looking good http://codereview.chromium.org/11103027/diff/15001/webkit/blob/blob_url_request_job_unittest.cc File webkit/blob/blob_url_request_job_unittest.cc (right): http://codereview.chromium.org/11103027/diff/15001/webkit/blob/blob_url_request_job_unittest.cc#newcode199 webkit/blob/blob_url_request_job_unittest.cc:199: sandbox_provider()->GetFileUtil(fileapi::kFileSystemTypeTemporary); On 2012/10/18 13:38:13, hashimoto wrote: > ...
8 years, 2 months ago
(2012-10-19 04:07:19 UTC)
#4
looking good
http://codereview.chromium.org/11103027/diff/15001/webkit/blob/blob_url_reque...
File webkit/blob/blob_url_request_job_unittest.cc (right):
http://codereview.chromium.org/11103027/diff/15001/webkit/blob/blob_url_reque...
webkit/blob/blob_url_request_job_unittest.cc:199:
sandbox_provider()->GetFileUtil(fileapi::kFileSystemTypeTemporary);
On 2012/10/18 13:38:13, hashimoto wrote:
> On 2012/10/18 11:57:54, kinuko wrote:
> > file_system_context_->GetFileUtil(type) should work.
> Done.
>
> Here I was mimicking file_system_url_request_job_unittest.cc, and
> file_system_file_stream_reader_unitteest.cc is also doing the same thing.
> Should I also fix them?
I see... could you fix them as well in a separate patch? Directly using
sandbox_provider() is not very portable unless we're specifically interested in
testing the SandboxMountPointProvider.
> >
> > It might be nicer to define some constant for
> fileapi::kFileSystemTypeTemporary
> > so that we can easily change testing fs type if necessary (e.g. we can
instead
> > use kFileSystemTypeTest for simpler tests) & save typing.
>
> Done.
http://codereview.chromium.org/11103027/diff/15001/webkit/blob/blob_url_reque...
webkit/blob/blob_url_request_job_unittest.cc:234: // Prepare file system.
On 2012/10/18 13:38:13, hashimoto wrote:
> On 2012/10/18 11:57:54, kinuko wrote:
> > It feels a bit heavy to run this setup for every test. Can we only setup
> > filesystem env for the tests that use FileSystemURL?
> Sorry, it looks my understanding of webkit/fileapi code is not so good.
> You mean there is a light weight utility which can be used to provide
> FileSystemContext for tests?
As we chatted I meant we shouldn't always do this but can put this part in a
separate function and call it only in tests that are related to FileSystemURL.
http://codereview.chromium.org/11103027/diff/25001/webkit/blob/blob_url_reque...
File webkit/blob/blob_url_request_job_unittest.cc (right):
http://codereview.chromium.org/11103027/diff/25001/webkit/blob/blob_url_reque...
webkit/blob/blob_url_request_job_unittest.cc:57: return GURL(root_uri.spec() +
filename);
Btw this can be also implemented using root URL returned by OpenFileSystem (you
can refer it in OnValidateFileSystem). You can remember the root and make this
function a member method.
http://codereview.chromium.org/11103027/diff/25001/webkit/blob/blob_url_reque...
webkit/blob/blob_url_request_job_unittest.cc:249: const char
kFileSystemFilename1[] = "FileSystemFile1.dat";
I'd use shorter names if we only use this variable in a few lines below.
http://codereview.chromium.org/11103027/diff/25001/webkit/fileapi/file_system...
File webkit/fileapi/file_system_util.h (right):
http://codereview.chromium.org/11103027/diff/25001/webkit/fileapi/file_system...
webkit/fileapi/file_system_util.h:26: WEBKIT_STORAGE_EXPORT extern const char
kTestDir[];
This change is not necessary now?
hashimoto
New patch set which replaces the existing hand-made task scheduling system with base::RunLoop. PTAL. http://codereview.chromium.org/11103027/diff/25001/webkit/blob/blob_url_request_job_unittest.cc ...
8 years, 2 months ago
(2012-10-19 07:07:45 UTC)
#5
Issue 11103027: Support filesystem files from BlobURLRequestJob
(Closed)
Created 8 years, 2 months ago by hashimoto
Modified 8 years, 2 months ago
Reviewers: kinuko, jam
Base URL: svn://svn.chromium.org/chrome/trunk/src
Comments: 34