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

Unified Diff: components/filesystem/files_test_base.cc

Issue 1158253002: mandoline filesystem: Rewrite using base::File. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Get the error from the right object. Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/filesystem/file_system_impl.cc ('k') | components/filesystem/futimens.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/filesystem/files_test_base.cc
diff --git a/components/filesystem/files_test_base.cc b/components/filesystem/files_test_base.cc
index bbe052a3aa6342adba91b05d3c91c93d9de58575..bca5ad899a25029c5581339175f666d72e751d4d 100644
--- a/components/filesystem/files_test_base.cc
+++ b/components/filesystem/files_test_base.cc
@@ -20,13 +20,13 @@ void FilesTestBase::SetUp() {
ApplicationTestBase::SetUp();
mojo::URLRequestPtr request(mojo::URLRequest::New());
- request->url = mojo::String::From("mojo:files");
+ request->url = mojo::String::From("mojo:filesystem");
application_impl()->ConnectToService(request.Pass(), &files_);
}
void FilesTestBase::GetTemporaryRoot(DirectoryPtr* directory) {
- Error error = ERROR_INTERNAL;
- files()->OpenFileSystem(nullptr, GetProxy(directory), Capture(&error));
+ Error error = ERROR_FAILED;
+ files()->OpenFileSystem("temp", GetProxy(directory), Capture(&error));
ASSERT_TRUE(files().WaitForIncomingResponse());
ASSERT_EQ(ERROR_OK, error);
}
« no previous file with comments | « components/filesystem/file_system_impl.cc ('k') | components/filesystem/futimens.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698