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

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

Issue 810403004: [Storage] Blob Storage Refactoring pt 1 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed copyright Created 5 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
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 "base/basictypes.h" 5 #include "base/basictypes.h"
6 #include "base/bind.h" 6 #include "base/bind.h"
7 #include "base/files/file_path.h" 7 #include "base/files/file_path.h"
8 #include "base/files/scoped_temp_dir.h" 8 #include "base/files/scoped_temp_dir.h"
9 #include "base/run_loop.h" 9 #include "base/run_loop.h"
10 #include "content/public/test/async_file_test_helper.h" 10 #include "content/public/test/async_file_test_helper.h"
11 #include "content/public/test/mock_special_storage_policy.h" 11 #include "content/public/test/mock_special_storage_policy.h"
12 #include "content/public/test/test_file_system_backend.h" 12 #include "content/public/test/test_file_system_backend.h"
13 #include "content/public/test/test_file_system_context.h" 13 #include "content/public/test/test_file_system_context.h"
14 #include "storage/browser/blob/shareable_file_reference.h"
14 #include "storage/browser/fileapi/copy_or_move_file_validator.h" 15 #include "storage/browser/fileapi/copy_or_move_file_validator.h"
15 #include "storage/browser/fileapi/external_mount_points.h" 16 #include "storage/browser/fileapi/external_mount_points.h"
16 #include "storage/browser/fileapi/file_system_backend.h" 17 #include "storage/browser/fileapi/file_system_backend.h"
17 #include "storage/browser/fileapi/file_system_context.h" 18 #include "storage/browser/fileapi/file_system_context.h"
18 #include "storage/browser/fileapi/file_system_url.h" 19 #include "storage/browser/fileapi/file_system_url.h"
19 #include "storage/browser/fileapi/isolated_context.h" 20 #include "storage/browser/fileapi/isolated_context.h"
20 #include "storage/common/blob/shareable_file_reference.h"
21 #include "storage/common/fileapi/file_system_util.h" 21 #include "storage/common/fileapi/file_system_util.h"
22 #include "testing/gtest/include/gtest/gtest.h" 22 #include "testing/gtest/include/gtest/gtest.h"
23 23
24 using content::AsyncFileTestHelper; 24 using content::AsyncFileTestHelper;
25 using storage::CopyOrMoveFileValidator; 25 using storage::CopyOrMoveFileValidator;
26 using storage::CopyOrMoveFileValidatorFactory; 26 using storage::CopyOrMoveFileValidatorFactory;
27 using storage::FileSystemURL; 27 using storage::FileSystemURL;
28 28
29 namespace content { 29 namespace content {
30 30
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 helper.SetUp(); 320 helper.SetUp();
321 scoped_ptr<CopyOrMoveFileValidatorFactory> factory( 321 scoped_ptr<CopyOrMoveFileValidatorFactory> factory(
322 new TestCopyOrMoveFileValidatorFactory(POST_WRITE_INVALID)); 322 new TestCopyOrMoveFileValidatorFactory(POST_WRITE_INVALID));
323 helper.SetMediaCopyOrMoveFileValidatorFactory(factory.Pass()); 323 helper.SetMediaCopyOrMoveFileValidatorFactory(factory.Pass());
324 324
325 helper.CopyTest(base::File::FILE_ERROR_SECURITY); 325 helper.CopyTest(base::File::FILE_ERROR_SECURITY);
326 helper.MoveTest(base::File::FILE_ERROR_SECURITY); 326 helper.MoveTest(base::File::FILE_ERROR_SECURITY);
327 } 327 }
328 328
329 } // namespace content 329 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698