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

Unified Diff: components/filesystem/files_test_base.cc

Issue 1231493002: mandoline filesystem: Save cookie data to the mojo:filesystem. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge with ToT Created 5 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 side-by-side diff with in-line comments
Download patch
Index: components/filesystem/files_test_base.cc
diff --git a/components/filesystem/files_test_base.cc b/components/filesystem/files_test_base.cc
index 47f7d61285930737136d96d7ee7b6e60e085793a..bf7a3d034a6ced0e34031b22b91ad669994b86aa 100644
--- a/components/filesystem/files_test_base.cc
+++ b/components/filesystem/files_test_base.cc
@@ -11,7 +11,7 @@
namespace filesystem {
-FilesTestBase::FilesTestBase() {
+FilesTestBase::FilesTestBase() : binding_(this) {
}
FilesTestBase::~FilesTestBase() {
@@ -25,9 +25,16 @@ void FilesTestBase::SetUp() {
application_impl()->ConnectToService(request.Pass(), &files_);
}
+void FilesTestBase::OnFileSystemShutdown() {
+}
+
void FilesTestBase::GetTemporaryRoot(DirectoryPtr* directory) {
+ filesystem::FileSystemClientPtr client;
+ binding_.Bind(GetProxy(&client));
+
FileError error = FILE_ERROR_FAILED;
- files()->OpenFileSystem("temp", GetProxy(directory), mojo::Capture(&error));
+ files()->OpenFileSystem("temp", GetProxy(directory), client.Pass(),
+ mojo::Capture(&error));
ASSERT_TRUE(files().WaitForIncomingResponse());
ASSERT_EQ(FILE_ERROR_OK, error);
}

Powered by Google App Engine
This is Rietveld 408576698