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

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

Issue 11595003: webkit: Update the calls from RunAllPending() to RunUntilIdle(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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_path.h" 6 #include "base/file_path.h"
7 #include "base/file_util.h" 7 #include "base/file_util.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 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 NULL, 173 NULL,
174 temp_dir_.path(), 174 temp_dir_.path(),
175 fileapi::CreateDisallowFileAccessOptions()); 175 fileapi::CreateDisallowFileAccessOptions());
176 176
177 file_system_context_->OpenFileSystem( 177 file_system_context_->OpenFileSystem(
178 GURL(kFileSystemURLOrigin), 178 GURL(kFileSystemURLOrigin),
179 kFileSystemType, 179 kFileSystemType,
180 true, // create 180 true, // create
181 base::Bind(&BlobURLRequestJobTest::OnValidateFileSystem, 181 base::Bind(&BlobURLRequestJobTest::OnValidateFileSystem,
182 base::Unretained(this))); 182 base::Unretained(this)));
183 MessageLoop::current()->RunAllPending(); 183 MessageLoop::current()->RunUntilIdle();
184 ASSERT_TRUE(file_system_root_url_.is_valid()); 184 ASSERT_TRUE(file_system_root_url_.is_valid());
185 185
186 // Prepare files on file system. 186 // Prepare files on file system.
187 const char kFilename1[] = "FileSystemFile1.dat"; 187 const char kFilename1[] = "FileSystemFile1.dat";
188 temp_file_system_file1_ = GetFileSystemURL(kFilename1); 188 temp_file_system_file1_ = GetFileSystemURL(kFilename1);
189 WriteFileSystemFile(kFilename1, kTestFileSystemFileData1, 189 WriteFileSystemFile(kFilename1, kTestFileSystemFileData1,
190 arraysize(kTestFileSystemFileData1) - 1, 190 arraysize(kTestFileSystemFileData1) - 1,
191 &temp_file_system_file_modification_time1_); 191 &temp_file_system_file_modification_time1_);
192 const char kFilename2[] = "FileSystemFile2.dat"; 192 const char kFilename2[] = "FileSystemFile2.dat";
193 temp_file_system_file2_ = GetFileSystemURL(kFilename2); 193 temp_file_system_file2_ = GetFileSystemURL(kFilename2);
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
445 EXPECT_TRUE(request_->response_headers()->GetMimeType(&content_type)); 445 EXPECT_TRUE(request_->response_headers()->GetMimeType(&content_type));
446 EXPECT_EQ(kTestContentType, content_type); 446 EXPECT_EQ(kTestContentType, content_type);
447 void* iter = NULL; 447 void* iter = NULL;
448 std::string content_disposition; 448 std::string content_disposition;
449 EXPECT_TRUE(request_->response_headers()->EnumerateHeader( 449 EXPECT_TRUE(request_->response_headers()->EnumerateHeader(
450 &iter, "Content-Disposition", &content_disposition)); 450 &iter, "Content-Disposition", &content_disposition));
451 EXPECT_EQ(kTestContentDisposition, content_disposition); 451 EXPECT_EQ(kTestContentDisposition, content_disposition);
452 } 452 }
453 453
454 } // namespace webkit_blob 454 } // namespace webkit_blob
OLDNEW
« no previous file with comments | « webkit/appcache/mock_appcache_storage_unittest.cc ('k') | webkit/blob/local_file_stream_reader_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698