Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(576)

Side by Side Diff: webkit/blob/blob_url_request_job_unittest.cc

Issue 16043006: Rename FileSystemMountPointProvider::ValidateFileSystemRoot to OpenFileSystem (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/bind.h" 5 #include "base/bind.h"
6 #include "base/file_util.h" 6 #include "base/file_util.h"
7 #include "base/files/file_path.h" 7 #include "base/files/file_path.h"
8 #include "base/files/scoped_temp_dir.h" 8 #include "base/files/scoped_temp_dir.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 } 165 }
166 166
167 void SetUpFileSystem() { 167 void SetUpFileSystem() {
168 // Prepare file system. 168 // Prepare file system.
169 file_system_context_ = fileapi::CreateFileSystemContextForTesting( 169 file_system_context_ = fileapi::CreateFileSystemContextForTesting(
170 NULL, temp_dir_.path()); 170 NULL, temp_dir_.path());
171 171
172 file_system_context_->OpenFileSystem( 172 file_system_context_->OpenFileSystem(
173 GURL(kFileSystemURLOrigin), 173 GURL(kFileSystemURLOrigin),
174 kFileSystemType, 174 kFileSystemType,
175 true, // create 175 fileapi::OPEN_FILE_SYSTEM_CREATE_IF_NONEXISTENT,
176 base::Bind(&BlobURLRequestJobTest::OnValidateFileSystem, 176 base::Bind(&BlobURLRequestJobTest::OnValidateFileSystem,
177 base::Unretained(this))); 177 base::Unretained(this)));
178 base::MessageLoop::current()->RunUntilIdle(); 178 base::MessageLoop::current()->RunUntilIdle();
179 ASSERT_TRUE(file_system_root_url_.is_valid()); 179 ASSERT_TRUE(file_system_root_url_.is_valid());
180 180
181 // Prepare files on file system. 181 // Prepare files on file system.
182 const char kFilename1[] = "FileSystemFile1.dat"; 182 const char kFilename1[] = "FileSystemFile1.dat";
183 temp_file_system_file1_ = GetFileSystemURL(kFilename1); 183 temp_file_system_file1_ = GetFileSystemURL(kFilename1);
184 WriteFileSystemFile(kFilename1, kTestFileSystemFileData1, 184 WriteFileSystemFile(kFilename1, kTestFileSystemFileData1,
185 arraysize(kTestFileSystemFileData1) - 1, 185 arraysize(kTestFileSystemFileData1) - 1,
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
442 EXPECT_TRUE(request_->response_headers()->GetMimeType(&content_type)); 442 EXPECT_TRUE(request_->response_headers()->GetMimeType(&content_type));
443 EXPECT_EQ(kTestContentType, content_type); 443 EXPECT_EQ(kTestContentType, content_type);
444 void* iter = NULL; 444 void* iter = NULL;
445 std::string content_disposition; 445 std::string content_disposition;
446 EXPECT_TRUE(request_->response_headers()->EnumerateHeader( 446 EXPECT_TRUE(request_->response_headers()->EnumerateHeader(
447 &iter, "Content-Disposition", &content_disposition)); 447 &iter, "Content-Disposition", &content_disposition));
448 EXPECT_EQ(kTestContentDisposition, content_disposition); 448 EXPECT_EQ(kTestContentDisposition, content_disposition);
449 } 449 }
450 450
451 } // namespace webkit_blob 451 } // namespace webkit_blob
OLDNEW
« no previous file with comments | « content/browser/fileapi/fileapi_message_filter.cc ('k') | webkit/browser/fileapi/copy_or_move_file_validator_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698