Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(466)

Side by Side Diff: content/browser/fileapi/sandbox_prioritized_origin_database_unittest.cc

Issue 442383002: Move storage-related files from webkit/ to new top-level directory storage/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 "testing/gtest/include/gtest/gtest.h" 8 #include "testing/gtest/include/gtest/gtest.h"
9 #include "webkit/browser/fileapi/sandbox_origin_database.h" 9 #include "storage/browser/fileapi/sandbox_origin_database.h"
10 #include "webkit/browser/fileapi/sandbox_prioritized_origin_database.h" 10 #include "storage/browser/fileapi/sandbox_prioritized_origin_database.h"
11 11
12 using fileapi::SandboxOriginDatabase; 12 using storage::SandboxOriginDatabase;
13 using fileapi::SandboxOriginDatabaseInterface; 13 using storage::SandboxOriginDatabaseInterface;
14 using fileapi::SandboxPrioritizedOriginDatabase; 14 using storage::SandboxPrioritizedOriginDatabase;
15 15
16 namespace content { 16 namespace content {
17 17
18 TEST(SandboxPrioritizedOriginDatabaseTest, BasicTest) { 18 TEST(SandboxPrioritizedOriginDatabaseTest, BasicTest) {
19 base::ScopedTempDir dir; 19 base::ScopedTempDir dir;
20 base::FilePath path; 20 base::FilePath path;
21 ASSERT_TRUE(dir.CreateUniqueTempDir()); 21 ASSERT_TRUE(dir.CreateUniqueTempDir());
22 22
23 const std::string kOrigin1("origin1"); 23 const std::string kOrigin1("origin1");
24 const std::string kOrigin2("origin2"); 24 const std::string kOrigin2("origin2");
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 EXPECT_TRUE(base::ReadFileToString( 208 EXPECT_TRUE(base::ReadFileToString(
209 dir_db_path.AppendASCII("dummy"), &origin_db_data)); 209 dir_db_path.AppendASCII("dummy"), &origin_db_data));
210 EXPECT_EQ(kFakeDirectoryData2, origin_db_data); 210 EXPECT_EQ(kFakeDirectoryData2, origin_db_data);
211 211
212 // After the migration the kOrigin1 directory database path must be gone. 212 // After the migration the kOrigin1 directory database path must be gone.
213 EXPECT_FALSE(base::PathExists(old_dir_db_path1)); 213 EXPECT_FALSE(base::PathExists(old_dir_db_path1));
214 EXPECT_TRUE(base::PathExists(old_dir_db_path2)); 214 EXPECT_TRUE(base::PathExists(old_dir_db_path2));
215 } 215 }
216 216
217 } // namespace content 217 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/fileapi/sandbox_origin_database_unittest.cc ('k') | content/browser/fileapi/timed_task_helper_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698