OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 "webkit/browser/fileapi/file_system_context.h" | 5 #include "webkit/browser/fileapi/file_system_context.h" |
6 | 6 |
7 #include "base/files/scoped_temp_dir.h" | 7 #include "base/files/scoped_temp_dir.h" |
8 #include "base/message_loop/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
9 #include "base/strings/stringprintf.h" | 9 #include "base/strings/stringprintf.h" |
10 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
(...skipping 10 matching lines...) Expand all Loading... |
21 #define DRIVE FPL("C:") | 21 #define DRIVE FPL("C:") |
22 #else | 22 #else |
23 #define DRIVE | 23 #define DRIVE |
24 #endif | 24 #endif |
25 | 25 |
26 namespace fileapi { | 26 namespace fileapi { |
27 | 27 |
28 namespace { | 28 namespace { |
29 | 29 |
30 const char kTestOrigin[] = "http://chromium.org/"; | 30 const char kTestOrigin[] = "http://chromium.org/"; |
31 const base::FilePath::CharType kVirtualPathNoRoot[] = FPL("root/file"); | |
32 | 31 |
33 GURL CreateRawFileSystemURL(const std::string& type_str, | 32 GURL CreateRawFileSystemURL(const std::string& type_str, |
34 const std::string& fs_id) { | 33 const std::string& fs_id) { |
35 std::string url_str = base::StringPrintf( | 34 std::string url_str = base::StringPrintf( |
36 "filesystem:http://chromium.org/%s/%s/root/file", | 35 "filesystem:http://chromium.org/%s/%s/root/file", |
37 type_str.c_str(), | 36 type_str.c_str(), |
38 fs_id.c_str()); | 37 fs_id.c_str()); |
39 return GURL(url_str); | 38 return GURL(url_str); |
40 } | 39 } |
41 | 40 |
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
319 base::FilePath(DRIVE FPL("/test/isolated/root"))); | 318 base::FilePath(DRIVE FPL("/test/isolated/root"))); |
320 ExternalMountPoints::GetSystemInstance()->RevokeFileSystem("system"); | 319 ExternalMountPoints::GetSystemInstance()->RevokeFileSystem("system"); |
321 ExternalMountPoints::GetSystemInstance()->RevokeFileSystem("ext"); | 320 ExternalMountPoints::GetSystemInstance()->RevokeFileSystem("ext"); |
322 ExternalMountPoints::GetSystemInstance()->RevokeFileSystem( | 321 ExternalMountPoints::GetSystemInstance()->RevokeFileSystem( |
323 kIsolatedFileSystemID); | 322 kIsolatedFileSystemID); |
324 } | 323 } |
325 | 324 |
326 } // namespace | 325 } // namespace |
327 | 326 |
328 } // namespace fileapi | 327 } // namespace fileapi |
OLD | NEW |