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

Side by Side Diff: content/browser/fileapi/file_system_dir_url_request_job_unittest.cc

Issue 1003953008: Remove prerender cookie store, part 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@prerender-revert-cookie-store-3
Patch Set: rebase (just in case since this is so huge) Created 5 years, 9 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "storage/browser/fileapi/file_system_dir_url_request_job.h" 5 #include "storage/browser/fileapi/file_system_dir_url_request_job.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "base/files/file_util.h" 10 #include "base/files/file_util.h"
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 170
171 void TestRequestHelper(const GURL& url, bool run_to_completion, 171 void TestRequestHelper(const GURL& url, bool run_to_completion,
172 FileSystemContext* file_system_context) { 172 FileSystemContext* file_system_context) {
173 delegate_.reset(new net::TestDelegate()); 173 delegate_.reset(new net::TestDelegate());
174 delegate_->set_quit_on_redirect(true); 174 delegate_->set_quit_on_redirect(true);
175 job_factory_.reset(new FileSystemDirURLRequestJobFactory( 175 job_factory_.reset(new FileSystemDirURLRequestJobFactory(
176 url.GetOrigin().host(), file_system_context)); 176 url.GetOrigin().host(), file_system_context));
177 empty_context_.set_job_factory(job_factory_.get()); 177 empty_context_.set_job_factory(job_factory_.get());
178 178
179 request_ = empty_context_.CreateRequest( 179 request_ = empty_context_.CreateRequest(
180 url, net::DEFAULT_PRIORITY, delegate_.get(), NULL); 180 url, net::DEFAULT_PRIORITY, delegate_.get());
181 request_->Start(); 181 request_->Start();
182 ASSERT_TRUE(request_->is_pending()); // verify that we're starting async 182 ASSERT_TRUE(request_->is_pending()); // verify that we're starting async
183 if (run_to_completion) 183 if (run_to_completion)
184 base::MessageLoop::current()->Run(); 184 base::MessageLoop::current()->Run();
185 } 185 }
186 186
187 void TestRequest(const GURL& url) { 187 void TestRequest(const GURL& url) {
188 TestRequestHelper(url, true, file_system_context_.get()); 188 TestRequestHelper(url, true, file_system_context_.get());
189 } 189 }
190 190
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
445 ASSERT_FALSE(request_->status().is_success()); 445 ASSERT_FALSE(request_->status().is_success());
446 EXPECT_EQ(net::ERR_FILE_NOT_FOUND, request_->status().error()); 446 EXPECT_EQ(net::ERR_FILE_NOT_FOUND, request_->status().error());
447 447
448 ASSERT_FALSE( 448 ASSERT_FALSE(
449 storage::ExternalMountPoints::GetSystemInstance()->RevokeFileSystem( 449 storage::ExternalMountPoints::GetSystemInstance()->RevokeFileSystem(
450 kValidExternalMountPoint)); 450 kValidExternalMountPoint));
451 } 451 }
452 452
453 } // namespace (anonymous) 453 } // namespace (anonymous)
454 } // namespace content 454 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698