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

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

Issue 908833002: Move some file api files to fileapi folder (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 9 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 <map> 5 #include <map>
6 #include <queue> 6 #include <queue>
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/files/file_util.h" 10 #include "base/files/file_util.h"
11 #include "base/files/scoped_temp_dir.h" 11 #include "base/files/scoped_temp_dir.h"
12 #include "base/message_loop/message_loop.h" 12 #include "base/message_loop/message_loop.h"
13 #include "base/run_loop.h" 13 #include "base/run_loop.h"
14 #include "base/stl_util.h" 14 #include "base/stl_util.h"
15 #include "content/browser/quota/mock_quota_manager.h" 15 #include "content/browser/quota/mock_quota_manager.h"
16 #include "content/browser/quota/mock_quota_manager_proxy.h" 16 #include "content/browser/quota/mock_quota_manager_proxy.h"
17 #include "content/public/test/async_file_test_helper.h" 17 #include "content/public/test/async_file_test_helper.h"
18 #include "content/public/test/test_file_system_backend.h" 18 #include "content/public/test/test_file_system_backend.h"
19 #include "content/public/test/test_file_system_context.h" 19 #include "content/public/test/test_file_system_context.h"
20 #include "content/test/fileapi_test_file_set.h" 20 #include "content/test/fileapi_test_file_set.h"
21 #include "storage/browser/blob/file_stream_reader.h"
22 #include "storage/browser/fileapi/copy_or_move_file_validator.h" 21 #include "storage/browser/fileapi/copy_or_move_file_validator.h"
23 #include "storage/browser/fileapi/copy_or_move_operation_delegate.h" 22 #include "storage/browser/fileapi/copy_or_move_operation_delegate.h"
23 #include "storage/browser/fileapi/file_stream_reader.h"
24 #include "storage/browser/fileapi/file_stream_writer.h" 24 #include "storage/browser/fileapi/file_stream_writer.h"
25 #include "storage/browser/fileapi/file_system_backend.h" 25 #include "storage/browser/fileapi/file_system_backend.h"
26 #include "storage/browser/fileapi/file_system_context.h" 26 #include "storage/browser/fileapi/file_system_context.h"
27 #include "storage/browser/fileapi/file_system_operation.h" 27 #include "storage/browser/fileapi/file_system_operation.h"
28 #include "storage/browser/fileapi/file_system_url.h" 28 #include "storage/browser/fileapi/file_system_url.h"
29 #include "storage/browser/quota/quota_manager.h" 29 #include "storage/browser/quota/quota_manager.h"
30 #include "storage/common/fileapi/file_system_mount_option.h" 30 #include "storage/common/fileapi/file_system_mount_option.h"
31 #include "storage/common/fileapi/file_system_util.h" 31 #include "storage/common/fileapi/file_system_util.h"
32 #include "testing/gtest/include/gtest/gtest.h" 32 #include "testing/gtest/include/gtest/gtest.h"
33 33
(...skipping 827 matching lines...) Expand 10 before | Expand all | Expand 10 after
861 861
862 base::File::Error error = base::File::FILE_ERROR_FAILED; 862 base::File::Error error = base::File::FILE_ERROR_FAILED;
863 base::RunLoop run_loop; 863 base::RunLoop run_loop;
864 helper.Run(base::Bind(&AssignAndQuit, &run_loop, &error)); 864 helper.Run(base::Bind(&AssignAndQuit, &run_loop, &error));
865 run_loop.Run(); 865 run_loop.Run();
866 866
867 EXPECT_EQ(base::File::FILE_ERROR_ABORT, error); 867 EXPECT_EQ(base::File::FILE_ERROR_ABORT, error);
868 } 868 }
869 869
870 } // namespace content 870 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698