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

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

Issue 2815743002: Move a couple of blob tests next to the files they cover. (Closed)
Patch Set: Fix gn check, take 2. Created 3 years, 8 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 <stddef.h> 5 #include <stddef.h>
6 #include <stdint.h> 6 #include <stdint.h>
7 7
8 #include <limits> 8 #include <limits>
9 #include <memory> 9 #include <memory>
10 #include <set> 10 #include <set>
11 #include <string> 11 #include <string>
12 #include <utility> 12 #include <utility>
13 #include <vector> 13 #include <vector>
14 14
15 #include "base/bind.h" 15 #include "base/bind.h"
16 #include "base/files/file.h" 16 #include "base/files/file.h"
17 #include "base/files/file_path.h" 17 #include "base/files/file_path.h"
18 #include "base/files/file_util.h" 18 #include "base/files/file_util.h"
19 #include "base/files/scoped_temp_dir.h" 19 #include "base/files/scoped_temp_dir.h"
20 #include "base/macros.h" 20 #include "base/macros.h"
21 #include "base/run_loop.h" 21 #include "base/run_loop.h"
22 #include "base/threading/thread_task_runner_handle.h" 22 #include "base/threading/thread_task_runner_handle.h"
23 #include "build/build_config.h" 23 #include "build/build_config.h"
24 #include "content/browser/fileapi/mock_file_change_observer.h" 24 #include "content/browser/fileapi/mock_file_change_observer.h"
25 #include "content/public/test/async_file_test_helper.h"
26 #include "content/public/test/mock_special_storage_policy.h"
27 #include "content/public/test/sandbox_file_system_test_helper.h" 25 #include "content/public/test/sandbox_file_system_test_helper.h"
28 #include "content/public/test/test_file_system_context.h"
29 #include "content/test/fileapi_test_file_set.h" 26 #include "content/test/fileapi_test_file_set.h"
30 #include "storage/browser/fileapi/external_mount_points.h" 27 #include "storage/browser/fileapi/external_mount_points.h"
31 #include "storage/browser/fileapi/file_system_backend.h" 28 #include "storage/browser/fileapi/file_system_backend.h"
32 #include "storage/browser/fileapi/file_system_context.h" 29 #include "storage/browser/fileapi/file_system_context.h"
33 #include "storage/browser/fileapi/file_system_operation_context.h" 30 #include "storage/browser/fileapi/file_system_operation_context.h"
34 #include "storage/browser/fileapi/file_system_usage_cache.h" 31 #include "storage/browser/fileapi/file_system_usage_cache.h"
35 #include "storage/browser/fileapi/obfuscated_file_util.h" 32 #include "storage/browser/fileapi/obfuscated_file_util.h"
36 #include "storage/browser/fileapi/sandbox_directory_database.h" 33 #include "storage/browser/fileapi/sandbox_directory_database.h"
37 #include "storage/browser/fileapi/sandbox_file_system_backend_delegate.h" 34 #include "storage/browser/fileapi/sandbox_file_system_backend_delegate.h"
38 #include "storage/browser/fileapi/sandbox_isolated_origin_database.h" 35 #include "storage/browser/fileapi/sandbox_isolated_origin_database.h"
39 #include "storage/browser/fileapi/sandbox_origin_database.h" 36 #include "storage/browser/fileapi/sandbox_origin_database.h"
40 #include "storage/browser/quota/quota_manager.h" 37 #include "storage/browser/quota/quota_manager.h"
38 #include "storage/browser/test/async_file_test_helper.h"
39 #include "storage/browser/test/mock_special_storage_policy.h"
40 #include "storage/browser/test/test_file_system_context.h"
41 #include "storage/common/database/database_identifier.h" 41 #include "storage/common/database/database_identifier.h"
42 #include "storage/common/quota/quota_types.h" 42 #include "storage/common/quota/quota_types.h"
43 #include "testing/gtest/include/gtest/gtest.h" 43 #include "testing/gtest/include/gtest/gtest.h"
44 44
45 using content::AsyncFileTestHelper; 45 using content::AsyncFileTestHelper;
46 using storage::FileSystemContext; 46 using storage::FileSystemContext;
47 using storage::FileSystemOperation; 47 using storage::FileSystemOperation;
48 using storage::FileSystemOperationContext; 48 using storage::FileSystemOperationContext;
49 using storage::FileSystemURL; 49 using storage::FileSystemURL;
50 using storage::ObfuscatedFileUtil; 50 using storage::ObfuscatedFileUtil;
(...skipping 2523 matching lines...) Expand 10 before | Expand all | Expand 10 after
2574 ofu()->GetDirectoryForOriginAndType( 2574 ofu()->GetDirectoryForOriginAndType(
2575 origin2, GetTypeString(kFileSystemTypeTemporary), false, &error); 2575 origin2, GetTypeString(kFileSystemTypeTemporary), false, &error);
2576 ASSERT_EQ(base::File::FILE_OK, error); 2576 ASSERT_EQ(base::File::FILE_OK, error);
2577 error = base::File::FILE_ERROR_FAILED; 2577 error = base::File::FILE_ERROR_FAILED;
2578 ofu()->GetDirectoryForOriginAndType( 2578 ofu()->GetDirectoryForOriginAndType(
2579 origin2, GetTypeString(kFileSystemTypePersistent), false, &error); 2579 origin2, GetTypeString(kFileSystemTypePersistent), false, &error);
2580 ASSERT_EQ(base::File::FILE_OK, error); 2580 ASSERT_EQ(base::File::FILE_OK, error);
2581 } 2581 }
2582 2582
2583 } // namespace content 2583 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698