| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "storage/browser/fileapi/sandbox_directory_database.h" | 5 #include "storage/browser/fileapi/sandbox_directory_database.h" |
| 6 | 6 |
| 7 #include <math.h> | 7 #include <math.h> |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| 11 #include <limits> | 11 #include <limits> |
| 12 #include <memory> | 12 #include <memory> |
| 13 | 13 |
| 14 #include "base/files/file.h" | 14 #include "base/files/file.h" |
| 15 #include "base/files/file_util.h" | 15 #include "base/files/file_util.h" |
| 16 #include "base/files/scoped_temp_dir.h" | 16 #include "base/files/scoped_temp_dir.h" |
| 17 #include "base/macros.h" | 17 #include "base/macros.h" |
| 18 #include "base/strings/string_number_conversions.h" | 18 #include "base/strings/string_number_conversions.h" |
| 19 #include "base/strings/string_util.h" | 19 #include "base/strings/string_util.h" |
| 20 #include "content/browser/fileapi/sandbox_database_test_helper.h" | 20 #include "storage/browser/test/sandbox_database_test_helper.h" |
| 21 #include "storage/common/fileapi/file_system_util.h" | 21 #include "storage/common/fileapi/file_system_util.h" |
| 22 #include "testing/gtest/include/gtest/gtest.h" | 22 #include "testing/gtest/include/gtest/gtest.h" |
| 23 #include "third_party/leveldatabase/src/include/leveldb/db.h" | 23 #include "third_party/leveldatabase/src/include/leveldb/db.h" |
| 24 | 24 |
| 25 #define FPL(x) FILE_PATH_LITERAL(x) | 25 #define FPL(x) FILE_PATH_LITERAL(x) |
| 26 | 26 |
| 27 using storage::FilePathToString; | 27 using storage::FilePathToString; |
| 28 using storage::SandboxDirectoryDatabase; | 28 using storage::SandboxDirectoryDatabase; |
| 29 | 29 |
| 30 namespace content { | 30 namespace content { |
| (...skipping 637 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 668 EXPECT_FALSE(db()->IsFileSystemConsistent()); | 668 EXPECT_FALSE(db()->IsFileSystemConsistent()); |
| 669 | 669 |
| 670 FileId file_id; | 670 FileId file_id; |
| 671 EXPECT_TRUE(db()->GetChildWithName(0, kFileName, &file_id)); | 671 EXPECT_TRUE(db()->GetChildWithName(0, kFileName, &file_id)); |
| 672 EXPECT_EQ(file_id_prev, file_id); | 672 EXPECT_EQ(file_id_prev, file_id); |
| 673 | 673 |
| 674 EXPECT_TRUE(db()->IsFileSystemConsistent()); | 674 EXPECT_TRUE(db()->IsFileSystemConsistent()); |
| 675 } | 675 } |
| 676 | 676 |
| 677 } // namespace content | 677 } // namespace content |
| OLD | NEW |