OLD | NEW |
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/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" |
(...skipping 839 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 |
OLD | NEW |