| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <algorithm> | 7 #include <algorithm> |
| 6 #include <vector> | 8 #include <vector> |
| 7 | 9 |
| 8 #include "base/basictypes.h" | |
| 9 #include "base/files/file_enumerator.h" | 10 #include "base/files/file_enumerator.h" |
| 10 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
| 11 #include "base/files/scoped_temp_dir.h" | 12 #include "base/files/scoped_temp_dir.h" |
| 12 #include "base/memory/ref_counted_memory.h" | 13 #include "base/memory/ref_counted_memory.h" |
| 13 #include "base/path_service.h" | 14 #include "base/path_service.h" |
| 14 #include "components/history/core/browser/thumbnail_database.h" | 15 #include "components/history/core/browser/thumbnail_database.h" |
| 15 #include "components/history/core/test/database_test_utils.h" | 16 #include "components/history/core/test/database_test_utils.h" |
| 16 #include "sql/connection.h" | 17 #include "sql/connection.h" |
| 17 #include "sql/recovery.h" | 18 #include "sql/recovery.h" |
| 18 #include "sql/test/scoped_error_ignorer.h" | 19 #include "sql/test/scoped_error_ignorer.h" |
| (...skipping 1086 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1105 ThumbnailDatabase db(NULL); | 1106 ThumbnailDatabase db(NULL); |
| 1106 ASSERT_EQ(sql::INIT_OK, db.Init(db_path)); | 1107 ASSERT_EQ(sql::INIT_OK, db.Init(db_path)); |
| 1107 | 1108 |
| 1108 // Verify that the resulting schema is correct, whether it | 1109 // Verify that the resulting schema is correct, whether it |
| 1109 // involved razing the file or fixing things in place. | 1110 // involved razing the file or fixing things in place. |
| 1110 VerifyTablesAndColumns(&db.db_); | 1111 VerifyTablesAndColumns(&db.db_); |
| 1111 } | 1112 } |
| 1112 } | 1113 } |
| 1113 | 1114 |
| 1114 } // namespace history | 1115 } // namespace history |
| OLD | NEW |