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

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

Issue 136573007: Quota: Factor out (Mock)QuotaManagerProxy into its own file for readability (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review fix Created 6 years, 11 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 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/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" 15 #include "content/public/test/test_file_system_backend.h"
16 #include "content/public/test/test_file_system_context.h" 16 #include "content/public/test/test_file_system_context.h"
17 #include "testing/gtest/include/gtest/gtest.h" 17 #include "testing/gtest/include/gtest/gtest.h"
18 #include "webkit/browser/blob/file_stream_reader.h" 18 #include "webkit/browser/blob/file_stream_reader.h"
19 #include "webkit/browser/fileapi/async_file_test_helper.h" 19 #include "webkit/browser/fileapi/async_file_test_helper.h"
20 #include "webkit/browser/fileapi/copy_or_move_file_validator.h" 20 #include "webkit/browser/fileapi/copy_or_move_file_validator.h"
21 #include "webkit/browser/fileapi/copy_or_move_operation_delegate.h" 21 #include "webkit/browser/fileapi/copy_or_move_operation_delegate.h"
22 #include "webkit/browser/fileapi/file_stream_writer.h" 22 #include "webkit/browser/fileapi/file_stream_writer.h"
23 #include "webkit/browser/fileapi/file_system_backend.h" 23 #include "webkit/browser/fileapi/file_system_backend.h"
24 #include "webkit/browser/fileapi/file_system_context.h" 24 #include "webkit/browser/fileapi/file_system_context.h"
25 #include "webkit/browser/fileapi/file_system_operation.h" 25 #include "webkit/browser/fileapi/file_system_operation.h"
26 #include "webkit/browser/fileapi/file_system_url.h" 26 #include "webkit/browser/fileapi/file_system_url.h"
27 #include "webkit/browser/fileapi/test_file_set.h" 27 #include "webkit/browser/fileapi/test_file_set.h"
28 #include "webkit/browser/quota/mock_quota_manager.h" 28 #include "webkit/browser/quota/mock_quota_manager.h"
29 #include "webkit/browser/quota/mock_quota_manager_proxy.h"
29 #include "webkit/browser/quota/quota_manager.h" 30 #include "webkit/browser/quota/quota_manager.h"
30 #include "webkit/common/fileapi/file_system_util.h" 31 #include "webkit/common/fileapi/file_system_util.h"
31 32
32 using fileapi::AsyncFileTestHelper; 33 using fileapi::AsyncFileTestHelper;
33 using fileapi::CopyOrMoveOperationDelegate; 34 using fileapi::CopyOrMoveOperationDelegate;
34 using fileapi::FileStreamWriter; 35 using fileapi::FileStreamWriter;
35 using fileapi::FileSystemOperation; 36 using fileapi::FileSystemOperation;
36 using fileapi::FileSystemType; 37 using fileapi::FileSystemType;
37 using fileapi::FileSystemURL; 38 using fileapi::FileSystemURL;
38 using fileapi::test::TestCaseRecord; 39 using fileapi::test::TestCaseRecord;
(...skipping 828 matching lines...) Expand 10 before | Expand all | Expand 10 after
867 868
868 base::PlatformFileError error = base::PLATFORM_FILE_ERROR_FAILED; 869 base::PlatformFileError error = base::PLATFORM_FILE_ERROR_FAILED;
869 base::RunLoop run_loop; 870 base::RunLoop run_loop;
870 helper.Run(base::Bind(&AssignAndQuit, &run_loop, &error)); 871 helper.Run(base::Bind(&AssignAndQuit, &run_loop, &error));
871 run_loop.Run(); 872 run_loop.Run();
872 873
873 EXPECT_EQ(base::PLATFORM_FILE_ERROR_ABORT, error); 874 EXPECT_EQ(base::PLATFORM_FILE_ERROR_ABORT, error);
874 } 875 }
875 876
876 } // namespace content 877 } // namespace content
OLDNEW
« no previous file with comments | « chrome/chrome_tests_unit.gypi ('k') | content/browser/fileapi/file_system_operation_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698