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

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

Issue 6864040: Fixed file/directory url resolution for external mount point provider. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 // NOTE: These tests are run as part of "unit_tests" (in chrome/test/unit) 5 // NOTE: These tests are run as part of "unit_tests" (in chrome/test/unit)
6 // rather than as part of test_shell_tests because they rely on being able 6 // rather than as part of test_shell_tests because they rely on being able
7 // to instantiate a MessageLoop of type TYPE_IO. test_shell_tests uses 7 // to instantiate a MessageLoop of type TYPE_IO. test_shell_tests uses
8 // TYPE_UI, which URLRequest doesn't allow. 8 // TYPE_UI, which URLRequest doesn't allow.
9 // 9 //
10 10
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 108
109 virtual void DidFail(base::PlatformFileError status) { 109 virtual void DidFail(base::PlatformFileError status) {
110 test_->set_failure_status(status); 110 test_->set_failure_status(status);
111 MessageLoop::current()->Quit(); 111 MessageLoop::current()->Quit();
112 } 112 }
113 113
114 virtual void DidSucceed() { 114 virtual void DidSucceed() {
115 ADD_FAILURE(); 115 ADD_FAILURE();
116 } 116 }
117 117
118 virtual void DidGetLocalPath(const FilePath& local_path) {
119 ADD_FAILURE();
120 }
121
118 virtual void DidReadMetadata( 122 virtual void DidReadMetadata(
119 const base::PlatformFileInfo& info, 123 const base::PlatformFileInfo& info,
120 const FilePath& platform_path) { 124 const FilePath& platform_path) {
121 ADD_FAILURE(); 125 ADD_FAILURE();
122 } 126 }
123 127
124 virtual void DidReadDirectory( 128 virtual void DidReadDirectory(
125 const std::vector<base::FileUtilProxy::Entry>& entries, 129 const std::vector<base::FileUtilProxy::Entry>& entries,
126 bool /* has_more */) { 130 bool /* has_more */) {
127 ADD_FAILURE(); 131 ADD_FAILURE();
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 url_request_context->blob_storage_controller()->UnregisterBlobUrl(blob_url); 260 url_request_context->blob_storage_controller()->UnregisterBlobUrl(blob_url);
257 261
258 EXPECT_EQ(0, bytes_written()); 262 EXPECT_EQ(0, bytes_written());
259 EXPECT_EQ(base::PLATFORM_FILE_ERROR_ACCESS_DENIED, status()); 263 EXPECT_EQ(base::PLATFORM_FILE_ERROR_ACCESS_DENIED, status());
260 EXPECT_TRUE(complete()); 264 EXPECT_TRUE(complete());
261 } 265 }
262 266
263 // TODO(ericu,dmikurube): Add tests for Cancel. 267 // TODO(ericu,dmikurube): Add tests for Cancel.
264 268
265 } // namespace fileapi 269 } // namespace fileapi
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698