OLD | NEW |
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 "webkit/browser/fileapi/file_system_context.h" | 5 #include "storage/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 "content/browser/quota/mock_quota_manager.h" | 10 #include "content/browser/quota/mock_quota_manager.h" |
11 #include "content/public/test/mock_special_storage_policy.h" | 11 #include "content/public/test/mock_special_storage_policy.h" |
12 #include "content/public/test/test_file_system_options.h" | 12 #include "content/public/test/test_file_system_options.h" |
| 13 #include "storage/browser/fileapi/external_mount_points.h" |
| 14 #include "storage/browser/fileapi/file_system_backend.h" |
| 15 #include "storage/browser/fileapi/isolated_context.h" |
13 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
14 #include "webkit/browser/fileapi/external_mount_points.h" | |
15 #include "webkit/browser/fileapi/file_system_backend.h" | |
16 #include "webkit/browser/fileapi/isolated_context.h" | |
17 | 17 |
18 #define FPL(x) FILE_PATH_LITERAL(x) | 18 #define FPL(x) FILE_PATH_LITERAL(x) |
19 | 19 |
20 #if defined(FILE_PATH_USES_DRIVE_LETTERS) | 20 #if defined(FILE_PATH_USES_DRIVE_LETTERS) |
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 using storage::ExternalMountPoints; | 26 using storage::ExternalMountPoints; |
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
362 EXPECT_TRUE(context->CanServeURLRequest(cracked_url)); | 362 EXPECT_TRUE(context->CanServeURLRequest(cracked_url)); |
363 | 363 |
364 ExternalMountPoints::GetSystemInstance()->RevokeFileSystem( | 364 ExternalMountPoints::GetSystemInstance()->RevokeFileSystem( |
365 kExternalMountName); | 365 kExternalMountName); |
366 IsolatedContext::GetInstance()->RevokeFileSystem(isolated_fs_id); | 366 IsolatedContext::GetInstance()->RevokeFileSystem(isolated_fs_id); |
367 } | 367 } |
368 | 368 |
369 } // namespace | 369 } // namespace |
370 | 370 |
371 } // namespace content | 371 } // namespace content |
OLD | NEW |