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