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

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

Issue 559063002: Remove webkit/browser/, point everything to storage/browser/ instead (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: clean up DEPS per feedback Created 6 years, 3 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"
23 #include "storage/browser/fileapi/copy_or_move_operation_delegate.h"
24 #include "storage/browser/fileapi/file_stream_writer.h"
25 #include "storage/browser/fileapi/file_system_backend.h"
26 #include "storage/browser/fileapi/file_system_context.h"
27 #include "storage/browser/fileapi/file_system_operation.h"
28 #include "storage/browser/fileapi/file_system_url.h"
29 #include "storage/browser/quota/quota_manager.h"
21 #include "storage/common/fileapi/file_system_util.h" 30 #include "storage/common/fileapi/file_system_util.h"
22 #include "testing/gtest/include/gtest/gtest.h" 31 #include "testing/gtest/include/gtest/gtest.h"
23 #include "webkit/browser/blob/file_stream_reader.h"
24 #include "webkit/browser/fileapi/copy_or_move_file_validator.h"
25 #include "webkit/browser/fileapi/copy_or_move_operation_delegate.h"
26 #include "webkit/browser/fileapi/file_stream_writer.h"
27 #include "webkit/browser/fileapi/file_system_backend.h"
28 #include "webkit/browser/fileapi/file_system_context.h"
29 #include "webkit/browser/fileapi/file_system_operation.h"
30 #include "webkit/browser/fileapi/file_system_url.h"
31 #include "webkit/browser/quota/quota_manager.h"
32 32
33 using content::AsyncFileTestHelper; 33 using content::AsyncFileTestHelper;
34 using storage::CopyOrMoveOperationDelegate; 34 using storage::CopyOrMoveOperationDelegate;
35 using storage::FileStreamWriter; 35 using storage::FileStreamWriter;
36 using storage::FileSystemOperation; 36 using storage::FileSystemOperation;
37 using storage::FileSystemURL; 37 using storage::FileSystemURL;
38 38
39 namespace content { 39 namespace content {
40 40
41 typedef storage::FileSystemOperation::FileEntryList FileEntryList; 41 typedef storage::FileSystemOperation::FileEntryList FileEntryList;
(...skipping 818 matching lines...) Expand 10 before | Expand all | Expand 10 after
860 860
861 base::File::Error error = base::File::FILE_ERROR_FAILED; 861 base::File::Error error = base::File::FILE_ERROR_FAILED;
862 base::RunLoop run_loop; 862 base::RunLoop run_loop;
863 helper.Run(base::Bind(&AssignAndQuit, &run_loop, &error)); 863 helper.Run(base::Bind(&AssignAndQuit, &run_loop, &error));
864 run_loop.Run(); 864 run_loop.Run();
865 865
866 EXPECT_EQ(base::File::FILE_ERROR_ABORT, error); 866 EXPECT_EQ(base::File::FILE_ERROR_ABORT, error);
867 } 867 }
868 868
869 } // namespace content 869 } // 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