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

Unified Diff: sql/mojo/sql_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: sql/mojo/sql_test_base.cc
diff --git a/sql/mojo/sql_test_base.cc b/sql/mojo/sql_test_base.cc
index 57645dd55d16611bff5930141ef322aced02b36d..107411342bf8fe51f2446e9ea95a3a79890901b0 100644
--- a/sql/mojo/sql_test_base.cc
+++ b/sql/mojo/sql_test_base.cc
@@ -13,7 +13,8 @@ using mojo::Capture;
namespace sql {
-SQLTestBase::SQLTestBase() {
+SQLTestBase::SQLTestBase()
+ : binding_(this) {
}
SQLTestBase::~SQLTestBase() {
@@ -136,9 +137,13 @@ void SQLTestBase::SetUp() {
request->url = mojo::String::From("mojo:filesystem");
application_impl()->ConnectToService(request.Pass(), &files_);
+ filesystem::FileSystemClientPtr client;
+ binding_.Bind(GetProxy(&client));
+
filesystem::FileError error = filesystem::FILE_ERROR_FAILED;
filesystem::DirectoryPtr directory;
- files()->OpenFileSystem("temp", GetProxy(&directory), Capture(&error));
+ files()->OpenFileSystem("temp", GetProxy(&directory), client.Pass(),
+ Capture(&error));
ASSERT_TRUE(files().WaitForIncomingResponse());
ASSERT_EQ(filesystem::FILE_ERROR_OK, error);
@@ -153,4 +158,7 @@ void SQLTestBase::TearDown() {
ApplicationTestBase::TearDown();
}
+void SQLTestBase::OnFileSystemShutdown() {
+}
+
} // namespace sql
« sql/mojo/mojo_vfs.cc ('K') | « sql/mojo/sql_test_base.h ('k') | sql/mojo/vfs_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698