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

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

Issue 259083002: Move mock_special_storage_policy from webkit/ to content/public/test/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 7 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 "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/test_file_system_backend.h" 12 #include "content/public/test/test_file_system_backend.h"
12 #include "content/public/test/test_file_system_context.h" 13 #include "content/public/test/test_file_system_context.h"
13 #include "testing/gtest/include/gtest/gtest.h" 14 #include "testing/gtest/include/gtest/gtest.h"
14 #include "webkit/browser/fileapi/copy_or_move_file_validator.h" 15 #include "webkit/browser/fileapi/copy_or_move_file_validator.h"
15 #include "webkit/browser/fileapi/external_mount_points.h" 16 #include "webkit/browser/fileapi/external_mount_points.h"
16 #include "webkit/browser/fileapi/file_system_backend.h" 17 #include "webkit/browser/fileapi/file_system_backend.h"
17 #include "webkit/browser/fileapi/file_system_context.h" 18 #include "webkit/browser/fileapi/file_system_context.h"
18 #include "webkit/browser/fileapi/file_system_url.h" 19 #include "webkit/browser/fileapi/file_system_url.h"
19 #include "webkit/browser/fileapi/isolated_context.h" 20 #include "webkit/browser/fileapi/isolated_context.h"
20 #include "webkit/browser/quota/mock_special_storage_policy.h"
21 #include "webkit/common/blob/shareable_file_reference.h" 21 #include "webkit/common/blob/shareable_file_reference.h"
22 #include "webkit/common/fileapi/file_system_util.h" 22 #include "webkit/common/fileapi/file_system_util.h"
23 23
24 using content::AsyncFileTestHelper; 24 using content::AsyncFileTestHelper;
25 using fileapi::CopyOrMoveFileValidator; 25 using fileapi::CopyOrMoveFileValidator;
26 using fileapi::CopyOrMoveFileValidatorFactory; 26 using fileapi::CopyOrMoveFileValidatorFactory;
27 using fileapi::FileSystemType; 27 using fileapi::FileSystemType;
28 using fileapi::FileSystemURL; 28 using fileapi::FileSystemURL;
29 29
30 namespace content { 30 namespace content {
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after
323 helper.SetUp(); 323 helper.SetUp();
324 scoped_ptr<CopyOrMoveFileValidatorFactory> factory( 324 scoped_ptr<CopyOrMoveFileValidatorFactory> factory(
325 new TestCopyOrMoveFileValidatorFactory(POST_WRITE_INVALID)); 325 new TestCopyOrMoveFileValidatorFactory(POST_WRITE_INVALID));
326 helper.SetMediaCopyOrMoveFileValidatorFactory(factory.Pass()); 326 helper.SetMediaCopyOrMoveFileValidatorFactory(factory.Pass());
327 327
328 helper.CopyTest(base::File::FILE_ERROR_SECURITY); 328 helper.CopyTest(base::File::FILE_ERROR_SECURITY);
329 helper.MoveTest(base::File::FILE_ERROR_SECURITY); 329 helper.MoveTest(base::File::FILE_ERROR_SECURITY);
330 } 330 }
331 331
332 } // namespace content 332 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698