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

Unified Diff: sql/mojo/sql_test_base.h

Issue 1231493002: mandoline filesystem: Save cookie data to the mojo:filesystem. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase to ToT for jam's core services patch. 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.h
diff --git a/sql/mojo/sql_test_base.h b/sql/mojo/sql_test_base.h
index f2bfb5d4c487394f21316c7eea61b6023add202c..7a7ccca362e041473a03d7298e780785ff04bb37 100644
--- a/sql/mojo/sql_test_base.h
+++ b/sql/mojo/sql_test_base.h
@@ -26,7 +26,8 @@ class ScopedMojoFilesystemVFS;
// #define. We need to have two different implementations because the mojo
// version derives from mojo::test::ApplicationTestBase instead of
// testing::Test.
-class SQLTestBase : public mojo::test::ApplicationTestBase {
+class SQLTestBase : public mojo::test::ApplicationTestBase,
+ public filesystem::FileSystemClient {
public:
SQLTestBase();
~SQLTestBase() override;
@@ -68,6 +69,9 @@ class SQLTestBase : public mojo::test::ApplicationTestBase {
void SetUp() override;
void TearDown() override;
+ // Overridden from FileSystemClient:
+ void OnFileSystemShutdown() override;
+
protected:
filesystem::FileSystemPtr& files() { return files_; }
@@ -75,6 +79,7 @@ class SQLTestBase : public mojo::test::ApplicationTestBase {
filesystem::FileSystemPtr files_;
scoped_ptr<ScopedMojoFilesystemVFS> vfs_;
+ mojo::Binding<filesystem::FileSystemClient> binding_;
sql::Connection db_;
DISALLOW_COPY_AND_ASSIGN(SQLTestBase);

Powered by Google App Engine
This is Rietveld 408576698