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

Side by Side Diff: webkit/fileapi/local_file_system_operation_unittest.cc

Issue 14096022: Make MountPointProvider pluggable from outside webkit/fileapi (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: build fix etc Created 7 years, 8 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "webkit/fileapi/local_file_system_operation.h" 5 #include "webkit/fileapi/local_file_system_operation.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/files/scoped_temp_dir.h" 8 #include "base/files/scoped_temp_dir.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 virtual void SetUp() OVERRIDE { 58 virtual void SetUp() OVERRIDE {
59 base::FilePath base_dir = base_.path().AppendASCII("filesystem"); 59 base::FilePath base_dir = base_.path().AppendASCII("filesystem");
60 quota_manager_ = new quota::MockQuotaManager( 60 quota_manager_ = new quota::MockQuotaManager(
61 false /* is_incognito */, base_dir, 61 false /* is_incognito */, base_dir,
62 base::MessageLoopProxy::current(), 62 base::MessageLoopProxy::current(),
63 base::MessageLoopProxy::current(), 63 base::MessageLoopProxy::current(),
64 NULL /* special storage policy */); 64 NULL /* special storage policy */);
65 quota_manager_proxy_ = new quota::MockQuotaManagerProxy( 65 quota_manager_proxy_ = new quota::MockQuotaManagerProxy(
66 quota_manager(), 66 quota_manager(),
67 base::MessageLoopProxy::current()); 67 base::MessageLoopProxy::current());
68 test_helper_.SetUp(base_dir, 68 test_helper_.SetUp(base_dir, quota_manager_proxy_.get());
69 false /* unlimited quota */,
70 quota_manager_proxy_.get());
71 } 69 }
72 70
73 virtual void TearDown() OVERRIDE { 71 virtual void TearDown() OVERRIDE {
74 // Let the client go away before dropping a ref of the quota manager proxy. 72 // Let the client go away before dropping a ref of the quota manager proxy.
75 quota_manager_proxy()->SimulateQuotaManagerDestroyed(); 73 quota_manager_proxy()->SimulateQuotaManagerDestroyed();
76 quota_manager_ = NULL; 74 quota_manager_ = NULL;
77 quota_manager_proxy_ = NULL; 75 quota_manager_proxy_ = NULL;
78 test_helper_.TearDown(); 76 test_helper_.TearDown();
79 } 77 }
80 78
(...skipping 1129 matching lines...) Expand 10 before | Expand all | Expand 10 after
1210 EXPECT_FALSE(info().is_directory); 1208 EXPECT_FALSE(info().is_directory);
1211 EXPECT_EQ(PlatformPath(file_path), path()); 1209 EXPECT_EQ(PlatformPath(file_path), path());
1212 EXPECT_TRUE(change_observer()->HasNoChange()); 1210 EXPECT_TRUE(change_observer()->HasNoChange());
1213 1211
1214 // The FileSystemOpration implementation does not create a 1212 // The FileSystemOpration implementation does not create a
1215 // shareable file reference. 1213 // shareable file reference.
1216 EXPECT_EQ(NULL, shareable_file_ref()); 1214 EXPECT_EQ(NULL, shareable_file_ref());
1217 } 1215 }
1218 1216
1219 } // namespace fileapi 1217 } // namespace fileapi
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698