summaryrefslogtreecommitdiffstats
path: root/sql/test/sql_test_suite.h
diff options
context:
space:
mode:
authorshess@chromium.org <shess@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-07-10 00:48:06 +0000
committershess@chromium.org <shess@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-07-10 00:48:06 +0000
commitcfb82161a738147a3c2621ee8e6d0083bbe54c22 (patch)
treebe2702b2e653bcdc832a6db3803f64295d9698e8 /sql/test/sql_test_suite.h
parent8da69f52a6eedded81e2c44e5c64cfab215516ce (diff)
downloadchromium_src-cfb82161a738147a3c2621ee8e6d0083bbe54c22.zip
chromium_src-cfb82161a738147a3c2621ee8e6d0083bbe54c22.tar.gz
chromium_src-cfb82161a738147a3c2621ee8e6d0083bbe54c22.tar.bz2
[sql] Test recovery of corrupt golden file.
Manually modify a SQLite database to have the problem described by the bug, then test that it can be recovered. Also, infrastructure to introduce testing data to sql/ tests. BUG=387868 Review URL: https://codereview.chromium.org/355093003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@282197 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'sql/test/sql_test_suite.h')
-rw-r--r--sql/test/sql_test_suite.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/sql/test/sql_test_suite.h b/sql/test/sql_test_suite.h
new file mode 100644
index 0000000..3c15373
--- /dev/null
+++ b/sql/test/sql_test_suite.h
@@ -0,0 +1,29 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef SQL_TEST_SQL_TEST_SUITE_H_
+#define SQL_TEST_SQL_TEST_SUITE_H_
+
+#include "base/macros.h"
+#include "base/test/test_suite.h"
+
+namespace sql {
+
+class SQLTestSuite : public base::TestSuite {
+ public:
+ SQLTestSuite(int argc, char** argv);
+ virtual ~SQLTestSuite();
+
+ protected:
+ // Overridden from base::TestSuite:
+ virtual void Initialize() OVERRIDE;
+ virtual void Shutdown() OVERRIDE;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(SQLTestSuite);
+};
+
+} // namespace sql
+
+#endif // SQL_TEST_SQL_TEST_SUITE_H_