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

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

Issue 15442002: Move FileAPI sandboxed filesystem related code from webkit/fileapi to webkit/browser/fileapi (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased 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 "webkit/browser/fileapi/file_system_dir_url_request_job.h" 5 #include "webkit/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/scoped_temp_dir.h" 10 #include "base/files/scoped_temp_dir.h"
11 #include "base/format_macros.h" 11 #include "base/format_macros.h"
12 #include "base/memory/weak_ptr.h" 12 #include "base/memory/weak_ptr.h"
13 #include "base/message_loop.h" 13 #include "base/message_loop.h"
14 #include "base/platform_file.h" 14 #include "base/platform_file.h"
15 #include "base/strings/string_piece.h" 15 #include "base/strings/string_piece.h"
16 #include "base/utf_string_conversions.h" 16 #include "base/utf_string_conversions.h"
17 #include "net/base/net_errors.h" 17 #include "net/base/net_errors.h"
18 #include "net/base/net_util.h" 18 #include "net/base/net_util.h"
19 #include "net/http/http_request_headers.h" 19 #include "net/http/http_request_headers.h"
20 #include "net/url_request/url_request.h" 20 #include "net/url_request/url_request.h"
21 #include "net/url_request/url_request_context.h" 21 #include "net/url_request/url_request_context.h"
22 #include "net/url_request/url_request_test_util.h" 22 #include "net/url_request/url_request_test_util.h"
23 #include "testing/gtest/include/gtest/gtest.h" 23 #include "testing/gtest/include/gtest/gtest.h"
24 #include "third_party/icu/public/i18n/unicode/regex.h" 24 #include "third_party/icu/public/i18n/unicode/regex.h"
25 #include "webkit/browser/fileapi/sandbox_mount_point_provider.h"
25 #include "webkit/fileapi/file_system_context.h" 26 #include "webkit/fileapi/file_system_context.h"
26 #include "webkit/fileapi/file_system_file_util.h" 27 #include "webkit/fileapi/file_system_file_util.h"
27 #include "webkit/fileapi/file_system_operation_context.h" 28 #include "webkit/fileapi/file_system_operation_context.h"
28 #include "webkit/fileapi/file_system_url.h" 29 #include "webkit/fileapi/file_system_url.h"
29 #include "webkit/fileapi/mock_file_system_context.h" 30 #include "webkit/fileapi/mock_file_system_context.h"
30 #include "webkit/fileapi/sandbox_mount_point_provider.h"
31 #include "webkit/quota/mock_special_storage_policy.h" 31 #include "webkit/quota/mock_special_storage_policy.h"
32 32
33 namespace fileapi { 33 namespace fileapi {
34 namespace { 34 namespace {
35 35
36 // We always use the TEMPORARY FileSystem in this test. 36 // We always use the TEMPORARY FileSystem in this test.
37 static const char kFileSystemURLPrefix[] = 37 static const char kFileSystemURLPrefix[] =
38 "filesystem:http://remote/temporary/"; 38 "filesystem:http://remote/temporary/";
39 39
40 } // namespace 40 } // namespace
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 CreateDirectory("foo"); 280 CreateDirectory("foo");
281 TestRequestNoRun(CreateFileSystemURL("foo/")); 281 TestRequestNoRun(CreateFileSystemURL("foo/"));
282 // Run StartAsync() and only StartAsync(). 282 // Run StartAsync() and only StartAsync().
283 base::MessageLoop::current()->DeleteSoon(FROM_HERE, request_.release()); 283 base::MessageLoop::current()->DeleteSoon(FROM_HERE, request_.release());
284 base::MessageLoop::current()->RunUntilIdle(); 284 base::MessageLoop::current()->RunUntilIdle();
285 // If we get here, success! we didn't crash! 285 // If we get here, success! we didn't crash!
286 } 286 }
287 287
288 } // namespace (anonymous) 288 } // namespace (anonymous)
289 } // namespace fileapi 289 } // namespace fileapi
OLDNEW
« no previous file with comments | « content/content_tests.gypi ('k') | webkit/browser/fileapi/file_system_mount_point_provider_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698