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

Side by Side Diff: webkit/fileapi/media/native_media_file_util_unittest.cc

Issue 10920087: Update callers of CreateFileSystemOperation so more detailed error codes can be returned. Where app… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix compile error Created 8 years, 3 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 <set> 5 #include <set>
6 #include <string> 6 #include <string>
7 7
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "base/scoped_temp_dir.h" 10 #include "base/scoped_temp_dir.h"
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 133
134 GURL origin() { 134 GURL origin() {
135 return GURL("http://example.com"); 135 return GURL("http://example.com");
136 } 136 }
137 137
138 fileapi::FileSystemType type() { 138 fileapi::FileSystemType type() {
139 return kFileSystemTypeNativeMedia; 139 return kFileSystemTypeNativeMedia;
140 } 140 }
141 141
142 FileSystemOperation* NewOperation(const FileSystemURL& url) { 142 FileSystemOperation* NewOperation(const FileSystemURL& url) {
143 return file_system_context_->CreateFileSystemOperation(url); 143 return file_system_context_->CreateFileSystemOperation(url, NULL);
144 } 144 }
145 145
146 private: 146 private:
147 MessageLoop message_loop_; 147 MessageLoop message_loop_;
148 148
149 ScopedTempDir data_dir_; 149 ScopedTempDir data_dir_;
150 scoped_refptr<FileSystemContext> file_system_context_; 150 scoped_refptr<FileSystemContext> file_system_context_;
151 151
152 FileSystemFileUtil* file_util_; 152 FileSystemFileUtil* file_util_;
153 std::string filesystem_id_; 153 std::string filesystem_id_;
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 EXPECT_TRUE(completed); 192 EXPECT_TRUE(completed);
193 EXPECT_EQ(5u, content.size()); 193 EXPECT_EQ(5u, content.size());
194 194
195 for (size_t i = 0; i < arraysize(kFilteringTestCases); ++i) { 195 for (size_t i = 0; i < arraysize(kFilteringTestCases); ++i) {
196 FilePath::StringType name = 196 FilePath::StringType name =
197 FilePath(kFilteringTestCases[i].path).BaseName().value(); 197 FilePath(kFilteringTestCases[i].path).BaseName().value();
198 std::set<FilePath::StringType>::const_iterator found = content.find(name); 198 std::set<FilePath::StringType>::const_iterator found = content.find(name);
199 EXPECT_EQ(kFilteringTestCases[i].visible, found != content.end()); 199 EXPECT_EQ(kFilteringTestCases[i].visible, found != content.end());
200 } 200 }
201 } 201 }
OLDNEW
« no previous file with comments | « webkit/fileapi/local_file_system_test_helper.cc ('k') | webkit/fileapi/sandbox_file_stream_writer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698