OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
| 5 #include <stddef.h> |
| 6 |
5 #include <string> | 7 #include <string> |
6 | 8 |
7 #include "base/bind.h" | 9 #include "base/bind.h" |
8 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
9 #include "base/files/file_util.h" | 11 #include "base/files/file_util.h" |
10 #include "base/files/scoped_temp_dir.h" | 12 #include "base/files/scoped_temp_dir.h" |
11 #include "base/path_service.h" | 13 #include "base/path_service.h" |
12 #include "base/strings/string_number_conversions.h" | 14 #include "base/strings/string_number_conversions.h" |
13 #include "sql/connection.h" | 15 #include "sql/connection.h" |
14 #include "sql/meta_table.h" | 16 #include "sql/meta_table.h" |
(...skipping 683 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
698 scoped_ptr<sql::Recovery> recovery = sql::Recovery::Begin(&db(), db_path()); | 700 scoped_ptr<sql::Recovery> recovery = sql::Recovery::Begin(&db(), db_path()); |
699 ASSERT_TRUE(recovery.get()); | 701 ASSERT_TRUE(recovery.get()); |
700 | 702 |
701 // In the current implementation, the PRAGMA successfully runs with no result | 703 // In the current implementation, the PRAGMA successfully runs with no result |
702 // rows. Running with a single result of |0| is also acceptable. | 704 // rows. Running with a single result of |0| is also acceptable. |
703 sql::Statement s(recovery->db()->GetUniqueStatement("PRAGMA mmap_size")); | 705 sql::Statement s(recovery->db()->GetUniqueStatement("PRAGMA mmap_size")); |
704 EXPECT_TRUE(!s.Step() || !s.ColumnInt64(0)); | 706 EXPECT_TRUE(!s.Step() || !s.ColumnInt64(0)); |
705 } | 707 } |
706 | 708 |
707 } // namespace | 709 } // namespace |
OLD | NEW |