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

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

Issue 23440033: Move FileAPI test code from webkit to content (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 2 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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/file_util.h" 10 #include "base/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/public/test/test_file_system_backend.h"
16 #include "content/public/test/test_file_system_context.h"
15 #include "testing/gtest/include/gtest/gtest.h" 17 #include "testing/gtest/include/gtest/gtest.h"
16 #include "webkit/browser/blob/file_stream_reader.h" 18 #include "webkit/browser/blob/file_stream_reader.h"
17 #include "webkit/browser/fileapi/async_file_test_helper.h" 19 #include "webkit/browser/fileapi/async_file_test_helper.h"
18 #include "webkit/browser/fileapi/copy_or_move_file_validator.h" 20 #include "webkit/browser/fileapi/copy_or_move_file_validator.h"
19 #include "webkit/browser/fileapi/copy_or_move_operation_delegate.h" 21 #include "webkit/browser/fileapi/copy_or_move_operation_delegate.h"
20 #include "webkit/browser/fileapi/file_stream_writer.h" 22 #include "webkit/browser/fileapi/file_stream_writer.h"
21 #include "webkit/browser/fileapi/file_system_backend.h" 23 #include "webkit/browser/fileapi/file_system_backend.h"
22 #include "webkit/browser/fileapi/file_system_context.h" 24 #include "webkit/browser/fileapi/file_system_context.h"
23 #include "webkit/browser/fileapi/file_system_operation.h" 25 #include "webkit/browser/fileapi/file_system_operation.h"
24 #include "webkit/browser/fileapi/file_system_url.h" 26 #include "webkit/browser/fileapi/file_system_url.h"
25 #include "webkit/browser/fileapi/mock_file_system_context.h"
26 #include "webkit/browser/fileapi/test_file_set.h" 27 #include "webkit/browser/fileapi/test_file_set.h"
27 #include "webkit/browser/fileapi/test_file_system_backend.h"
28 #include "webkit/browser/quota/mock_quota_manager.h" 28 #include "webkit/browser/quota/mock_quota_manager.h"
29 #include "webkit/browser/quota/quota_manager.h" 29 #include "webkit/browser/quota/quota_manager.h"
30 #include "webkit/common/fileapi/file_system_util.h" 30 #include "webkit/common/fileapi/file_system_util.h"
31 31
32 namespace fileapi { 32 namespace fileapi {
33 33
34 typedef FileSystemOperation::FileEntryList FileEntryList; 34 typedef FileSystemOperation::FileEntryList FileEntryList;
35 35
36 namespace { 36 namespace {
37 37
(...skipping 759 matching lines...) Expand 10 before | Expand all | Expand 10 after
797 797
798 base::PlatformFileError error = base::PLATFORM_FILE_ERROR_FAILED; 798 base::PlatformFileError error = base::PLATFORM_FILE_ERROR_FAILED;
799 base::RunLoop run_loop; 799 base::RunLoop run_loop;
800 helper.Run(base::Bind(&AssignAndQuit, &run_loop, &error)); 800 helper.Run(base::Bind(&AssignAndQuit, &run_loop, &error));
801 run_loop.Run(); 801 run_loop.Run();
802 802
803 EXPECT_EQ(base::PLATFORM_FILE_ERROR_ABORT, error); 803 EXPECT_EQ(base::PLATFORM_FILE_ERROR_ABORT, error);
804 } 804 }
805 805
806 } // namespace fileapi 806 } // namespace fileapi
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