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

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

Issue 18300006: FileAPI: Factor out getting root URI and FS name parts into each FS backend (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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/files/scoped_temp_dir.h" 10 #include "base/files/scoped_temp_dir.h"
(...skipping 11 matching lines...) Expand all
22 #include "webkit/browser/quota/mock_quota_manager.h" 22 #include "webkit/browser/quota/mock_quota_manager.h"
23 #include "webkit/browser/quota/quota_manager.h" 23 #include "webkit/browser/quota/quota_manager.h"
24 #include "webkit/common/fileapi/file_system_util.h" 24 #include "webkit/common/fileapi/file_system_util.h"
25 25
26 namespace fileapi { 26 namespace fileapi {
27 27
28 typedef FileSystemOperation::FileEntryList FileEntryList; 28 typedef FileSystemOperation::FileEntryList FileEntryList;
29 29
30 namespace { 30 namespace {
31 31
32 void ExpectOk(base::PlatformFileError error) { 32 void ExpectOk(const GURL& origin_url,
33 const std::string& name,
34 base::PlatformFileError error) {
33 ASSERT_EQ(base::PLATFORM_FILE_OK, error); 35 ASSERT_EQ(base::PLATFORM_FILE_OK, error);
34 } 36 }
35 37
36 } // namespace 38 } // namespace
37 39
38 class CopyOrMoveOperationTestHelper { 40 class CopyOrMoveOperationTestHelper {
39 public: 41 public:
40 CopyOrMoveOperationTestHelper( 42 CopyOrMoveOperationTestHelper(
41 const GURL& origin, 43 const GURL& origin,
42 FileSystemType src_type, 44 FileSystemType src_type,
(...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after
420 test::kRegularTestCaseSize); 422 test::kRegularTestCaseSize);
421 423
422 int64 src_new_usage = helper.GetSourceUsage(); 424 int64 src_new_usage = helper.GetSourceUsage();
423 ASSERT_EQ(src_initial_usage, src_new_usage); 425 ASSERT_EQ(src_initial_usage, src_new_usage);
424 426
425 int64 dest_increase = helper.GetDestUsage() - dest_initial_usage; 427 int64 dest_increase = helper.GetDestUsage() - dest_initial_usage;
426 ASSERT_EQ(src_increase, dest_increase); 428 ASSERT_EQ(src_increase, dest_increase);
427 } 429 }
428 430
429 } // namespace fileapi 431 } // namespace fileapi
OLDNEW
« no previous file with comments | « webkit/browser/fileapi/copy_or_move_file_validator_unittest.cc ('k') | webkit/browser/fileapi/file_system_backend.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698