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

Side by Side Diff: content/browser/fileapi/copy_or_move_operation_delegate_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 #include <map> 7 #include <map>
8 #include <queue> 8 #include <queue>
9 #include <utility> 9 #include <utility>
10 10
11 #include "base/bind.h" 11 #include "base/bind.h"
12 #include "base/files/file_util.h" 12 #include "base/files/file_util.h"
13 #include "base/files/scoped_temp_dir.h" 13 #include "base/files/scoped_temp_dir.h"
14 #include "base/location.h" 14 #include "base/location.h"
15 #include "base/macros.h" 15 #include "base/macros.h"
16 #include "base/run_loop.h" 16 #include "base/run_loop.h"
17 #include "base/single_thread_task_runner.h" 17 #include "base/single_thread_task_runner.h"
18 #include "base/stl_util.h" 18 #include "base/stl_util.h"
19 #include "base/threading/thread_task_runner_handle.h" 19 #include "base/threading/thread_task_runner_handle.h"
20 #include "content/browser/quota/mock_quota_manager.h" 20 #include "content/browser/quota/mock_quota_manager.h"
21 #include "content/browser/quota/mock_quota_manager_proxy.h" 21 #include "content/browser/quota/mock_quota_manager_proxy.h"
22 #include "content/public/test/async_file_test_helper.h"
23 #include "content/public/test/test_file_system_backend.h"
24 #include "content/public/test/test_file_system_context.h"
25 #include "content/test/fileapi_test_file_set.h" 22 #include "content/test/fileapi_test_file_set.h"
26 #include "storage/browser/fileapi/copy_or_move_file_validator.h" 23 #include "storage/browser/fileapi/copy_or_move_file_validator.h"
27 #include "storage/browser/fileapi/copy_or_move_operation_delegate.h" 24 #include "storage/browser/fileapi/copy_or_move_operation_delegate.h"
28 #include "storage/browser/fileapi/file_stream_reader.h" 25 #include "storage/browser/fileapi/file_stream_reader.h"
29 #include "storage/browser/fileapi/file_stream_writer.h" 26 #include "storage/browser/fileapi/file_stream_writer.h"
30 #include "storage/browser/fileapi/file_system_backend.h" 27 #include "storage/browser/fileapi/file_system_backend.h"
31 #include "storage/browser/fileapi/file_system_context.h" 28 #include "storage/browser/fileapi/file_system_context.h"
32 #include "storage/browser/fileapi/file_system_operation.h" 29 #include "storage/browser/fileapi/file_system_operation.h"
33 #include "storage/browser/fileapi/file_system_url.h" 30 #include "storage/browser/fileapi/file_system_url.h"
34 #include "storage/browser/quota/quota_manager.h" 31 #include "storage/browser/quota/quota_manager.h"
32 #include "storage/browser/test/async_file_test_helper.h"
33 #include "storage/browser/test/test_file_system_backend.h"
34 #include "storage/browser/test/test_file_system_context.h"
35 #include "storage/common/fileapi/file_system_mount_option.h" 35 #include "storage/common/fileapi/file_system_mount_option.h"
36 #include "storage/common/fileapi/file_system_util.h" 36 #include "storage/common/fileapi/file_system_util.h"
37 #include "testing/gtest/include/gtest/gtest.h" 37 #include "testing/gtest/include/gtest/gtest.h"
38 38
39 using content::AsyncFileTestHelper; 39 using content::AsyncFileTestHelper;
40 using storage::CopyOrMoveOperationDelegate; 40 using storage::CopyOrMoveOperationDelegate;
41 using storage::FileStreamWriter; 41 using storage::FileStreamWriter;
42 using storage::FileSystemOperation; 42 using storage::FileSystemOperation;
43 using storage::FileSystemURL; 43 using storage::FileSystemURL;
44 44
(...skipping 823 matching lines...) Expand 10 before | Expand all | Expand 10 after
868 868
869 base::File::Error error = base::File::FILE_ERROR_FAILED; 869 base::File::Error error = base::File::FILE_ERROR_FAILED;
870 base::RunLoop run_loop; 870 base::RunLoop run_loop;
871 helper.Run(base::Bind(&AssignAndQuit, &run_loop, &error)); 871 helper.Run(base::Bind(&AssignAndQuit, &run_loop, &error));
872 run_loop.Run(); 872 run_loop.Run();
873 873
874 EXPECT_EQ(base::File::FILE_ERROR_ABORT, error); 874 EXPECT_EQ(base::File::FILE_ERROR_ABORT, error);
875 } 875 }
876 876
877 } // namespace content 877 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/fileapi/copy_or_move_file_validator_unittest.cc ('k') | content/browser/fileapi/dragged_file_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698