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 "base/basictypes.h" | |
6 #include "base/files/file_util.h" | 5 #include "base/files/file_util.h" |
7 #include "base/files/scoped_temp_dir.h" | 6 #include "base/files/scoped_temp_dir.h" |
8 #include "storage/browser/fileapi/sandbox_origin_database.h" | 7 #include "storage/browser/fileapi/sandbox_origin_database.h" |
9 #include "storage/browser/fileapi/sandbox_prioritized_origin_database.h" | 8 #include "storage/browser/fileapi/sandbox_prioritized_origin_database.h" |
10 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" |
11 | 10 |
12 using storage::SandboxOriginDatabase; | 11 using storage::SandboxOriginDatabase; |
13 using storage::SandboxOriginDatabaseInterface; | 12 using storage::SandboxOriginDatabaseInterface; |
14 using storage::SandboxPrioritizedOriginDatabase; | 13 using storage::SandboxPrioritizedOriginDatabase; |
15 | 14 |
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
208 EXPECT_TRUE(base::ReadFileToString( | 207 EXPECT_TRUE(base::ReadFileToString( |
209 dir_db_path.AppendASCII("dummy"), &origin_db_data)); | 208 dir_db_path.AppendASCII("dummy"), &origin_db_data)); |
210 EXPECT_EQ(kFakeDirectoryData2, origin_db_data); | 209 EXPECT_EQ(kFakeDirectoryData2, origin_db_data); |
211 | 210 |
212 // After the migration the kOrigin1 directory database path must be gone. | 211 // After the migration the kOrigin1 directory database path must be gone. |
213 EXPECT_FALSE(base::PathExists(old_dir_db_path1)); | 212 EXPECT_FALSE(base::PathExists(old_dir_db_path1)); |
214 EXPECT_TRUE(base::PathExists(old_dir_db_path2)); | 213 EXPECT_TRUE(base::PathExists(old_dir_db_path2)); |
215 } | 214 } |
216 | 215 |
217 } // namespace content | 216 } // namespace content |
OLD | NEW |