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

Unified Diff: sql/test/test_helpers.cc

Issue 1176653002: mandoline filesystem: add a sqlite3 vfs to proxy filesystem usage. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Patch cleanup now that gn check passes. Created 5 years, 6 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/test/test_helpers.cc
diff --git a/sql/test/test_helpers.cc b/sql/test/test_helpers.cc
index 361b336452e6cf074583551b237d268d0d249a28..7e61cf2882d4d054d524c53474c887853eb97836 100644
--- a/sql/test/test_helpers.cc
+++ b/sql/test/test_helpers.cc
@@ -42,6 +42,11 @@ bool GetRootPage(sql::Connection* db, const char* name, int* page_number) {
return true;
}
+} // namespace
+
+namespace sql {
+namespace test {
+
// Helper for reading a number from the SQLite header.
// See base/big_endian.h.
unsigned ReadBigEndian(unsigned char* buf, size_t bytes) {
@@ -61,11 +66,6 @@ void WriteBigEndian(unsigned val, unsigned char* buf, size_t bytes) {
}
}
-} // namespace
-
-namespace sql {
-namespace test {
-
bool CorruptSizeInHeader(const base::FilePath& db_path) {
// See http://www.sqlite.org/fileformat.html#database_header
const size_t kHeaderSize = 100;

Powered by Google App Engine
This is Rietveld 408576698