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

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: 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 namespace fileapi { 33 namespace fileapi {
33 34
34 typedef FileSystemOperation::FileEntryList FileEntryList; 35 typedef FileSystemOperation::FileEntryList FileEntryList;
35 36
36 namespace { 37 namespace {
37 38
38 void ExpectOk(const GURL& origin_url, 39 void ExpectOk(const GURL& origin_url,
(...skipping 818 matching lines...) Expand 10 before | Expand all | Expand 10 after
857 858
858 base::PlatformFileError error = base::PLATFORM_FILE_ERROR_FAILED; 859 base::PlatformFileError error = base::PLATFORM_FILE_ERROR_FAILED;
859 base::RunLoop run_loop; 860 base::RunLoop run_loop;
860 helper.Run(base::Bind(&AssignAndQuit, &run_loop, &error)); 861 helper.Run(base::Bind(&AssignAndQuit, &run_loop, &error));
861 run_loop.Run(); 862 run_loop.Run();
862 863
863 EXPECT_EQ(base::PLATFORM_FILE_ERROR_ABORT, error); 864 EXPECT_EQ(base::PLATFORM_FILE_ERROR_ABORT, error);
864 } 865 }
865 866
866 } // namespace fileapi 867 } // namespace fileapi
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698